JSON Minifier
Strip insignificant whitespace and report the byte savings.
Loading tool…
About this tool
Strips every byte that does not affect meaning. JSON is the one format where minification carries no risk at all: whitespace between tokens is meaningless, so the output parses to exactly the same value as the input.
Limitations
- Minifying JSON only removes whitespace. It is not compression — gzip will do far more.
Questions
- Is this worth doing if I already use gzip?
- Marginally. Compression handles repeated whitespace very well, so the saving after gzip or Brotli is usually a few per cent rather than the number the byte counter suggests. Measure the compressed size.
Privacy
This page does its work in your browser. What you paste is processed by JavaScript running on your own device and is never sent to a DevToolery server — there is no server that could receive it. The page itself is a static file delivered by a CDN. See exactly what is stored.