Input
Paste {"b":2,"a":1} into the input.
Pretty-print or minify JSON and find the exact location of syntax errors.
Paste the JSON into the input box.
Pick indentation, key sorting, or minify. The result updates instantly.
Errors show the line and column. Copy or save the formatted result.
Paste {"b":2,"a":1} into the input.
Turn on key sorting and format with indentation.
The result puts a before b with no syntax error.
It points to where parsing first failed. Check the comma, quote, or bracket just before it.
Integers longer than about 16 digits cannot be represented exactly. If warned, keep the original values.
Only standard JSON. Comments, single quotes, and trailing commas are reported as errors.
Nothing is sent; processing happens in your browser. Still, remove secrets before sharing.
Your input is processed only in your browser and is not stored or sent.