Minify JSON
Remove all unnecessary whitespace from your JSON.
About the JSON Minifier
The JSON Minifier removes all unnecessary whitespace from JSON, producing the smallest possible payload. It is useful because smaller payloads transfer faster over the network and take less storage — useful before embedding JSON in code or configs.
Like every Pockly tool, it runs entirely in your browser: the JSON you paste is processed on your device and never uploaded to a server.
How to use it
- Paste your JSON into the input panel.
- The result appears automatically in the output panel.
- Fix any reported errors and re-run if needed.
- Copy the result with one click.
Frequently asked questions
Is my JSON uploaded anywhere?
No. Processing happens locally in your browser; your data never leaves your device.
Is there a size limit?
No fixed limit. Documents of several megabytes are processed in seconds.
What if my input is not valid JSON?
The tool shows a clear error message with the location of the problem instead of failing silently.
Are the other JSON utilities related?
Yes — format, minify, sort, validate, flatten, diff, and query all work together; you can chain them by copying output from one into another.