JSON Minifier
Remove all insignificant whitespace from JSON to make it as small as possible for APIs, config values or storage. The data itself is untouched.
Minified JSON
Original size
—
Minified size
—
Saved
—
How to minify JSON
- Paste formatted JSON into the input.
- The minified output appears instantly, with the size before and after.
- If the JSON is invalid, fix the error shown and the output updates.
- Copy the minified JSON or download it.
Frequently asked questions
Is minification lossless?
Yes. Only whitespace between tokens is removed. Strings, including any spaces inside them, numbers and key order are preserved exactly.
How are sizes measured?
As UTF-8 bytes, which is how the JSON is sent over the network or stored on disk.
Related tools
- JSON FormatterPretty-print or minify JSON with clear error locations.
- JSON ValidatorCheck JSON syntax and see exactly where it breaks.
- CSS FormatterBeautify or minify CSS stylesheets.
More in Code & Data.