A small object with spaces
- JSON to minify
- { "a": 1, "b": [1, 2] }
Result Minified JSON: {"a":1,"b":[1,2]}
Original size (bytes): 23
Minified size (bytes): 17
Bytes removed: 6
Size reduction: 26.1%
- Parsed 23 bytes of input as JSON (RFC 8259).
- Re-serialised without spaces, tabs or line breaks outside strings: 17 bytes.
- Saved 6 bytes = 6 ÷ 23 × 100 = 26.1%.
Six spaces after colons and commas go, taking 23 bytes down to 17, a 26.1% cut.