JSONDev.in

JSON Minifier & Compressor

Remove all whitespace from JSON and reduce file size. Perfect for production API responses and configuration files.

About this tool

This JSON minifier and compressor removes whitespace, line breaks and indentation to shrink file size without changing the data. Useful for reducing bandwidth on APIs, embeds, and storage.

Example use case: Minify a large formatted JSON file before embedding it in a client bundle or API response.

Frequently Asked Questions

What does JSON minification do?▾
It removes all unnecessary whitespace, line breaks, and indentation from JSON, reducing file size without changing the data structure.
How much can minification reduce file size?▾
Minification typically reduces JSON size by 20-40% depending on how much whitespace and indentation the original has.
Is minifying the same as compressing JSON?▾
Not quite. Minifying removes whitespace but keeps the JSON readable by any parser. Compression like gzip or Brotli encodes the bytes and must be decompressed first. For APIs, minify the JSON and let your server gzip it for the smallest transfer size.
Does minifying JSON change the data?▾
No. Only whitespace outside of strings is removed. Keys, values, and their order stay exactly the same, and any parser will read the minified output identically.
How do I minify JSON in code?▾
In JavaScript, JSON.stringify(JSON.parse(text)) returns minified JSON. In Python, json.dumps(data, separators=(",", ":")) does the same. Use this tool for one-off files or to check the size savings.
Is my JSON uploaded anywhere?▾
No. Minification runs entirely in your browser, so your data never leaves your device.