JSON Minifier

Strip the whitespace and line breaks from JSON to get the smallest valid output. Strings and numbers stay exactly as written, and the JSON never leaves your browser.

Add to Chrome Free: formats JSON pages right in the tab.

How to minify JSON

  1. Paste JSON into the editor above, drop a .json file onto it, or load it from a URL.
  2. Open the Transform menu and choose Minify.
  3. Copy the result, save it as a .json file, or share it as a link. Format makes it readable again.

What minifying keeps

More JSON tools

Frequently asked questions

Does minifying change my data?

No. Only whitespace outside strings is removed. Keys, values and their order are unchanged, and numbers keep the exact digits you pasted.

How do I make minified JSON readable again?

Press Format: it indents the JSON with two spaces. JSON you paste is formatted automatically.

Is there a size limit?

Files up to about 10 MB work smoothly. Minifying runs in a background worker, so the page does not freeze.