JSON Minifier
Paste pretty-printed JSON on the left, get a single-line minified version on the right. Whitespace, indentation, and line breaks are stripped to produce the smallest valid representation.
How to use this tool
Paste your formatted JSON into the input on the left.
The minified output appears on the right as you type.
Use the Copy button and paste the minified JSON into production code, embedded configs, or bandwidth-sensitive payloads.
Minification removes only insignificant whitespace — string contents are preserved exactly. For typical pretty-printed JSON, minification reduces size by 20-50%, which adds up at scale.
All processing is local. Your JSON never leaves the browser.
Frequently asked questions
What exactly gets removed?
Only whitespace that is not inside a string value: spaces, tabs, newlines, and indentation outside of quoted strings. String contents, numbers, and structural punctuation are untouched, so the result is semantically identical to the input.
How much size does minification save?
Typically 20-50% for human-readable JSON. The savings depend on how deeply nested the data is and how much whitespace the original used.
Does minification break anything?
No. Minified JSON is valid JSON and parses identically to the pretty-printed version. The only difference is byte size.
Can I minify invalid JSON?
No — minification requires parsing first, so invalid JSON will surface a parse error. Fix the syntax, then minify.
Is my data uploaded?
No. Minification runs entirely in your browser.