JSON Minifier
Strip whitespace from JSON down to the smallest valid form.
Your data never leaves your browser
This tool runs entirely on your computer. What you paste or drop is never uploaded, never stored and never seen by us — close the tab and it's gone. How we know
Sign up to run — no credit card required.
Press Run to see the output. Sign up takes ten seconds — no credit card required.
Worked example
{
"a": 1,
"b": [2, 3]
}{"a":1,"b":[2,3]}This example is one of JSON Minifier's test cases — if the tool stopped producing this output, the build would fail.
Questions
- Does it change my data?
- No — only whitespace. It parses and re-serialises, so the result is the same document in the smallest valid form.
- What if the JSON is invalid?
- It errors. Minifying invalid JSON isn't meaningful; validate it first.
Related tools
JSON Formattertakes json
Pretty-print and indent JSON — in your browser, nothing uploaded.
JSON Validatortakes json
Check whether JSON is valid and see the first error.
JSON to CSVtakes json
Turn a JSON array of records into CSV, with proper escaping.
JSON to XMLtakes json
Convert JSON into XML, with sensible element names and nesting.