Skip to content

JSON Minifier

Strip whitespace from JSON and see how many bytes you saved.

Minified JSON

The compact version appears here.

About JSON Minifier

Minifying JSON removes every byte that a parser ignores: the indentation, the newlines and the spaces after colons and commas. On a deeply indented document this routinely removes a fifth to a third of the payload.

The tool shows the before and after size along with the percentage saved, so you can judge whether the trade-off in readability is worth it for your use case.

Frequently asked questions

Is minified JSON still valid?

Yes. Whitespace between tokens carries no meaning in JSON, so removing it produces an equivalent document.

Does it compress the data?

It only removes insignificant whitespace. For real compression, serve the response with gzip or brotli on top of the minified payload.

Are keys shortened?

No. Renaming keys would change the meaning of the document, so the minifier never touches them.

Related tools