{}JSON FYI
JSON Minifier

Minify JSON for the smallest payload

Strip every byte of unnecessary whitespace. Useful for API responses, configs, and anywhere bandwidth matters.

Ready when you are.

Paste JSON on the left, or click Sample to try a quick example. Validation runs as you type — entirely in your browser.

EmptyType: Nodes: 0Depth: 0Size: 0 B

When to minify

Minify before shipping JSON over the wire — REST responses, GraphQL payloads, config files embedded in build outputs, or any place where size adds up at scale. Combined with gzip or brotli compression, minified JSON is dramatically smaller than pretty-printed input.

For human review and version control, prefer the formatter instead.

Examples

Small object
Input
{
  "ok": true,
  "count": 3
}
Output
{"ok":true,"count":3}

30 bytes → 21 bytes (30% smaller).

Nested array
Input
{
  "items": [
    { "id": 1 },
    { "id": 2 }
  ]
}
Output
{"items":[{"id":1},{"id":2}]}

55 bytes → 29 bytes (47% smaller).

JWT payload
Input
{
  "sub": "user_123",
  "iat": 1700000000,
  "exp": 1700003600
}
Output
{"sub":"user_123","iat":1700000000,"exp":1700003600}

JWT payloads are always minified before base64 encoding.

Use cases

Frequently asked questions

What is JSON minification?+

Removing all non-significant whitespace (spaces, tabs, newlines) from a JSON document so the payload is as small as possible.

Will minification change my data?+

No. JSON whitespace is purely formatting — the parsed value is identical before and after.

Why minify JSON?+

Smaller payloads transfer faster and cost less bandwidth. Minified JSON is the standard for API responses, embedded configs, and JSON Web Tokens.

Can I un-minify minified JSON?+

Yes — paste it into the formatter to pretty-print it again. The structure is fully preserved.

Related tools & guides