Loading tool…
About the JSON Minifier
Minifying JSON removes the indentation and line breaks that make it readable, which matters when you’re embedding a payload inline, keeping a request body small, or shaving bytes off a large config. This tool minifies in place and shows exactly how much smaller the result is.
How to use the JSON Minifier
- Paste your JSON — formatted or already minified.
- Click Minify.
- Compare the before/after size shown above the output.
- Copy the minified result.
Step-by-step walkthrough with examples and the errors people hit: How to Minify JSON and Why It Matters.
Example
Formatted input
{
"user": {
"id": 1,
"name": "Ada"
}
}
→
{"user":{"id":1,"name":"Ada"}}
Common errors and how to fix them
The minified JSON is still large
Minifying only removes whitespace. Large payloads are usually large because of repeated keys or embedded base64; consider gzip at the transport layer, which most servers apply automatically.
Minify reports invalid JSON
The tool parses before it minifies, so the same rules apply as the formatter: double-quoted keys, no trailing commas, no comments.
More problems and fixes in the tutorial
FAQ
Does minifying change the data?
No — only whitespace is removed. The parsed value (keys, values, types, order) is identical.
How much smaller will my JSON get?
It depends on how heavily indented the original was — typically 10–30% for deeply nested objects. The tool shows the exact before/after byte counts.
Is minified JSON still valid JSON?
Yes. Whitespace outside of strings is not significant in JSON, so a minified payload parses identically to its formatted version.