Paste formatted or pretty-printed JSON and instantly strip all unnecessary whitespace to produce the smallest possible JSON string — ready for production use, HTTP payloads, or embedding in code.
JSON minification removes all whitespace characters — spaces, tabs, and newlines — that exist only for human readability. The result is functionally identical JSON in the fewest possible bytes.
Beautified JSON (43 bytes of overhead):
{
"name": "Jane",
"active": true
}
Minified (zero unnecessary bytes):
{"name":"Jane","active":true}
Reduce payload size — Minified JSON transfers faster over HTTP. For high-traffic APIs or large responses, the savings add up quickly.
Embed in source code — A single-line JSON string is easier to assign to a variable or embed in HTML without multi-line string handling.
Config and data files — Some build tools, bundlers, or parsers prefer or require compact JSON.
Storage efficiency — When storing JSON in databases, cookies, or local storage, compact JSON uses less space.
Savings vary with the amount of formatting. A heavily indented file with many short keys might see 20–40% size reduction. A flat list of long strings will see much less. The output char count shown after minifying lets you see exactly how many characters were removed.
Does minifying JSON change the data?
No. The values, keys, types, and structure are identical. Only non-significant whitespace is removed.
Is my JSON sent to a server?
No. All processing runs locally in your browser. Nothing you paste is transmitted anywhere.
What's the difference between minifying and compressing JSON?
Minification removes whitespace at the text level. Compression (like gzip or brotli) encodes the bytes more efficiently at the network level. Most web servers apply HTTP compression automatically, so minifying first and then compressing gives you the best of both.
Can I minify invalid JSON?
No — the tool parses the JSON before re-serializing it, so the input must be valid. If you have a syntax error, the error message will tell you what's wrong. Fix the issue first, then minify.
How do I reverse minification?
Paste the minified output into the JSON Beautifier to add indentation and line breaks back.
This website may contain affiliate links. If you click on an affiliate link and make a purchase, we may receive a small commission at no additional cost to you.