How to Minify JSON Online
Strip whitespace from JSON and see exactly how much smaller it got — a genuine, measured size reduction, not an estimate.
By QR Ivify Team
Nicely indented JSON is easy to read but wastes space — every level of nesting adds more whitespace than actual data, once a document gets large. Minifying strips that whitespace out, shrinking the file without changing anything it represents.
What Actually Gets Removed
Minifying JSON removes every character that exists purely for human readability: line breaks, indentation spaces or tabs, and the spaces after colons and commas. None of that whitespace is meaningful to a JSON parser — {"a": 1} and {"a":1} parse to the exact same data. What's left after minifying is the smallest valid representation of the same information.
Step by Step
- Open the JSON Minifier.
- Paste your JSON into the box.
- Click "Minify."
- See the original character count, the minified character count, and the percentage reduction.
- Copy or download the result.
How Much Smaller Does JSON Actually Get?
It depends entirely on how deeply nested and how heavily indented the original was — a flat, single-level object won't shrink much, since it had little whitespace to begin with. A deeply nested structure with 2- or 4-space indentation at every level can easily shrink by 30–50%, since most of its size was formatting rather than data. QR Ivify's minifier shows the real, measured percentage for your specific input rather than a generic estimate, since the actual number varies a lot by document shape.
When Minifying Actually Matters
- A URL parameter or config value with a hard character limit.
- A payload going over the wire where every byte matters for load time (though gzip/compression on the transport layer often makes manual minification less critical than it used to be).
- Storage-constrained fields — a database column, a size-limited cache value.
For JSON that's just sitting in a file for humans to read later, minifying trades away readability for a size reduction that usually isn't worth it — formatted is almost always the better choice for anything you'll open again yourself.
Frequently Asked Questions
How is the percentage reduction calculated? It compares the original character count to the minified character count — a genuine, measured reduction, not an estimate.
What happens with invalid JSON? You'll see a clear error message instead of an incorrect or empty result.
Does minifying change the data itself? No — only whitespace is removed. Every key, value, and structure stays exactly the same.
Does this upload my JSON anywhere? No. Minifying happens entirely in your browser.
Try It
Need to shrink JSON and see exactly how much you saved? QR Ivify's free JSON Minifier shows the real reduction percentage. Need to go the other way and make JSON readable? Try the JSON Formatter.
Related articles
How to Decode Base64 Back to Text
Decode Base64 to text online for free, with correct Unicode handling and a clear error for invalid input instead of garbled output.
How to Base64 Encode Text (Without Breaking Unicode)
Encode text to Base64 online for free, with correct handling of Vietnamese, emoji, and other Unicode text — a common failure point in naive implementations.
How to Compare Two JSON Objects (Structurally, Not as Text)
Compare two JSON values online for free and see exactly what changed — key order and formatting differences are correctly ignored, unlike a plain text diff.