JSON Minifier
Strip every byte that is not data, and see precisely what you saved.
About this tool
Minification removes every byte of a JSON document that is not data: indentation, line breaks, and the spaces after colons and commas. The result is the smallest valid JSON with exactly the same content.
The readout under the output states the size change plainly — 4.2 KB → 1.8 KB (57% smaller) — because that number is the entire reason you are here.
If your input has comments (JSONC, like tsconfig.json), the Comments control decides whether to strip them or keep them; minified JSON with kept comments is no longer strictly JSON, so the default is strip.
How to use it
- Paste your JSON. Minification happens live — the tool starts in Minify mode.
- Check the size delta in the readout: input size, output size, percentage saved.
- Copy or download. The download is named
data.min.jsonso it sits next to your original without overwriting it.
Worked example
A pretty-printed response of 4.2 KB minifies to 1.8 KB — 57% smaller — with the readout confirming it. The two documents are the same data.
// pretty
{
"status": "ok",
"items": [
{ "id": 1, "name": "first" },
{ "id": 2, "name": "second" }
]
}
// minified
{"status":"ok","items":[{"id":1,"name":"first"},{"id":2,"name":"second"}]} Before and after
Frequently asked questions
How much smaller does minified JSON get?
Does minification change my data?
Is minified JSON still valid JSON?
Should I minify JSON I serve from my API?
It says my integers are kept exact. What does that mean?
1234567890123456789 keeps every digit. Tools that round-trip through a JavaScript number would silently turn it into 1234567890123456800. Same document, one fewer zero of correctness.