# ripgrep

> Searches directories recursively for a regex pattern, skipping gitignored files

Source: https://talira.ai/catalog/ripgrep-q15ax1wq
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / cli / search](https://talira.ai/categories/developer-tools/cli/search), [developer tools / terminal](https://talira.ai/categories/developer-tools/terminal)
- Platforms: macos, linux, windows, cli
- Licence: Unlicense
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- Creator: BurntSushi

ripgrep (rg) is a line-oriented search tool that recursively searches the current directory for a regex pattern. By default it respects gitignore rules and skips hidden files, directories and binary files, which makes it far faster and less noisy than grep in code repositories. It has first-class support for Windows, [macOS](https://talira.ai/catalog/macos-8swyggxb.md) and Linux and ships as a single binary.

## Links

- GitHub: https://github.com/BurntSushi/ripgrep
- Docs: https://github.com/BurntSushi/ripgrep/blob/master/GUIDE.md

## Ways to install

### Package managers

- [WinGet](https://talira.ai/catalog/winget-g927bz13.md): <https://github.com/microsoft/winget-pkgs/tree/master/manifests/b/BurntSushi/ripgrep/MSVC>[^1]
- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/ripgrep>[^2]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/source/stable/rust-ripgrep>[^3]
- [mise](https://talira.ai/catalog/mise-0axr08xw.md): <https://mise-versions.jdx.dev/tools/ripgrep>[^4]

## Problems it solves

- grep -r takes forever on my repo because it searches node_modules and build output
- search every file in a project for a regex but skip anything in .gitignore
- my code search results are full of matches from minified bundles and binary files
- I want a much faster way to find where a function is called across a huge codebase
- grep -rn | grep -v is getting ridiculous just to exclude vendor folders
- find all TODO comments in the codebase quickly from the terminal
- need a recursive text search that works the same on Windows, Mac and Linux
- searching the Linux kernel source for a pattern takes too long
- search only Python files for a regex without writing a find | xargs pipeline
- need JSON output of search matches so a script or editor can consume them

## Features

- respects .gitignore by default
- skips hidden and binary files
- file type filters
- PCRE2 support
- search compressed files
- JSON output
- config file
- replacement output

## Capabilities

- Has a command line tool: plan not known

## Trust

Overall: 0.68 out of 1.
Signals: maintenance 0.71, adoption 0.97, momentum 0.83, community 1.00, backing 0.20, extensibility 0.20.

- last commit 14 days ago
- 17 commits in the last 90 days
- latest release 15.2.0 4 months ago
- 70.0k GitHub stars
- 485 contributors
- accepts sponsorship (Github)
- created by BurntSushi

## Alternatives

- [The Silver Searcher](https://talira.ai/catalog/the-silver-searcher-rntejqw7.md): A code-searching tool similar to ack, but faster
- [fd](https://talira.ai/catalog/fd-k5xwn7n9.md): A simple, fast and user-friendly alternative to 'find'
- [Renamify](https://talira.ai/catalog/renamify-s89ngahq.md): Smart search & replace for code and files with case-aware transformations and built-in undo/redo
- [ast-grep](https://talira.ai/catalog/ast-grep-5ehppe4z.md): A CLI tool for code structural search, lint and rewriting

## Sources

[^1]: https://github.com/BurntSushi/ripgrep/blob/master/README.md (checked 20 Nov 2026)
[^2]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^3]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 21 Nov 2026)
[^4]: https://mise-versions.jdx.dev/tools.json (checked 21 Nov 2026)
