Pre-launch — your 10 free credits are reserved for launch day. Join the waitlist
cleaners · free tool

JSON Minifier

Strip whitespace from JSON down to the smallest valid form.

Runs in your browser — your data never leaves it

Paste, type, or drop a file. Runs as you type.

Output appears here as you type.

Worked example

Input
{
  "a": 1,
  "b": [2, 3]
}
Output
{"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