• Free forever
  • No sign-up
  • Private — runs in your browser

JSON Minifier

Paste JSON and press Minify to strip every unnecessary space and line break.

Output

  

What minifying does

Minifying removes the whitespace that makes JSON readable — indentation, line breaks and spaces after colons and commas — without changing a single value. Pretty-printed JSON is often 20–40% larger than the minified version, depending on how deeply it's nested.

When to minify

  • API payloads and config shipped to browsers, where every byte is downloaded.
  • Storing JSON in a database column, cookie or URL, where space is limited.
  • Embedding JSON in HTML (for example JSON-LD structured data).

If your server uses gzip or Brotli compression, the gain is smaller — compression already removes most of the cost of repeated whitespace — but minified JSON is still slightly smaller and faster to parse.

Going back

Minifying is fully reversible: paste minified JSON and press Format to make it readable again.

Related

← Back to the full JSON Formatter & Validator