Free JSON Minifier
Minify JSON by removing all spaces and line breaks, for APIs, configs and smaller files. Shows how many bytes you save.
Runs on your device
What to do next
How to use JSON Minifier
- 1
Paste your JSON.
- 2
Minify is already selected.
- 3
Copy or download the minified JSON.
JSON Minifier removes every space and line break that isn’t needed, making JSON as small as possible for APIs, configuration values, storage and network transfer. The data itself doesn’t change.
The panel shows the size before and after so you can see the saving.
How much it saves
Indented JSON often shrinks by 20–40% when minified, more when it’s deeply nested. For files served over the web, compression on the server saves even more on top.
When not to minify
Keep configuration files in version control readable; minify only the copies that are sent or stored.
- Shrink JSON for faster API responses or storage.
- Fit JSON on one line for environment variables.
- The file is opened and processed by your browser on your own device. It is never uploaded, so no server, including ours, ever receives a copy.
- Minifying runs in your browser.
- Is minified JSON different?
- No: only spaces and line breaks are removed; the data is identical.
Questions
Does minifying change the data?
No. Only spaces and line breaks between values are removed.
Is my data uploaded?
No. Everything is converted in your browser, so private config files and data stay on your device.
Something not working, or a question that isn’t here? Tell us about it
Related tools
More file tools
See all 28- Share FilesNewSend files by link, no upload
- Unzip FilesNewOpen ZIP files and save what’s inside
- Compare TextNewFind the differences between two texts
- QR Code GeneratorNewLinks, Wi-Fi, contacts and more
- Wi-Fi QR CodeNewA sign guests scan to connect
- JSON to YAMLNewConvert JSON data to YAML
- YAML to JSONNewConvert YAML data to JSON
- JSON to XMLConvert JSON data to XML