JSON Formatter & Validator
Validate JSON, see the exact line of any error, and pretty-print or compact it.
✓ Valid JSON
How it works
The JSON is parsed with JSON.parse, never executed as code. Errors show the line and column where parsing stopped.
Frequently asked questions
Why is my JSON invalid?
Common causes: a trailing comma, single quotes instead of double quotes, or comments. JSON allows none of these.