JSON Minifier
Minify JSON by removing every byte of insignificant whitespace.
Output options
Numbers and string escapes are copied exactly; only whitespace changes.
How to Minify JSON Online
Paste formatted JSON into the editor or open a file. It is minified as you type, and the summary shows the size before and after. Syntax errors are highlighted at their line and column, because invalid JSON cannot be safely minified. Copy or download the single-line result.
When to Minify JSON
Minify JSON before shipping it to production: API payloads, embedded configuration, and data files all transfer faster when whitespace is removed. For development and debugging, format it instead.
Minify vs. Format
Minifying shrinks JSON by stripping whitespace; formatting expands it for readability. The two are reversible — use the JSON Formatter to pretty-print minified JSON again.
Frequently Asked Questions
What does minifying JSON do?
It removes all insignificant whitespace — spaces, indentation, and line breaks — producing the smallest valid representation of your JSON without changing its data.
Why minify JSON?
Smaller JSON means faster network transfers and lower bandwidth. Minified JSON is ideal for API responses, config bundled into apps, and anywhere payload size matters.
Is the data identical after minifying?
Yes, byte for byte apart from whitespace. Whitespace is removed from your original text rather than by parsing and re-serialising, so numbers such as 1.50 or 12345678901234567890 and escapes such as \u00e9 come out exactly as they went in. You can re-expand the result any time with the JSON Formatter.
Is my JSON kept private?
Yes. Minification happens entirely in your browser. Nothing is uploaded to a server.
Continue with the data, not the directory
Validate, format, repair, compare, query, and reshape payloads before they ship.
JSON Formatter & Beautifier
Format and beautify JSON with 2, 3 or 4 spaces or tabs, see any syntax error at its exact line and column, and repair common mistakes in one click.
JSON Validator
Check whether JSON is valid, with any error highlighted at its exact line and column, a plain explanation, and one-click repair.
JSON Compare & Diff
Compare two JSON documents side by side, with changed lines highlighted, counts of what was added, removed and changed, and an option to ignore array order.
JSON Fixer
Repair almost-JSON: trailing commas, single quotes, unquoted keys, comments, and Python literals.