JSON Minifier
Paste pretty-printed JSON and get a single-line minified version. The size bar shows raw, minified, and percent saved. Optionally strip "key": null entries (off by default — null can carry semantic meaning). Combine with gzip on your server for maximum transfer savings.
How to minify JSON
- Paste pretty-printed JSON.
- The minified output appears live. The size bar shows Before, After, and Saved in bytes plus percent.
- Copy or Download the minified version.
- Toggle Strip nulls to also remove
"key": nullentries (off by default — null is sometimes semantically meaningful).
How much will I save?
- Indented config files: typically 30–60% saved by minification alone.
- Already-compact JSON: a few percent.
- Gzip after minify: another 60–80% on top of minified, for repetitive data.
- See size analyzer for raw / minified / gzip / brotli sizes side-by-side.
FAQ
Does minifying lose data?
No — it only removes whitespace outside of strings. Round-tripping (minify → parse → stringify with indent) produces identical JSON.
Should I strip nulls?
Only if your downstream consumer treats absent keys and null the same. If your API uses null to mean "explicitly cleared" (different from "never set"), keep nulls.
Will gzip make this even smaller?
Yes — by 60–80% more, typically. Enable gzip or br on your web server. Browsers handle the decompression transparently.
Will it work offline?
Yes — plain JavaScript in your browser. After the page loads, you can disconnect.