JSON Minifier
Paste formatted JSON to compress it into a single line with no insignificant whitespace. The tool reports how many characters were removed, all in your browser.
Loading…
About the JSON Minifier
This tool strips every byte of insignificant whitespace from JSON - the spaces, tabs, and line breaks added for readability - and collapses the document onto a single line. The data itself is untouched; only formatting characters are removed. Smaller JSON means smaller request and response bodies, faster transfers, and lower storage when you embed config or fixtures in code.
How to use it
- Paste your formatted JSON into the input box.
- The single-line minified version appears instantly.
- Check the character count to see how much was removed.
- Copy the result into your payload, config, or build step.
A typical use case is shrinking a JSON config before committing it or sending it over a slow connection. Keep in mind that minifying alone is not compression like gzip - it removes whitespace but does not re-encode the data, so the savings depend on how much your source was indented. Because it runs in your browser via JSON.parse and JSON.stringify, nothing is uploaded.
Frequently asked questions
How much smaller will my JSON get?
It depends on how heavily your source was indented. Deeply nested, two-space-indented JSON often shrinks noticeably, while already-compact JSON barely changes. The tool shows the exact number of characters removed.
Does minifying break my JSON?
No. The tool parses the input and re-serializes it without whitespace, so the resulting document is still valid JSON with identical keys and values.
Is minified JSON the same as gzipped JSON?
No. Minifying only removes formatting whitespace. Gzip is a separate compression layer your server can still apply on top for further size reduction.
Does it upload my JSON to minify it?
No. The minification runs locally in your browser, so your data never leaves your device.