{ jsonzen }0 bytes uploaded

JSON Minifier

Strip whitespace and shrink JSON to its minimum size. Runs in your browser.

<5ms🔒client-only
Inputpaste ⌘V
Paste JSON here…
Output
Auto-runs on paste⌘↩
Tip: press Ctrl + Enter to re-run, or paste a large JSON to auto-format.
// EXAMPLES
// HOW IT WORKS

Minifying parses the JSON with JSON.parse() then re-serializes with JSON.stringify() without any extra whitespace. This guarantees the output is structurally identical to the input — just smaller. Use it before sending JSON over the wire or storing it in a tight space.

// FAQ

How much smaller does my JSON get?

It depends on how much whitespace was in the input. Pretty-printed JSON typically shrinks by 20-50% after minifying.

Does this preserve all my data?

Yes. Minifying only removes whitespace and unnecessary characters. All keys and values are preserved exactly.

Can I minify invalid JSON?

No. The minifier needs to parse the input first. If your JSON has errors, use the Repair tool to fix them first.