Skip to main content
Workbench

JSON Minifier

Compress JSON by stripping all insignificant whitespace, producing the smallest valid representation for storage or transport. The document is parsed and validated first so you never ship broken JSON.

Inputjson
Loading editor…
JSON○ Not checked0 lines0 chars0 B

How to use the json minifier

  1. Paste or upload the JSON you want to compress.
  2. Press Minify. The document is validated first, then all insignificant whitespace is removed.
  3. Copy or download the single-line result.
  4. Because the input is parsed first, you never ship broken minified JSON.

Example: Shrinking JSON for transport

Input
{
  "a": 1,
  "b": [1, 2, 3]
}
Output
{"a":1,"b":[1,2,3]}

Frequently asked questions

Does minifying change the meaning of my JSON?
No. Only insignificant whitespace is removed. The data is identical; it is just more compact.
Is the minified output validated?
Yes. The tool parses your JSON before minifying, so invalid input is reported rather than producing a broken result.