JSON Minifier

Remove insignificant whitespace from JSON to shrink HTTP bodies, log batches, and cached files. The minified output is semantically identical — only spacing is stripped.

Result

Result appears here.

How to minify JSON

  1. Paste formatted or messy JSON into the input.
  2. Click Minify.
  3. Copy or download the compact JSON string.
  4. If the input is invalid, fix it in the JSON Validator or Formatter first.

FAQ

Formatting adds readable indentation and line breaks. Minifying removes all unnecessary whitespace to produce the smallest valid JSON string.
Yes. Parsers treat minified and pretty-printed JSON identically. Only bytes on the wire change.
No. Standard JSON does not support comments. Strip comments before minifying, or use a format like JSONC with a dedicated parser.
Whitespace savings help with large payloads and logging costs. For small API bodies the difference is negligible — minify when size or readability in transit matters.
Inputs up to 5 MB are supported, the same limit as the formatter and validator.

Related tools