JSON Minifier
Remove all unnecessary whitespace from JSON to make it as small as possible for storage or network transfer.
What is the JSON Minifier?
Minified JSON is semantically identical to formatted JSON but without spaces, tabs and line breaks.
How does it work?
The JSON is parsed and re-serialised without indentation. Because it is parsed first, invalid JSON is caught rather than silently broken.
Example
A 1,200-character formatted document might shrink to 800 characters — a 33% reduction.
Frequently asked questions
Is my data sent to a server?
No. This tool runs entirely in your browser; nothing you paste is uploaded or stored.
Why is my JSON invalid?
Common causes are trailing commas, single quotes instead of double quotes, unquoted keys, comments, and NaN or undefined values — none of which are allowed in JSON.
Related tools
Enable JavaScript to use this calculator.