Make JSON as small as possible without changing the data.
Loading tool…
Minifying removes every space, tab and line break that JSON doesn't need, giving the smallest valid version of your data. You see the original and minified size and the percentage saved. The data itself is untouched: the minified JSON parses to exactly the same values.
Shrink fixtures, config or data sent over the network.
Store JSON in a database field or local storage using less space.
Put JSON on a single line inside HTML, env variables or scripts.
No. Only whitespace outside strings is removed. Spaces inside string values are kept, and the result parses to the same data.
It depends on how much indentation it had. Pretty-printed JSON often shrinks by 20 to 40 percent; JSON that is already compact barely changes.
Yes. Use the JSON Formatter to indent it again; the content is identical.
You'll see the error instead of a result, because only valid JSON can be minified safely. The JSON Validator shows exactly where the problem is.
No. Everything runs in your browser; nothing you paste or upload is sent to our servers.