Skip to main content

JSON Minifier

Minify and compress JSON by removing all whitespace.

minifycompressoptimize
Read the guide
Shortcuts:⌘ KSearch

Frequently Asked Questions

Is this doing real compression or just removing whitespace?

It is pure JSON minification: parse the input, then re-serialize it without indentation. That removes spaces and line breaks, but it does not gzip, shorten keys, or change values.

Do I have to press Minify every time?

No. It auto-runs about 400ms after input changes, and the Minify button just forces a manual run.

What is the Saved percentage based on?

It compares the browser Blob byte size of your original text versus the minified output. So the savings are whitespace savings, not network compression savings.

Will minifying change my key order or data types?

It does not intentionally transform the data; it round-trips through JSON.parse and JSON.stringify. The main change is removal of formatting whitespace.

Why did my output go blank after pasting?

If parsing fails, the tool clears the output and shows the JSON.parse error message. It will not produce partial or best-effort minified JSON.

Related Tools