What does minifying JSON do?
Minifying JSON means removing all the whitespace that only helps people read it: spaces, tabs and line breaks. The data stays the same. Only the size shrinks.
The tool re-prints your JSON with no whitespace outside strings and reports the size before and after. The sample object, indented over many lines, goes from 171 bytes to 99 bytes, which is 42.1 percent smaller. Values, numbers and key order are untouched.
How to use the JSON Minifier
- Paste your JSON on the left.
- Read the minified result on the right.
- Check the note for bytes before and after.
- Copy or download the result.