JSON minifier
Validate JSON and remove formatting whitespace.
Your files are processed here, on your device
We do not send your file or text contents to a processing server. No account is needed and there is no daily operation quota. Individual tools have size limits to protect your device’s memory.
A connection is needed to load the site and its resources. Hosting may receive technical visit data. Favorites store only tool identifiers in this browser.
How we handle your data →How to use this tool
- Paste a valid JSON document.
- Minify to remove formatting whitespace outside strings.
- Review large numbers and duplicate keys before using it in another system.
An example you can verify
Remove JSON formatting while preserving whitespace inside strings.
Example input
{ "text": "a b", "n": 1 }Expected result
{"text":"a b","n":1}Minification is neither encryption nor ZIP compression. JSON is validated before output is produced.
Settings and limits
Paste valid JSON. The result is serialized without indentation or line breaks; spaces inside strings are preserved.
Frequently asked questions
Is this file compression?
No. It removes unnecessary formatting. The browser parser retains the last duplicate key and uses JavaScript number precision.