Format and validate JSON

Pretty-print JSON with the indent you want, minify it, or find out exactly why it will not parse — with the line and column, not just “unexpected token”. Two things this reports that most formatters cannot: duplicate keys, which parsers silently collapse to the last one, and numbers too large to represent exactly, which silently change value the moment they are parsed. Both are the kind of bug you only find much later.

This tool runs entirely on your device. Nothing you type here is uploaded, logged or stored.

Settings

Indent
0 characters
or paste above
Result

Enter some text above to see the result.