Removes every byte of insignificant whitespace and reports the saving. Useful for fitting a payload into a size-limited field — a URL parameter, a database column, an environment variable, a QR code.
How much this actually saves
Over HTTP most of that saving disappears: gzip and brotli compress repeated indentation almost to nothing, so a minified payload is often only a few per cent smaller on the wire. Where minifying genuinely matters is anywhere the raw bytes are counted — a 2,048-character URL limit, a fixed-width column, a device with a small message budget.
What is preserved
1.50 becomes 1.5 and 1e3 becomes 1000: the values are identical but the text is not, which matters if you are comparing checksums.Minifying is not compressing, and the difference is larger than it looks
Other names for this
Also searched as “compress json”, “json compactor”, “minify json online”.
Questions
- Will minifying break anything?
- No. Whitespace between tokens carries no meaning in JSON, and whitespace inside strings is left exactly as it was.
- Why did my number change?
- Numbers are re-serialised in their shortest exact form:
1.50becomes1.5. The value is unchanged, but the bytes are not, so checksums will differ. - Does my text leave the browser?
- No. Everything runs as JavaScript in this tab — there is no server involved and no request is made. Open the Network panel and watch, or turn your Wi-Fi off and keep using the tool.