JSON

JSON Minifier

Remove JSON whitespace for smaller, compact payloads.

Input JSON
Minified JSON

What is JSON Minifier?

Minify valid JSON into a compact single-line payload. This is useful when reducing the size of JSON embedded in fixtures, test data, or network requests. Minification runs completely in your browser.

How to use JSON Minifier

  1. Paste JSON or load the example.
  2. Select Minify JSON to remove formatting whitespace.
  3. Copy or download the compact result.

Example

{ "active": true, "count": 2 } → {"active":true,"count":2}

Limitations and details

Whitespace inside strings remains intact. Parsing and serializing can normalize number notation, round large numbers, and collapse duplicate keys. This is not compression such as gzip.

Frequently asked questions

Will minifying JSON change its data?

No. It removes insignificant whitespace only. Strings, numbers, arrays, objects, and values stay the same.

Can I minify invalid JSON?

No. JSON must be valid before it can be minified, so this tool shows the parser error instead.