DevTools Hub

Search tools

Search for a developer tool

JSON

JSON Minifier

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

Part of the JSON Toolkit
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.

I'm minifying an IAM policy to fit AWS's size limit

Worth checking first: for most IAM policy quotas, AWS already ignores whitespace when measuring size, so minifying often doesn't change whether it fits — see IAM Policy Minifier, which checks the result against the actual limits and flags the one case (a passed STS session policy) where minifying genuinely helps.

Is my JSON uploaded anywhere?

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

Related tools