JSON Minifier
Strip whitespace to shrink your JSON payload. The savings counter shows exactly how many bytes you cut. Runs entirely in your browser.
When do you need to minify?
- You’re embedding JSON inside an HTML attribute or a URL parameter.
- Your API response payload is bloated and you want to see how much is whitespace.
- You’re benchmarking transfer time and need an apples-to-apples baseline.
What it preserves
Minify only touches whitespace between tokens. Object key order, array element order, number precision, and string contents are all preserved exactly as parsed. You can round-trip minify → format and the values match perfectly.
Frequently asked questions.
- What does 'minify' actually do to my JSON?
- It removes every byte the parser doesn’t need: spaces, tabs, line breaks, and the indentation around keys, values, and brackets. The decoded value is identical — just the textual representation is smaller.
- Is it the same as gzip?
- No. Minifying removes structural whitespace before transmission. Gzip compresses bytes on the wire. Both can stack: gzip a minified payload and you save again.
- Will it break number precision?
- It uses JSON.stringify, so numbers round-trip exactly the way the JS engine handles them. Integers above Number.MAX_SAFE_INTEGER lose precision during parse — minify can’t fix that.
- Does my JSON leave my browser?
- No. Minify happens in JavaScript, in your browser. There is no server.