JSON Minifier — Compact JSON by Removing Whitespace

Minify valid JSON and compare input and output byte sizes. Copy or download compact JSON with no file upload.

JSON MinifierLocal processing · No upload · 20 MiB per input

How to use JSON Minifier

Paste formatted JSON or open a JSON file, then choose Minify JSON. The result removes indentation and optional whitespace. Copy it or download compact JSON.

JSON Minifier rules and limits

Whitespace within string values is preserved. This is text minification, not gzip compression. Large numbers retain their numeric spelling; integer-like object keys may be reordered. Duplicate keys and invalid JSON are rejected.

Each input is limited to 20 MiB of UTF-8 text and 128 nesting levels. Processing runs in your browser with a 30-second timeout and no cloud fallback. A recent browser with Web Workers is required. Files and pasted text are never uploaded or saved to browser storage.

Example

{ "name": "Ada Lovelace" } → {"name":"Ada Lovelace"}

JSON Minifier FAQ

Will spaces inside strings be removed?

No. Spaces and other characters inside JSON string values remain part of the value.

Is minification the same as gzip?

No. Minification removes optional JSON whitespace and still produces a readable JSON text file. It does not create a compressed archive.

How can I make compact JSON readable again?

Open JSON Formatter from the related tools and choose your preferred indentation.