Toolivaro

Free JSON Minifier

Compress JSON to its smallest valid form — strip all whitespace, count the bytes saved, and copy or download.

Processed locally in your browser

Processed locally in your browser — pasted JSON is never uploaded, logged, or stored.

How is the result calculated?

Trimming a pretty-printed config file

A pretty-printed config weighs 412 bytes in 14 lines; its minified form is 301 bytes — 27% smaller. For a config shipped to thousands of devices, that saving multiplies across every install and every fetch. The minified result remains valid JSON and can be formatted again at any time with the JSON formatter.

Example input and output
Input Value
json { "retries": 3, "timeoutMs": 5000, "features": { "cache": true } }
Result 412 B → 301 B (−27%) · valid JSON · identical data

What is the formula and its assumptions?

Minification method

minify(json) = JSON.stringify(parse(json))

Formula terms
Symbol Meaning
parse standard JSON parser
stringify serialization without whitespace

Whitespace outside strings is insignificant in JSON, so removing it never changes the data.

Size savings

savings % = (input bytes − output bytes) / input bytes × 100

Formula terms
Symbol Meaning
input bytes UTF-8 size of the input document
output bytes UTF-8 size of the minified document

What are the most common mistakes?

  • Minifying JSON that is not valid in the first place — the tool validates before compressing and reports the exact problem.
  • Assuming minification shrinks every document; already-compact inputs can grow by a few bytes.
  • Using an online minifier that uploads the document — this tool keeps everything on your device.

What are the assumptions and limitations?

  • Minification removes whitespace only; keys, values, and structure are preserved as-is.
  • Very large documents may take a moment; the tool is designed for typical configs and payloads.
  • Output uses compact serialization; gzip-style compression of the result is a separate step.

Where do the numbers come from?

Last reviewed August 4, 2026 · Version 1.0.0 · Toolivaro does not guarantee external content.

Frequently asked questions

Does minification change my data?

No. The minifier parses and re-serializes the document, which preserves values, key order, and number representation exactly. Whitespace between tokens is insignificant in JSON, so removing it is lossless.

Why is my minified output sometimes larger?

If the input is already compact, re-serialization can add a few bytes (for example re-escaping characters). The savings percentage can be negative on such inputs — the tool reports the true numbers instead of hiding them.

Can minified JSON be formatted back?

Yes — the minified form is valid JSON, so the JSON formatter restores readable indentation at any time. Formatting and minifying are exact inverses for valid documents.

Found a mistake or have a correction? Report it — we review every correction.