Latest: ripgrep 15.1.0

The Fastest Grep Alternative for Developers

A lightning-fast search tool that recursively searches directories for regex patterns while respecting your gitignore. 100x faster than traditional grep.

See It In Action

Basic ripgrep usage bash
# Search for a pattern recursively
rg "TODO"

# Search only in Python files
rg "def main" -t py

# Show 3 lines of context around matches
rg "error" -C 3

# Case-insensitive search with file list
rg -i "copyright" --files-with-matches

Features That Make ripgrep Stand Out

Every feature is designed with developer productivity in mind.

Lightning Fast

Built on Rust with SIMD optimizations and parallel directory traversal. Up to 100x faster than grep on large codebases.

🧠

Smart Defaults

Automatically respects .gitignore, skips hidden and binary files. No configuration needed for common use cases.

🖥️

Cross-Platform

Native binaries for Windows, macOS, and Linux. Same speed and behavior on every platform.

🛠️

PCRE2 Regex

Full PCRE2 support with look-around, backreferences, and Unicode character classes.

💻

Developer Friendly

File-type filtering, colored output, JSON mode, and shell completions for bash, zsh, fish, and PowerShell.

⚙️

Highly Configurable

Configuration file support, custom file types, and extensive CLI options for power users.

See the Speed Difference

Linux kernel source (25M+ lines) — Intel i9 @ 5.2 GHz

Tool Time
ripgrep Fastest 0.082s
git grep 0.273s
ag 0.443s
grep 0.891s

What Is ripgrep?

ripgrep (rg) is a line-oriented search tool that recursively searches directories for a regex pattern. Built in Rust, it combines the usability of The Silver Searcher with the raw speed of grep.

It automatically filters files using .gitignore rules, skips hidden files, and handles binary files intelligently — all while being significantly faster.

  • Open-source, maintained by Andrew Gallant
  • 50,000+ GitHub stars
  • Cross-platform: Windows, macOS, Linux
  • Zero configuration for common use cases
  • Powers VS Code built-in search

ripgrep vs grep

Feature rg grep
Speed (large repos) 100x 1x
Respects .gitignore
Unicode by default
PCRE2 regex
Windows native
Compressed files
JSON output

Get Started in 60 Seconds

Install with your favourite package manager

macOS

brew install ripgrep

Windows

winget install BurntSushi.ripgrep.MSVC

Ubuntu

sudo apt install ripgrep

Trusted by Developers Worldwide

50,000+
GitHub Stars
2,400+
Forks
1.4M+
Repos Using It
400+
Contributors

Frequently Asked Questions

Is ripgrep faster than grep?
Yes. Benchmarks consistently show ripgrep is 5-100x faster depending on the corpus and pattern, thanks to SIMD optimizations and smart file skipping.
Can ripgrep replace grep completely?
For most developer workflows, yes. For POSIX-portable scripts grep is still the standard. ripgrep excels at code search.
Does ripgrep work on Windows?
Yes, ripgrep has first-class Windows support with native binaries for x64 and ARM64.
How do I search specific file types?
Use the -t flag: rg "pattern" -t py searches only Python files. Run rg --type-list to see all supported types.
Can ripgrep search compressed files?
Yes, with the -z flag ripgrep can search gzip, bzip2, xz, lz4, brotli, zstandard, and LZMA files.

Ready to Speed Up Your Search?

Join thousands of developers who have made the switch to ripgrep.