Skip to content

JSON Minifier - Free Online

Minified JSON is what APIs send over the wire - all whitespace and indentation stripped. Paste your beautified JSON and get back a single-line version that's 30-50% smaller. Useful when you need to embed JSON in a URL parameter, a script tag, a database field, or anywhere bytes matter.

When to use this

Use to: embed JSON in URL query strings (less than the 2K browser limit), inline JSON in HTML <script> tags, shrink JSON before encoding to Base64, prepare JSON for redis/memcached storage where byte count matters.

Frequently Asked Questions

Does minifying lose any data?

No - minified JSON is byte-for-byte semantically identical to the beautified version. Parsers don't care about whitespace; minify is purely a size optimization.

How much smaller will my JSON be?

Typically 30-50% smaller. Deeply nested JSON with lots of indentation sees the biggest savings; flat single-line-ish JSON sees less. Gzip on top compresses further when the JSON is sent over HTTP.

Powered by JSON Formatter.

Other targeted versions of this tool — each tuned for a specific use case.

Or use the main JSON Formatter if your use case isn't covered above.