Developer Tools Runs in your browser Free · no account

JSON Minifier

The JSON minifier removes every unnecessary space and line break from a JSON document, producing the smallest valid representation, and reports the byte size before and after so you can see the saving.

Options
JSON 0 characters
Minified JSON

Your result will appear here.

Not sure where to start? Use Load example.

Results update automatically and are calculated on your device. Nothing you type is sent to a server.

Runs in your browser. Processing happens entirely in your browser. Nothing you enter is sent to Delimiter.live.

How to use the JSON Minifier

  1. Paste formatted JSON.
  2. Read the minified output and the size comparison beneath it.
  3. Copy or download the compact version.

Example

Input
{
  "a": 1
}
Output
{"a":1}

Common use cases

  • Shrinking a JSON payload embedded in a page or a data attribute.
  • Reducing the size of a configuration file shipped with an application.
  • Producing a single-line value to paste into an environment variable.

Limitations and things to watch for

  • Minifying JSON only removes insignificant whitespace. It cannot shorten keys or values, so the saving on already-compact data is small.
  • Over the network, gzip or Brotli compression usually saves far more than minification. Minify for embedding and storage, not as a substitute for compression.

Frequently asked questions

Does minifying change my data?
No. Only whitespace outside of string values is removed. The parsed result is identical, which you can confirm by formatting the minified output again.
How much smaller will my file get?
Typically 15 to 30 percent for indented JSON, and almost nothing for data that was already compact. The tool shows the exact before and after sizes.
Should I minify instead of using gzip?
No — use both, or just gzip. HTTP compression usually reduces JSON by 80 percent or more, far beyond what whitespace removal achieves.

Share this tool