JSON Minifier
Minify JSON by removing spaces and line breaks, without changing any value.
Input
Paste JSON above, or upload a .json file.
Output
How to use JSON Minifier
- Paste your JSON or upload a .json file.
- Click Minify JSON.
- Copy the result or download it as a .json file.
Frequently asked questions
Does minifying change my data?
No. Only spaces, tabs and line breaks outside of text values are removed. Numbers are kept exactly as written, including very large IDs.
What if my JSON is invalid?
The tool checks the JSON first and shows the error instead of producing a broken result.
How much smaller will it be?
It depends on how much indentation the original had. Pretty-printed JSON often shrinks by 20–40%. The exact saving is shown after you minify.
Is my text uploaded to a server?
No. This tool runs entirely in your browser, so what you paste never leaves your device.