JSON validator

Paste JSON to check that it is valid. If it is not, the JSON validator shows the line and column of the first error and points at the character that broke it.

  • Free
  • No sign-up
  • Runs in your browser

Runs in your browser — your text is never sent to our servers.

How to use JSON Validator

  1. Paste your JSON into the input box, or start from the sample.
  2. Read the result below: a valid document is described by type, size and nesting depth.
  3. If the JSON is invalid, the message gives the line and column, and the faulty line is repeated with a ^ under the problem.
  4. Fix the text and the result updates as you type; use the JSON validator again until it reports valid JSON.

Features

  • Reports the line and column of the first syntax error
  • Shows the faulty line with a caret under the problem character
  • Describes valid JSON: type, number of keys or items, nesting depth
  • Strict RFC 8259 rules: no comments, no trailing commas, double quotes only
  • Runs in your browser, so the JSON is never uploaded

Supported formats and limits

  • Maximum input: 10,000,000 characters

Examples

InputResult
{"name": "Ana", "tools": ["json", "hash"]}Valid JSON: an object with 2 keys, nesting depth 2.
{"name": "Ana", }Invalid JSON at line 1, column 17: … (details from your browser) {"name": "Ana", } ^
[1, 2, 3]Valid JSON: an array with 3 items, nesting depth 1.

Limitations

  • The validator follows the JSON standard strictly, so JavaScript-style comments, trailing commas, single quotes and unquoted keys are reported as errors.
  • It checks syntax only. It does not check your data against a JSON Schema.
  • The wording after the position in an error message comes from your browser, so it can differ between Chrome, Firefox and Safari; the line and column do not.

Learn more

JSON (JavaScript Object Notation) is a text format for structured data, defined by RFC 8259. It has only a few building blocks: objects in curly braces, arrays in square brackets, strings in double quotes, numbers, true, false and null.

Because the rules are strict, a single stray character makes the whole document invalid. A parser normally stops at the first problem, which is why validation reports one error at a time: fix it, and the next one (if any) appears. Line and column numbers are counted from 1, and the caret under the faulty line helps you find a misplaced comma or quote in a long line.

Valid does not mean correct for your application. A document can be perfectly valid JSON and still miss a field your code expects. For that, a schema language such as JSON Schema is the usual next step.

Frequently asked questions

Why is my JSON invalid?

The most common causes are a trailing comma after the last item, single quotes instead of double quotes, a missing comma between items, and keys that are not wrapped in double quotes.

Does it accept comments in JSON?

No. Standard JSON has no comments, so a // or /* */ is reported as an error. Remove the comments, or use a format such as JSON5 or YAML in your own tooling.

Can it validate against a JSON Schema?

Not at the moment. This page checks that the text is well-formed JSON, not that its fields match a schema.

Is my JSON sent to a server?

No. The text is parsed locally in your browser.

Sources

Last reviewed: September 30, 2026