{ }jsonkit
Tools/Format/JSON Minifier
Search tools…⌘K
Format
{ }JSON Formatter
≡→JSON Minifier
\"JSON Escape / Unescape
Validate
JSON Validator
±JSON Diff / Compare
§JSON Schema Generator
JWT Decoder
Convert
→csvJSON to CSV
csv→CSV to JSON
⇄ymlJSON ⇄ YAML
⇄xmlJSON ⇄ XML
→tsJSON to TypeScript
Query
$.JSONPath / JQ Tester
Generate
Mock JSON Data Generator
≡→

JSON Minifier

Strip whitespace for the smallest production payload.
processes as you type · client-side
Sample
Upload
⧉ Copy output ⌘C
Download
Share
Clear
Input219 B · paste or drop a file
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Output
codetree
1
{"id":"usr_8x42","name":"Ada Lovelace","email":"ada@example.com","active":true,"roles":["admin","editor"],"plan":{"tier":"pro","seats":5,"renews":"2026-08-01"}}
✓ valid (RFC 8259)219 B → 160 B0.0 msLn 1, Col 1UTF-8

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.