JSON Validator

Paste JSON to find out whether it is valid. The check runs in your browser as you type, points to the line and column of the first problem, and never uploads your data.

Add to Chrome Free: formats JSON pages right in the tab.

How to validate JSON

  1. Paste JSON into the editor above, drop a .json file onto it, or load it from a URL.
  2. Look at the status bar: Valid JSON, or Invalid with the error shown under the editor.
  3. Fix the text at the reported line and column. The check runs again on every change, and Format pretty-prints the JSON once it is valid.

What the validator reports

More JSON tools

Frequently asked questions

Is my JSON sent to a server?

No. Validation runs entirely in your browser, and there is no backend to send data to. See the privacy policy for details.

Does it accept comments or trailing commas?

No. Standard JSON (RFC 8259) allows neither, so both are reported as errors with their position. Remove them to make the document valid.

Why is NDJSON reported as invalid?

A JSON document holds exactly one top-level value, and NDJSON has one per line. The validator counts them and offers Wrap in array, which keeps every value.