Is the JSON minifier free?
Yes. This JSON minifier is completely free to use with no signup or account required.
Does it upload my JSON?
No. Minification happens entirely in your browser on your own device, so your JSON is never sent to a server and stays private.
Does minifying change the actual data?
No. It only removes unnecessary whitespace from valid JSON. The minified output parses to exactly the same data.
Can I see how much smaller the JSON gets?
Yes. The tool shows a before-and-after character count so you can see the size reduction at a glance.
Can I reformat the minified JSON later?
Yes. Because no data is lost, you can paste the minified output into a JSON formatter to make it readable again.
Does minifying change my data?
It should not, with two caveats worth knowing. Duplicate keys in the same object collapse to the last one, because that is what the parser does. And integers larger than 2^53 lose precision, because JavaScript parses every number as a double. If your payload has big IDs, check them in the output.
Why is the size saving smaller than I expected?
Because the only thing being removed is whitespace, and your input may not have had much. If the input was already compact, or if it is mostly long string values, there is little to strip. The reported figure is a character count, so remember that a multi-byte character counts once here and more than once on the wire.
Is minified JSON actually faster to load?
Less than people assume. If the response is served with gzip or brotli, the compressor already handles repeated whitespace efficiently, so minifying first gains only a few percent. It matters most where compression is not in play: JSON pasted into an HTML attribute, embedded in a script tag, or stored raw in a database column.
Why did my JSON fail to minify?
Because it is not valid JSON. Comments, trailing commas, single-quoted strings and unquoted keys are all valid JavaScript and none of them are valid JSON. The error message comes from the browser's own parser and includes the position where it gave up, which is usually enough to find the problem.
Can I get the formatting back?
Yes. Minifying and pretty-printing are both re-serializations of the same parsed structure, so paste the minified output into the JSON Formatter and you get readable JSON back. What you do not get back is the original indentation width or key ordering choices, since those were never in the data.
Is the JSON uploaded?
No. It is parsed and re-serialized in the page with the browser's own JSON implementation, so nothing is sent to a server.