JSON minifier
Shrink a JSON file or API payload down to the smallest byte count that still parses to the exact same data, by removing every space, tab and line break that JSON itself ignores. Useful before pasting a payload into a request body with a size limit, or committing a config file where every byte of a diff matters.
- Nothing you type leaves this page
- Works offline once loaded
- Free forever, no signup
Preparing JSON Minifier for you…
Loading the tool into your browser. Nothing is uploaded — the work happens on your device.
Valid JSON.
- Keys {{ stats.keys }}
- Depth {{ stats.depth }}
- Minified {{ stats.minified }} chars
- Saved {{ stats.saved }}%
How to use this tool
-
Paste your formatted JSON
Indented, pretty-printed, however you have it.
-
Click Minify
Every space outside of string values disappears in one pass.
-
Check the size saved
The stats row below shows the exact byte count before and after, and the percentage saved.
Questions people ask
Does minifying change the actual data?
No. JSON treats whitespace between tokens as insignificant, so removing it cannot change a single value, key or the structure of the document — JSON.parse() on the minified output returns an object that is deeply identical to the original.
How much smaller does minifying actually make a file?
It depends entirely on how heavily the original was indented — a deeply nested config file with 4-space indentation can shrink 20-30%, while an already-compact API response barely changes. The saved-percentage stat below the output shows the real number for your file.
Should I minify JSON before sending it to an API?
Most APIs accept either form and parse them identically, so it rarely matters for correctness — it mainly helps when you are pasting into a field with a character limit, or want a smaller diff in version control for machine-generated config.
Can I undo minifying and get the indentation back?
Yes — paste the minified output into our JSON formatter and pick an indent width; minifying only removes whitespace, so nothing about the original structure is lost.
Is anything I paste here sent to a server?
No. The whole tool is JavaScript running in your browser, and this site has no endpoint that accepts text. That matters when what you are pasting is a real API payload, a customer record, or a password.
Related tools
- JSON Formatter Format, validate and minify JSON in your browser. Errors are reported with line and column. Noth...
- JSON Validator Validate JSON and get the exact line and column of the first syntax error. Free, in-browser — no...
- Base64 Encode/Decode Encode text or files to Base64 and decode Base64 back to text, entirely in your browser. UTF-8 s...
Bookmark this page — the tool keeps working offline, and your settings stay in this browser. Built by Dynamb Technologies, who make software for a living.