MegaTools.live

JSON minifier

Remove formatting whitespace from valid JSON. Large numeric literals may round to JavaScript precision.

How to use JSON minifier

Compact a JSON document for a single-line field. Spaces inside quoted strings are preserved. Because the tool parses and serializes the value, number spelling and duplicate keys can change.

Worked example

Input
{ "a": 1 }
Output
{"a":1}