Developer utility
JSON Minifier
Remove unnecessary whitespace from JSON to shrink payloads for APIs, storage and transfer. Minification is done locally in your browser.
Input
Your JSON is processed locally in your browser. We don't upload your JSON to any server.
When should you minify JSON?
Minifying strips spaces, newlines and indentation to produce the smallest valid JSON. That is useful when JSON is sent over a network (for example an API response or a configuration payload) where every byte counts. Keep a formatted copy for development and ship the minified copy to production.
Minify vs format
- Format / beautify — adds whitespace for humans to read.
- Minify — removes whitespace for machines to transfer.
The minifier still validates your JSON first. If the input is not valid, you will see the error instead of broken output.
Advertisement