Skip to content
Devtoolry

JSON Validator

Validate JSON online and find syntax errors such as trailing commas or single quotes by exact line and column. Valid documents get a structure summary.

Runs in your browser · Nothing uploadedFree · No sign-up

Something not working, or missing a feature? Send feedback

About the JSON Validator

The JSON Validator checks JSON against the standard and points to the exact line and column of the first error. For valid documents it summarises the structure: objects, arrays, keys and depth.

Everything runs in your browser, so your input is never uploaded to a server.

How to use the JSON Validator

  1. Paste JSON or open a file.
  2. Read the result: a green confirmation with statistics, or the error location.
  3. Fix the reported problem and validate again.

Common mistakes

  • Trailing commas. A comma after the last array item or property, as in ["admin", "dev",], is the most common JSON error. The validator points to the character after it.
  • Single quotes. JSON strings and keys need double quotes. {'name': 'Ada'} is valid JavaScript but invalid JSON.
  • Valid JSON, wrong data. Syntax validation does not check that fields exist or have the right type. Compare against a known-good document with JSON Diff, or validate in your code with a schema.

Works well with the JSON Validator

Frequently asked questions

Does it validate against a JSON Schema?

No, it checks syntax (well-formedness) only. Valid syntax is the first requirement for any schema check.

Are comments or trailing commas allowed?

No. Standard JSON allows neither; formats like JSON5 do, but most parsers reject them.

Is my JSON uploaded?

No. Validation uses your browser's JSON parser, so the data never leaves your device.

Why does the error point after the real mistake?

The parser reports where the text stopped making sense. For a missing comma that is the start of the next value, so also look at the end of the previous line.

Guides and tutorials