About the JSON Minifier
Minifying removes every space, tab and line break that is not part of a string, leaving the smallest valid JSON. Use it to shrink API payloads, embed JSON in code or compare file sizes. Your data is validated first, so you never ship broken JSON by accident.
How to use it
- Paste your formatted JSON or drop a file.
- Press Process to produce a single-line result.
- Check the character count in the stats bar, then copy or download.
Common use cases
- Smaller payloads: reduce the size of data sent over the network.
- Embedding: put JSON in a script, URL parameter or environment variable on one line.
- Storage: keep large JSON logs compact.
Example
Before: { "a": 1, "b": [ 1, 2 ] }
After:
{"a":1,"b":[1,2]}Spaces inside strings are kept, so "New York" stays unchanged.
Frequently asked questions
Does minifying change my data?
No. Only insignificant whitespace is removed. Keys, values, order and strings stay exactly the same.
How much smaller will it get?
Typically 10-40% for pretty-printed JSON, depending on how deeply it is indented.
Can I reverse it?
Yes. Paste the minified text into the JSON Formatter to restore readable indentation.