Shrink your JSON — losslessly and privately
A JSON Minifier removes all insignificant whitespace — indentation, line breaks, and spaces between tokens — to produce the smallest valid JSON. The result is byte-for-byte smaller but parses to the identical data. This one runs entirely in your browser, so your JSON is never uploaded.
Pretty-printed JSON is great for reading but wasteful for transport and storage — all that indentation and line-breaking is bytes you don't need to send. A JSON minifier strips out every bit of insignificant whitespace, collapsing the JSON onto a single compact line while keeping it completely valid and equivalent.
Paste your JSON, open a local file, or drop one on the left pane, and the tool validates it, minifies it, and shows the size before and after in real bytes — UTF-8 bytes, not characters, so an accented word or an emoji counts what a file would actually cost — with the percentage saved. The output parses to exactly the same object — same keys, same values, same order — so it's a lossless transformation; only whitespace between tokens is removed. Whitespace inside your string values is untouched. You can copy, download, or flip back to beautify if you need it readable again.
Privacy comes first, as with every tool here. Minifying happens in your browser — no server, no upload, no logging, no tracking. Developers minify API payloads and config files they'd rather not send anywhere; here the JSON never leaves your device, and the tool works offline once loaded.
A couple of honest notes. Because it validates first, it won't emit broken JSON — an invalid document is reported with the line and column, not mangled. Comments and trailing commas are the exception, and they are common enough in a config file to be worth a switch: turn on Strip comments and JSONC goes in, standard JSON comes out. The stripper reads the document character by character, so a // inside a string — every URL you have ever pasted — is left alone.
And on savings: minifying meaningfully reduces size, but for network transport, server compression (gzip or brotli) usually saves more than minifying alone — the good news is they stack, so minified-then-compressed is smaller still. Minifying is most valuable where compression isn't applied, or to keep payloads lean by default. Sort keys A–Z is the other switch: it reorders every object by key, which is what makes two API responses diffable when the server returns them in whatever order it likes.
For the reverse, see the JSON Formatter; to check validity, the JSON Validator.