JSON Validator

Check whether a block of JSON is valid and, when it is not, find out where the problem lies. JSON's rules are stricter than they look — one trailing comma invalidates an entire file — and a parser's verdict is considerably faster than reading through by eye.

How to validate JSON

  1. Paste your JSON.
  2. Tap Validate, or just keep typing — it checks live.
  3. Read the result: valid, or exactly what's wrong.

When you'd use this

Good to know

Frequently asked questions

Where does the error message come from?

Directly from the browser's own JSON parser, so it matches what would happen in real code.

Can this also format my JSON?

For formatting or minifying, use the JSON Formatter tool instead.

Why is my JSON invalid when it looks fine?

The three usual culprits are a trailing comma after the final item, single quotes instead of double quotes, and unquoted keys. All three are perfectly legal JavaScript, which is why they end up in JSON so often.

Can JSON contain comments?

No. The format has no comment syntax at all. Some tools accept them as an extension, but strict parsers — this one and most APIs included — will reject them.

Does valid JSON mean my data is correct?

No. It means the syntax parses. A file can be flawless JSON and still carry the wrong field names, missing values or content that makes no sense for your purpose.