Join our Loyalty Rewards Program!
🔒 No upload — your JSON stays in this browser

JSON Minifier

Minify JSON without touching the data: whitespace outside strings is removed, numbers keep every digit, and the exact byte saving is shown. Pretty-print and error positions included.

JSON status—
Input size—
Output size—
Difference—
Top-level type—
Object keys—
Max nesting depth—

Only whitespace outside strings is removed. Keys, values, key order, escape sequences and every digit of a number stay exactly as typed — unlike tools that parse and re-serialise JSON, this one cannot round a large integer. Syntax is checked against the JSON specification: no comments, no trailing commas, no single quotes.

How to minify JSON without changing it

This JSON minifier removes whitespace outside strings and nothing else: keys, values, key order, escape sequences and every digit of a number stay exactly as you typed them. Paste JSON into the box and the compact single-line version appears immediately, together with the input size, the output size and the bytes you save. Invalid input is reported with the line and column of the first error, so a missing or trailing comma is easy to find. A pretty-print mode re-indents the same data with two spaces for reading. Everything runs in your browser: nothing is uploaded, there is no signup, and the result can be copied or downloaded as a .json file. The tool checks JSON syntax only — it does not validate your data against a schema and it cannot repair broken JSON.

More free tools

Free online utility tools. No signup. No tracking.

Impressum · Sitemap · Some links contain affiliate advertising