JSON Formatter format · validate · minify
Paste JSON and get it indented, validated or minified — with the exact line and column when it is broken. Everything runs in this tab.
Input
Output
Invalid JSON
Questions we get a lot
Will it sort keys?
Yes, as an option — sorting is off by default because key order can be meaningful in some APIs.
Does it preserve number precision?
It uses the browser number type, so integers beyond 2^53 lose precision. Large IDs should be kept as strings.
What happens on invalid input?
The parse error is translated into a line and column, and the cursor is placed on the offending character. Nothing is auto-corrected — guessing what you meant is how data gets corrupted.