JSON Validator

How it works
Indent
Valid JSON

Input JSON

No problems found. This is valid JSON.

About JSON Validator

A single stray comma can break an entire JSON file, and browser error messages rarely say where. This validator reads your JSON and explains what went wrong in plain words, with the exact line and column.

It catches the usual mistakes: trailing commas, single-quoted strings or keys, comments, unclosed brackets and braces, invalid numbers and strings that span lines. Duplicate keys are flagged as warnings, because most parsers silently keep only the last one.

How to use it

  1. Paste your JSON into the Input panel.
  2. Look at the status badge: it shows Valid JSON, or the number of errors and warnings.
  3. Click a problem in the Problems panel to jump to that line and column in the input. Problem lines are also highlighted.
  4. Fix the issue. The check runs again automatically as you type.

Frequently asked questions

Why are trailing commas and comments errors?

The JSON standard does not allow them, even though JavaScript does. Many tools that read JSON will reject the whole file because of one.

What does the duplicate key warning mean?

The same property name appears twice in one object. The JSON is still parseable, but most programs keep only the last value, so data can quietly go missing.

Does the validator check a JSON schema?

No. It checks that the text is well-formed JSON, not that it matches a particular schema.

Related tools