A short companion for JSON Minifier: when it is useful, what it expects, and what to check before using the result.

What it does

Strip the whitespace out of a JSON document while keeping it valid, so it takes fewer bytes over the wire. It parses first and re-serialises, so a malformed document is rejected rather than mangled.

Use the tool

Open JSON Minifier, add the input the tool asks for, run it, and check the output before using it elsewhere.

Input and output

  • Input: text.
  • Output: text.
  • Category: Formats.

Privacy and processing

Processing happens locally in your browser. This tool does not upload the input to ilham.dev.

Questions

How much smaller does it get?

Typically 20–40% for hand-formatted JSON. If the server gzips its responses the gain is mostly redundant, because gzip already removes repeated whitespace.

Related guide

For broader background, see Working With Structured Data.