JSON Validator
Check whether a JSON document is valid. Errors are reported with line and column, plus a plain-English explanation of the likely cause.
Runs in your browser — files never leave your device
Free · No sign-upOutputs Validation reportHow to use JSON Validator
Paste the JSON to check.
Click Validate.
If invalid, jump to the reported line and column and fix the highlighted cause.
Re-validate until the green summary appears.
About this tool
"Unexpected token" errors in production often trace back to hand-edited JSON. This validator uses the strict native parser and translates its errors into actionable messages — pointing at the line and column and naming the usual suspects: trailing commas, single quotes instead of double, unquoted keys, comments (JSON has none), and unescaped control characters in strings. Valid documents get a summary of their structure (type, key count, nesting depth).
This is often the fastest way to track down why a config file or API payload is silently failing to parse somewhere in a larger system — pinpointing the exact line and likely cause instead of scanning the whole document by eye.
Common ways people use this
- Tracking down why a hand-edited config file is failing to load in an application
- Verifying a JSON payload is well-formed before sending it to an API
- Checking JSON pasted from a support ticket or bug report before investigating further
Tips for better results
- If you're not sure why JSON copied from another source is failing, check first for smart/curly quotes (“ ”) accidentally introduced by a word processor — they look like regular quotes but aren't valid in JSON.
- Use the structure summary shown for valid documents as a quick sanity check that the data has the shape you expect (e.g. an array with the right number of items).
Frequently asked questions
Why is JSON with comments invalid?
Are single quotes really not allowed?
The validator says valid but my API rejects the JSON — why?
What does the structure summary tell me?
Can I validate JSON copied from a Python or JavaScript file?
Related tools
Other tools people commonly use alongside this one.
JSON Formatter
Paste minified or messy JSON and get a cleanly indented, readable version. Invalid JSON produces an error with the line and position of the problem.
JSON Minifier
Strip every unnecessary space and line break from JSON to get the smallest valid representation — with the size saving shown.
CSV to JSON
Turn CSV data — pasted or from a file — into a JSON array of objects, using the header row as keys. Quoted fields and embedded commas are handled correctly.