DevTools Hub

Search tools

Search for a developer tool

JSON

JSON Minifier

Minify JSON online and see exactly how many bytes you saved.

Minified
139 bytes 104 bytes35 bytes saved (25%)

What JSON minification does

Minifying JSON strips every character that isn't part of the actual data — indentation, line breaks, and spaces around colons and commas — without changing the value it represents. The result parses to exactly the same object, just in fewer bytes.

Why it matters

Does minifying lose any information?

No. JSON whitespace outside of string values is not meaningful — removing it doesn't change a single key or value. The only thing minifying "loses" is human readability, which is exactly the tradeoff you're making on purpose.

FAQ

How is this different from the JSON Formatter?

Same underlying operation, different default: this page defaults to producing the smallest possible output and shows you exactly how many bytes you saved. If you also want to switch back and forth between pretty-printing and minifying in one place, the JSON Formatter tool supports both modes.

Is my JSON uploaded anywhere?

No — minification happens entirely in your browser using the native JSON parser.

Related tools