JSON

JSON Minifier

Removes all insignificant whitespace from JSON and reports the byte reduction.

Loading the tool…

Processing happens locally in your browser. What you paste or load is processed by this page and is not uploaded to a server. Nothing is stored unless you use a control that says it stores something, and you can clear anything this site has kept from the privacy page.

How to use this tool

  1. Paste formatted JSON into the input box.
  2. Select Minify.
  3. Check the reported original and minified byte counts, then copy or download the result.

What json minifier does

Minifying JSON removes the indentation and line breaks that exist only for human readers. The result parses to exactly the same value, so it is safe to minify anything that a machine will read: request bodies, configuration shipped to a client, values stored in a database column, or fixtures embedded in source code.

The saving is usually between fifteen and forty per cent of the original size, depending on how deeply nested the document is. Over the wire that gap narrows considerably once gzip or Brotli compression is applied, so minify for storage and for readability of diffs rather than expecting a large transfer win.

Frequently asked questions

Typically fifteen to forty per cent, depending on how deeply the document nests and how much indentation it carried. The tool reports the exact before and after byte counts so you can see the real figure for your file.

The transfer saving is small once gzip or Brotli compression is applied, because compression already handles repeated whitespace well. Minify for storage size, for embedding in source, and for fixtures — not primarily for bandwidth.

Yes. Minifying is lossless as far as the data is concerned, so the Format action restores readable indentation. The original indentation width is not recoverable, because it was never part of the data.