JSON Validator

Check whether a JSON document is valid, with the exact line and column of any error.

Processed on your device. Files are not uploaded

How to validate JSON

  1. Paste your JSON

    Paste or type your JSON into the box.

  2. Check it

    It tells you whether the JSON is valid.

  3. Fix errors

    If it is not valid, the line and column of the error are shown.

Worked example

This is what JSON Validator gives for its own sample values. Open the tool above and change anything to try your own.

JSON with a mistake (trailing comma)

{
  "name": "Ada",
  "skills": ["math", "code",],
  "active": true
}

Result

Result
Invalid JSON
Problem
Unexpected "]". A trailing comma, a missing quote or a stray symbol is the usual cause.

When to use JSON Validator

An API rejects your request, and you want to find the syntax error in the body.

You want to check a file of configuration before deploying it.

Tips for a better JSON Validator result

Paste the JSON and read the verdict, with the line and column of the error when it is invalid.

Look for trailing commas, single quotes and missing quotes around keys, which are the usual causes.

JSON Validator: limits and what to check

It checks syntax and not the meaning of the data. Use the schema validator for structure rules.

To tidy the JSON as well, use the JSON formatter.

About JSON Validator

Check whether a JSON document is valid and find exactly where a mistake is. To tidy it as well, use JSON Formatter & Validator.

FAQs

Does it show where the error is?

Yes. It gives the line and column.

Can it also format?

Use JSON Formatter & Validator.

Related tools