JSON minifier
Strip whitespace from JSON to produce the smallest possible payload. Runs in your browser.
Runs in your browser Instant No signup, no tracking
About this tool
Remove every unnecessary character from a JSON document to get a compact, single-line payload — useful for embedding JSON in a URL, a data attribute, or a request body where bytes matter. Invalid JSON is rejected with a clear parser error. Everything runs client-side.
Example
Paste the input on the left and you will get output like this:
Sample JSON
{
"user": {
"id": 42,
"name": "Ada Lovelace",
"roles": ["admin", "author"]
}
}Resulting Minified JSON
{"user":{"id":42,"name":"Ada Lovelace","roles":["admin","author"]}}How to use JSON minifier
- Paste or type your JSON into the left pane.
- The Minified JSON appears instantly in the right pane. Conversion runs in your browser — nothing is uploaded.
- Copy the result to your clipboard or download it as a file.
FAQ
- Is key order preserved?
- Yes. Objects round-trip through the native JSON parser, which preserves insertion order.
- How much smaller is minified JSON?
- Typically 20–40% smaller than pretty-printed JSON, depending on nesting depth.
- Can I re-expand it?
- Yes — paste it into the JSON formatter to get a pretty-printed version back.