{ }jsonkit
Format
Validate
Convert
Query
Generate
≡→

JSON Minifier

Strip whitespace for the smallest production payload.
219 B · paste or drop a file
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
✓ complete219 B → 160 B0.0 ms

About JSON Minifier

The JSON minifier removes every unnecessary character — spaces, tabs and newlines between tokens — to produce the smallest valid JSON possible. It is the fastest way to turn a readable, indented document into a compact one-line payload ready to send over the network or store.

Everything happens client-side in your browser. Your JSON is never uploaded to a server, so minifying an authentication payload, a webhook body or a production config is completely private. There is no signup and no size paywall.

Developers reach for it when they need to shrink request bodies, cut bandwidth, inline JSON into a script or environment variable, or measure the true wire size of a response. The output is byte-for-byte the minimal encoding of the same data.

How it works

What gets removed

Minifying strips all insignificant whitespace: the indentation, the newlines and the spaces after colons and commas. Whitespace inside string values is preserved because it is meaningful — only the formatting between tokens is collapsed.

The data is unchanged

Minification is lossless. Keys keep their order, numbers keep their precision, and strings — including escaped characters and Unicode — are untouched. Re-formatting the minified output gives you back an identical document.

See the size you save

The status bar shows the input and output byte counts so you can see exactly how much smaller the payload became. This is the real number that travels over the wire, not an estimate.

Invalid input is caught first

The minifier parses before it compacts, so malformed JSON is reported with a line and column rather than producing a broken one-liner. Fix the flagged spot and it minifies cleanly.

Frequently asked questions

Is minified JSON still valid?

Yes. Minifying only removes whitespace between tokens; the result is fully valid JSON that any parser accepts and that decodes to exactly the same data.

Will minifying break strings that contain spaces?

No. Whitespace inside string values is significant and is always preserved. Only the formatting whitespace around the structure is removed.

How much smaller will my JSON get?

It depends on how deeply nested and heavily indented the input is — pretty-printed documents often shrink 20-50%. The status bar shows the exact before and after byte counts.

Is my data uploaded to minify it?

No. Minification runs entirely in your browser. Nothing is sent to a server, so it is safe for secrets and production data.

Can I get the readable version back?

Yes. Paste the minified output into the JSON formatter to pretty-print it again — the round trip is lossless.