Processed locally — your file never leaves your device
JSON Minifier
Remove whitespace from JSON to produce a compact, minified version — entirely in your browser.
How it works
- Paste JSON, or open a .json file.
- Click Minify — invalid JSON shows a clear error instead of a result.
- Copy the result or download it, all without anything leaving your browser.
Frequently asked questions
- Is my JSON uploaded anywhere?
- No. Minifying happens locally in your browser.
- Does minifying change the data?
- No — only whitespace between tokens is removed. Keys, values, and their order are all preserved exactly.
- What if my JSON is invalid?
- You'll see a clear error describing the problem instead of a minified result.
- Can I open a file instead of pasting?
- Yes, there's an Open file button, or you can paste text directly.
- How much smaller will my file be?
- It depends on how it was formatted originally — heavily indented JSON with long property names benefits the most from minifying.