JSON Minifier
Strip every unnecessary byte from JSON — whitespace and indentation only, structure untouched — with a before/after size comparison.
How to use
- Paste the formatted JSON.
- The minified output appears live with the size comparison.
- Copy the result for API payloads or config files.
Example
Input: { "a": 1, "b": 2 }
Output: {"a":1,"b":2} · bytes saved shown live
How it works
The input is parsed as JSON and re-printed with all unnecessary whitespace removed, producing the smallest valid representation of the same data.
Limits & compatibility
- Whitespace-only — no key shortening, value mangling or schema changes.
- Input must be valid JSON; the error is reported if it is not.
- Numbers keep full precision (no float re-rounding).
Privacy
Your JSON never leaves the browser. There is no server call, no storage and no logging of content.
Related tools
Questions about JSON Minifier
Is my input private?
Yes. This tool runs entirely in your browser — your input never leaves your device, is never uploaded to a server and is never stored.
How accurate is the result, and what are the limits?
The tool page states its formula and limits openly. Check them before relying on a result, and verify anything consequential — financial, legal, medical or safety-critical — against an authoritative source.
What happens to files I open with this tool?
Files are processed locally in your browser and never uploaded; closing the tab discards them. Text tools never store what you paste — it lives only in the page while you use it.