Compress JSON to its smallest valid form by removing all insignificant whitespace, and see exactly how many bytes you saved.
Waiting for input
Paste formatted JSON to compress it. Everything runs in your browser.
Paste JSON to minify
Strip every optional byte and see exactly how much smaller it gets.
JSON Minifier runs entirely on your device — nothing is uploaded.
You’re on the Free plan. Compare plans
Minifying JSON removes every byte a parser does not need: the indentation, the line breaks, and the space after each colon and comma. The data is identical afterwards — only the presentation is gone.
It matters wherever JSON travels or is stored at volume. Config bundled into a page, payloads on a slow connection, documents in a cache or a queue: the whitespace in a pretty-printed document is routinely a fifth of its size, and it buys the machine reading it nothing.
This minifier parses the document and re-serialises it rather than stripping whitespace with a search and replace. That distinction is not academic — a regex that deletes spaces will happily corrupt a string value that legitimately contains one. Parsing first makes it impossible to damage your data.
No. The document is parsed and re-serialised, so every key, value and array position survives exactly. Only insignificant whitespace between tokens is removed. Whitespace inside a string value is part of that value and is preserved untouched.
It depends entirely on how it was formatted. A two-space indented document with one key per line typically loses 15–30% of its size; a document that was already compact loses nothing, and the tool tells you so rather than pretending it did something.
Yes. Whitespace between tokens is optional in the JSON grammar, so a minified document parses identically to the formatted one. Anything that accepted the original will accept the output.
Yes — paste the result into the JSON Formatter to expand it again with your choice of indentation. Nothing is lost in either direction, because both tools parse and re-serialise rather than editing text.
Usually not. Minified JSON produces a single-line diff for any change, which makes code review and merge conflicts considerably harder. Minify at the point where the document is served or stored, and keep the readable version in source control.