JSON Validator

Check JSON and find the exact line and column of the first error.

Result

Result Valid JSON ✓ 11 values · 4 levels deep
Keys
8
Size
99 bytes

What does a JSON validator check?

A JSON validator tells you whether text follows the JSON rules exactly. A single stray comma or quote makes a whole file unusable, and most programs fail with a vague message. A validator points at the problem.

This tool uses the strict JSON standard, RFC 8259, the same rules as JavaScript's JSON.parse. If the JSON is valid, you see counts of values, keys, depth and size. If not, you get the line, column and a reason. The sample is valid, with 11 values, 8 keys and 4 levels.

How to use the JSON Validator

  1. Paste your JSON on the left.
  2. Read the result: valid, with its stats, or the first error.
  3. If invalid, go to the line and column given and fix the problem.
  4. Paste again until it turns valid.

Real situations

When people use the JSON Validator

  • 1

    Debug an API request body

    Before sending a payload, check that it parses. A missing bracket is caught here instead of as a server error.

  • 2

    Check a config file

    Many tools read JSON settings and fail on a small mistake. Validate before you restart a service.

  • 3

    Check exported data

    If a script or export produced JSON, test it before importing it somewhere else.

  • 4

    Teach JSON rules

    Students can try broken examples and see what each rule means, with the exact position of each mistake.

Good to know

  • Only the first error is shown. Fix it and check again, because later ones may be revealed.
  • Duplicate keys and very large numbers are allowed by the syntax rules, even if some programs handle them badly.

FAQ

JSON Validator: questions answered

How do I check if my JSON is valid?

Paste it into the box. If it is valid, the result says Valid JSON and shows the number of values, keys, how deep it nests and its size in bytes. If not, you get the first error with its line and column.

What errors does the validator find?

Syntax errors, such as a missing bracket, a trailing comma, single quotes, unquoted keys, comments and unclosed strings. For {"a":[1,2 it says the array is never closed, at line 1, column 6.

Does it check my data against a schema?

No. It checks the syntax only, not whether the fields and types are what an API expects. A schema check is a separate step.

What is RFC 8259?

It is the internet standard that defines JSON. It says strings and keys use double quotes, and that there are no comments, trailing commas or undefined values.

Why is valid JSON failing in my program?

The syntax may be fine but the data may not match what the program expects, such as a missing field, a string where a number is needed or a very large number that loses precision in JavaScript. The notes flag numbers that are too precise.

What is the difference between this and the formatter?

The validator gives a quick verdict with counts of values, keys, depth and bytes. The JSON formatter also re-indents the text, sorts keys and gives you the formatted output to copy.

Is this JSON Validator free and private?

Yes. It is free with no sign-in, and every calculation runs inside your browser. Nothing you type is sent to a server or stored, and the page keeps working offline once it has loaded.

Private by design. No accounts, no cookies, no tracking. Everything you type stays on your device.

How we keep it that way