TOOLTIKI Lovable tool, really free
Developer Formatting

JSON minifier

What to do
Indent

Processed in your browser · nothing is uploaded

Local · whitespace inside strings is kept
Advertisement
320 × 100

Removes every space and line break outside strings. On a formatted document that is typically a 15 to 30 percent reduction before any compression.

How to use the json minifier

1 Paste your input. The result appears immediately.
2 Pick the operation you want.
3 Copy the result, or save it as a file.

Whether that saving is worth anything depends on whether the response is gzipped, and it usually is. Gzip compresses repeated whitespace extremely well, so minified and formatted JSON often land within a few percent of each other over the wire. Where minifying genuinely helps is anywhere compression is not applied: data in a database column, embedded in a page as a string, put in a cookie or a header, or written to a file that is read back directly. For an ordinary HTTP API, turning compression on is worth far more.

Questions

15 to 30 percent typically. Over a gzipped connection the real-world saving is much smaller.

ECMA-404 — the JSON data interchange syntaxMDN — JSON.parse()
Advertisement
300 × 250
Was this tool any good?
INTERNAL SIGNAL ONLY · WE USE IT TO FIND TOOLS WORTH REBUILDING