How to use the JSON Minifier
- Paste formatted JSON.
- Press Minify.
- Copy the single-line result or download it.
Features
- Shows original size, minified size and percentage saved
- Whitespace inside strings is preserved
- Optional key sorting for stable, diff-friendly output
Supported input
Valid JSON.
Limitations
- Minifying does not shorten keys or values, it only removes formatting. For network transfer, gzip or Brotli compression usually saves far more.
Privacy
Everything this tool does happens in your browser. What you paste or open is never uploaded, stored, logged or used for advertising. Closing the tab discards it. Read the privacy policy.
Frequently asked questions
01Is minified JSON still valid JSON?
Yes. Whitespace between tokens is optional in JSON, so any parser reads minified JSON exactly as it reads the formatted version.
02Should I minify JSON for my API?
If your server already compresses responses with gzip or Brotli, minifying adds only a small further gain. It helps most for JSON embedded in HTML, URLs or databases.
03Is my data uploaded anywhere?
No. This tool runs entirely in your browser tab. Your input is never sent to our servers, stored, or logged. You can disconnect from the internet after the page loads and it keeps working.