RipGrep GNU

BurntSushi·BurntSushi.ripgrep.GNU

ripgrep recursively searches directories for a regex pattern while respecting your gitignore

ripgrep is a line-oriented search tool that recursively searches the current directory for a regex pattern. By default, ripgrep will respect gitignore rules and automatically skip hidden files/directories and binary files. (To disable all automatic filtering by default, use rg -uuu.) ripgrep has first class support on Windows, macOS and Linux, with binary downloads available for every release. ripgrep is similar to other popular search tools like The Silver Searcher, ack and grep.

winget install --id BurntSushi.ripgrep.GNU --exact --source winget

Latest 16.0.0·November 22, 2026

Release Notes

Sponsorship is appreciated!

In case you haven't heard of it before, ripgrep is a line-oriented search tool that recursively searches the current directory for a regex pattern. By default, ripgrep will respect gitignore rules and automatically skip hidden files/directories and binary files. ripgrep 16 is a new major version release of ripgrep that mostly has bug fixes, some minor performance improvements and a small number of new features. Here are some highlights:

  • There is now an --in flag for telling which files ripgrep should search by pointing to another containing line delimited file paths. (There is also a corresponding --in0 flag for NUL delimited file paths.)
  • ripgrep now has a -G/--glob-not flag, which is recommended in lieu of using ! to negate a glob. That is, -g '!.toml' can now be spelled as -G '.toml'.
  • ripgrep now respects a new RIPGREP_THREADS environment variable for setting the default number of threads to use for parallel searches. Whenever -j/--threads is specified on the command line (or in a configuration file), it takes precedence over the environment variable.
  • riscv64 has been re-added to ripgrep's release pipeline. Binaries can now be downloaded for that target.

Enhancements:

  • #3522: Add new -G/--glob-not flag for negating -g/--glob.
  • #3425, #3622, #3511: Add nushell completions via --generate complete-nushell (#3425).
  • #3255: Add Zed hyperlink alias.
  • #2962: Add POSIX character class support in bracket expressions.
  • #3035: Add --max-bytes flag to limit bytes per file.
  • #273, #3459: Add --in/--in0 flags for reading file paths.
  • #3317, #3415: Support RIPGREP_THREADS environment variable.
  • #3620, #3617: Delay-load userenv.dll on Windows MSVC.

Bug fixes:

  • #3609, #3603: Reject partial path components when stripping Unix prefixes.
  • #3605, #3604: Continue reading ignore files after invalid UTF-8 lines.
  • #3607, #3614: Statically link binary on Windows ARM64/MSVC (#3607).
  • #3593: -v -m N -A k printing the rest of the input as matches.
  • #3581, #1764: -g !DIRNAME/ couldn't match when the CWD is DIRNAME.
  • #2552: Don't report ignored broken symlinks when following links.
  • #3577: Hostname buffer size at HOST_NAME_MAX.
  • #3382: Preserve buffered matches after parallel search errors.
  • #3526: Hyperlink paths that are not valid UTF-8.
  • #2745: Exclude path separator from character classes.
  • #3534: Detect symlink loops above the search root.
  • #3617: Don't compare against stdout when it's a pipe on Windows.
  • #2958: Sanitize paths by removing control codes in output.
  • #3527: Treat lone ! gitignore line as a no-op.
  • #3484: Separate Scheme from Lisp file types.
  • #3342: Detect compressed files by magic number, not just extension.
  • #3477: Parse trailing spaces correctly in gitignore patterns.
  • #1983, #3364: --json should emit multiple matches in multiline mode.
  • #3222: Separate flags from paths in decompression commands.
  • #3503: Fall back past MAX_LOOK_AHEAD in multi-line match discovery.

Documentation:

  • #3598: Clarify PATH environment variable in flag documentation.
  • #3551: Note that nesting {...} alternates is allowed.
  • #3538: Document git divergence in matched_path_or_any_parents.
  • #3243: Emit .TP for each flag entry to generate linkable anchors.
  • #3500: Clarify that the -r/--replace flag is not recursive search.
  • #3323: Remove $ prompt symbols from README code blocks.
  • #3448: Update guide examples for a more recent release.

Performance:

  • #3597, #3594: Skip path resolution when hyperlinks are disabled.
  • #2832: Honor custom line terminators in the regex engine.

Installer type: zip

x64—4167EAE8EE118AC3B16E95685CDCE1F2D90F4F1E30110685C15310D63CF32144

Details

Homepage
https://github.com/BurntSushi/ripgrep
License
Dual License (MIT & Unlicense)
Publisher
BurntSushi
Support
https://github.com/BurntSushi/ripgrep/issues
Moniker
rg

Tags

clicommand-linecommand-line-toolgitignoregreprecursively-searchregexripgreprustsearch

Older versions (8)

15.2.0
x64—5DBDC225A3CE064314FC05B6DE8423A08A7B681764C1A276FF8263FEAF68C7D6
15.1.0
x64—0BF217086ECB1392070020810B888BD405CB1DD5F088C16C45D9DE1E5EA6B638
15.0.0
x64—2DA5362849A82C847923524CF983F134CEFB07272501BFF3647B4D035DD28528
14.1.1
x64—01469C43C3FFFDB4BAFF80469A75A7BF1DC3D0BF4EF63CDA72A22F885F27465A
14.1.0
x64—4f2dc22621a7b75031a28d34582ba01af1fe5eeacebfa089a495250d9186917c
14.0.3
x64—DB1AC1664E8212AF424D3FA54AA36A24DD5D34B8481710CA77061A09BEE9E53A
14.0.2
x64—945E421109A2CB526D5B939792BCC5E85B4C30AF1D44DFA6E53C08750FC7C96C
13.0.0
x64—EF633D350882152A4A1139F71B381C1D9AA118B27DAD386460A517EA89BD1632