Make JSON smaller without changing the data
Minifying removes every unnecessary space, tab and line break, producing compact single-line JSON with exactly the same data. The status bar shows the new size and the percentage saved, so you can see the difference immediately.
How to use it
- Paste formatted JSON into the Input panel or open a file.
- The minified result appears in the Output panel, with the size saved in the status bar.
- Copy it or Download it as a
.jsonfile.
When to minify JSON
- API payloads: fewer bytes over the network means faster responses.
- Embedded data: inline JSON in HTML, JavaScript bundles or environment variables.
- Storage: smaller documents in databases, caches and logs.
- Keep the formatted version for reading and debugging. Press Format to switch back at any time.
More JSON tools
All tools are free and run privately in your browser.
JSON Minifier FAQ
Does minifying change my data?
No. Only insignificant whitespace is removed. Keys, values and their order are exactly the same, and the input is validated first.
How much smaller will my JSON be?
Typically 10–30% for pretty-printed JSON, more for deeply indented documents. The status bar shows the exact saving.
Can I minify and sort keys at the same time?
Yes. Turn on Sort keys in the toolbar to order object keys alphabetically before minifying.
Is my data uploaded to a server?
No. The JSON Minifier runs entirely in your browser using JavaScript. Your data is never uploaded, logged or stored, and the tool keeps working offline after your first visit.