gron alternatives: gron, fastgron and Gronify compared
This page compares gron with two alternatives that print the same json.path = value lines. fastgron is a C++ tool that flattened every record file from 1 MB to 1 GB faster than the other two in our benchmark. Gronify is a Node.js CLI that installs with npm install -g gronify and streams its input, so its memory use barely moves between a 1 MB file and a 1 GB one. gron still runs and has the widest packaging; its latest release is from April 2022. The facts below were checked against gron 0.7.1, fastgron 0.7.7, and Gronify 1.4.0 (benchmark figures are from the 2026-11-05 sweep on Gronify 1.3.1).
Updated
gron vs fastgron vs Gronify at a glance
All three turn JSON into one assignment per line and back again. The table lists where they differ.
| Property | gron | fastgron | Gronify |
|---|---|---|---|
| Language and runtime | Go, no runtime dependencies | C++20, built on simdjson | TypeScript, runs on Node.js 20 or newer |
| Latest release | v0.7.1, 2022-04-13 | v0.7.7, 2023-12-06 | 1.4.0, 2026-11-22 |
| Install methods | Release binaries, brew install gron, go install, Scoop | Release binaries, brew install fastgron, Arch (fastgron-git), Nix | npm install -g gronify, npx gronify, a Homebrew tap |
| Default output order | Sorted by key, and each line ends with ; | Document order, no ; | Document order, no ; |
| Built-in filtering | None, pipe to grep | -F fixed string, and path queries | search with plain text or a JavaScript regex |
| Ungron of grep-filtered lines | Yes, -u | Yes, -u | Yes, unflatten |
| JSON Lines input | Yes, -s | Yes, -s | Yes, -s / --stream / --jsonl |
| URL input | Yes | Yes, except in the Windows binary | No, pipe from curl |
| Memory on large files | Reads the whole document: 3.74 GiB on a 100 MB file | Grows with the file: 1.85 GiB on a 1 GB file | Streams: 65 MiB on a 1 GB file |
| Number handling | Printed as written | Printed as written | Printed as written |
Is gron still maintained?
gron and fastgron repository dates were read from GitHub on 2026-11-12; Gronify's release date is current as of 2026-11-22.
- gron: latest release v0.7.1 on 2022-04-13, latest commit on 2025-05-31, 57 open issues and pull requests. Two of the issues concern memory: #50, Inexplicably high memory usage, opened in September 2018, and #61, Issues processing large JSON files, opened in February 2019.
- fastgron: latest release v0.7.7 on 2023-12-06, latest commit on 2026-07-04.
- Gronify: latest release 1.4.0 on 2026-11-22.
gron 0.7.1 ran every gron command on this page correctly. Both memory issues were still open on that date.
Installing from npm and on Windows
The gron package on npm is a different project
npm install -g gron does not install tomnomnom's gron. The npm package named gron is published from the FGRibreau/gron repository, a separate Node.js program that puts its own gron and ungron commands on your PATH. Its latest version is 4.4.0, published in November 2016. Neither tomnomnom's gron nor fastgron lists npm in its install instructions.
The npm package for the tool on this site is gronify. npm install -g gronify installs it, and npx gronify --help runs it without installing. The other routes are in the install section of the home page.
Windows
- gron publishes Windows zips for 386, amd64, and arm64 with v0.7.1, and Scoop's main bucket carries the same version.
- fastgron publishes
fastgron.exe. Its README says that binary is built without libcurl, so it cannot readhttporhttpsURLs directly. - Gronify installs through npm on any system with Node.js 20 or newer. Its CI runs the full test suite on Windows, Linux, and macOS with Node.js 20 and 22.
Output differences that break scripts when you switch
Here is one small file through each tool:
cat service.json{"service":"checkout","version":"2.4.1","regions":["us-east-1","eu-west-1"],"owner":{"team":"payments","id":12345678901234567890}}gron service.jsonjson = {};json.owner = {};json.owner.id = 12345678901234567890;json.owner.team = "payments";json.regions = [];json.regions[0] = "us-east-1";json.regions[1] = "eu-west-1";json.service = "checkout";json.version = "2.4.1";fastgron service.jsonjson = {}json.service = "checkout"json.version = "2.4.1"json.regions = []json.regions[0] = "us-east-1"json.regions[1] = "eu-west-1"json.owner = {}json.owner.team = "payments"json.owner.id = 12345678901234567890gronify flatten service.jsonjson = {}json.service = "checkout"json.version = "2.4.1"json.regions = []json.regions[0] = "us-east-1"json.regions[1] = "eu-west-1"json.owner = {}json.owner.team = "payments"json.owner.id = 12345678901234567890gron sorted the keys and ended every line with ;. fastgron and Gronify printed identical bytes, in document order and with no semicolon. All three kept the 20-digit id as written. A script written against gron's format needs a flag: fastgron --sort --semicolon printed exactly what gron printed for this file, and gronify flatten --sort printed gron's order without the ;. The same sorted output is what lines two files up for diff; see comparing two JSON files.
The semicolon also decides which tool can read which output. gron -u rejects a line that lacks one. fastgron -u and gronify unflatten accept lines with or without it.
gron service.json | gronify unflatten{"owner":{"id":12345678901234567890,"team":"payments"},"regions":["us-east-1","eu-west-1"],"service":"checkout","version":"2.4.1"}fastgron service.json | gronify unflatten{"service":"checkout","version":"2.4.1","regions":["us-east-1","eu-west-1"],"owner":{"team":"payments","id":12345678901234567890}}gronify flatten service.json | gron -uungron failed for `json = {}`: statement has no value| Flattened by | Read by | Result |
|---|---|---|
gron | gronify unflatten | Works. Keys keep gron's sorted order |
gron | fastgron -u | Works |
fastgron | gron -u | Fails with statement has no value. Works with fastgron --semicolon |
fastgron | gronify unflatten | Works. Keys keep document order |
gronify flatten | gron -u | Fails with statement has no value. Works after sed 's/$/;/' |
gronify flatten | fastgron -u | Works. Keys come out sorted |
Key order after a round trip differs too. gron -u and fastgron -u wrote the keys in alphabetical order and indented the JSON, even when the lines arrived in document order. gronify unflatten writes keys in the order the lines arrive and prints compact JSON unless you add the global --pretty flag.
Speed and memory on large files
fastgron is the fastest of the three at flattening a whole file. In the benchmark published with Gronify 1.3.1 (run on 2026-11-05 on an Apple M5 Pro, against gron 0.7.1 and fastgron 0.7.7), it flattened record files from 1 MB to 1 GB faster than both other tools, and its -F filter counted matches faster than gronify search at every size. On the 1 GB file fastgron took 1.78 s and Gronify 3.63 s. gron did not finish, because the harness stops any process that passes 8 GiB of memory.
Memory use is the reverse. On that 1 GB file fastgron peaked at 1.85 GiB and Gronify at 65 MiB, because Gronify parses the input as a stream and does not keep the document. gron decodes the whole document and then sorts it. On the 100 MB file it peaked at 3.74 GiB, and --no-sort did not lower that. Unflattening the 1 GB file peaked at 7.46 GiB in fastgron and 97 MiB in Gronify.
Gronify was faster than fastgron at unflattening the 100 MB and 1 GB files and in capped runs on those sizes, where --limit and -m stop reading the input once they have enough lines. On small files fastgron leads on both time and memory.
The full tables and the exact commands are in the benchmarks on the home page. For a file that does not fit in RAM, see the guide to large JSON files.
What gron and fastgron do that Gronify does not
- URLs.
gron https://api.github.com/repos/tomnomnom/gronfetches the URL itself, and so does fastgron outside Windows. Gronify reads files and stdin only, so pipe the response in:curl -s https://api.github.com/repos/tomnomnom/gron | gronify flatten. - Path queries.
fastgron service.json .owner.teamprints only that path, and its README documents wildcards and slices. Gronify has no query language;searchfilters the flattened lines by text or regex, as shown in how to grep JSON.
Two features that used to belong only to gron and fastgron shipped in Gronify 1.4.0: rebuilding JSON from grep-filtered lines (unflatten fills in missing parents automatically; see turning gron lines back into JSON) and reading JSON Lines with -s, --stream, or --jsonl:
gron service.json | grep regions | gron -u{ "regions": [ "us-east-1", "eu-west-1" ]}gronify flatten service.json | grep regions | gronify --pretty unflatten{ "regions": [ "us-east-1", "eu-west-1" ]}fastgron service.json .owner.teamjson.owner.team = "payments"cat events.jsonl{"id":1,"status":"ok"}{"id":2,"status":"failed"}gron -s events.jsonljson = [];json[0] = {};json[0].id = 1;json[0].status = "ok";json[1] = {};json[1].id = 2;json[1].status = "failed";gronify flatten -s events.jsonljson = []json[0] = {}json[0].id = 1json[0].status = "ok"json[1] = {}json[1].id = 2json[1].status = "failed"Without -s (or --stream / --jsonl), Gronify expects one JSON document per run and prints a tip pointing to --stream if it sees a second top-level value.
Which one should I use?
- If your files are a few megabytes and you want one binary with no runtime and sorted output, installed from Homebrew, Scoop, or
go install, use gron. - If speed matters most and the file fits in RAM about twice over, or you want built-in URL fetching or path queries, use fastgron.
- If you want an npm install, regex search in one command, JSON Lines streaming (
--stream), the original key order, or files larger than your RAM, use Gronify.
If you already know the path and want to select or reshape records, none of the three fits. That is what jq is for.