Why is my JSON invalid?
The most common causes are trailing commas, single quotes instead of double quotes, unquoted keys, or comments — none of which are valid JSON. The tool shows the parser’s error message to help you locate the exact spot.
Pretty-print, minify, and validate JSON.
Paste JSON above to format it with consistent indentation, minify it to a single line, or validate it. If the JSON is invalid, you get the parser’s error message so you can find the misplaced comma or quote quickly.
Formatting uses the browser’s own JSON parser, so what you see matches how your code will read the data. Nothing is uploaded — it all runs locally.
The most common causes are trailing commas, single quotes instead of double quotes, unquoted keys, or comments — none of which are valid JSON. The tool shows the parser’s error message to help you locate the exact spot.
No. Pretty-printing and minifying only change whitespace, not values or key order beyond what the parser preserves. The parsed data is identical either way.