JSON Minifier

Remove every space, tab and line break that JSON does not need, which is useful for config embedded in code, smaller payloads and storage. The minifier shows how many bytes you saved.

Input

The result will appear here.

Ready In: 0 B Processed locally

How to use the JSON Minifier

  1. Paste formatted JSON.
  2. Press Minify.
  3. 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.