Skip to content

Free JSON Validator

Paste JSON to check its syntax. You get a clear yes or no, the exact position of any error and a summary of what is inside.

  • 100% free
  • Runs in your browser
  • Instant results
Quick answer

A JSON validator checks text against the JSON standard (RFC 8259) and tells you whether it will parse. Paste your JSON and this tool reports valid or invalid at once. For invalid JSON it shows the line, column and reason of the first error; for valid JSON it counts objects, arrays, keys and nesting depth.

How to use the JSON Validator

  1. Paste your JSONPaste the text you want to check. It can be an API response, a config file or a single value.
  2. Read the verdictThe result says "Valid JSON" or shows the first error with its line and column and the part of the line where it happened.
  3. Fix and re-checkCorrect the problem in the box. The check runs again as you type, so you can work through errors one at a time.

What counts as valid JSON

JSON looks like JavaScript but its rules are stricter. This JSON validator applies the standard exactly, with no extensions:

  • Strings and property names use double quotes only.
  • No trailing commas after the last array item or object property.
  • No comments, and no values such as undefined, NaN or Infinity.
  • Numbers cannot have leading zeros (07), a leading plus sign, or a bare decimal point (.5 or 5.).
  • Line breaks and tabs inside strings must be escaped as \n and \t.
  • The whole text must be exactly one value: one object, array, string, number, true, false or null.

Formats such as JSON5 and JSONC relax some of these rules. Files written for them (for example some editor settings files) will be reported as invalid here, which is correct for anything that will be read by a standard JSON parser.

Errors, warnings and the structure summary

The validator stops at the first error because everything after a syntax error is guesswork. Fix it and the next one, if any, appears. The message names the cause in plain words, for example "Trailing comma before ]" or "Property names need double quotes".

Valid JSON can still hide a mistake. Duplicate keys in one object are allowed by the grammar, but most parsers silently keep only the last value, so the tool lists them as a warning with their line numbers. The summary also shows the top-level type, how many objects, arrays and keys there are and the deepest nesting level, which is a quick way to confirm you received the data you expected.

A leading byte order mark, which some Windows editors add, is ignored so that it does not cause a confusing error at line 1, column 1.

Checking happens in your browser and nothing is uploaded. Once the JSON is valid you can tidy it with the JSON formatter or shrink it with the JSON minifier.

Frequently asked questions

How do I check if JSON is valid?

Paste it into the JSON validator. If it parses, you see "Valid JSON" with a summary of its contents. If not, you see the line and column of the first syntax error and what is wrong.

Why is a trailing comma an error?

The JSON standard does not allow a comma after the last item of an array or object, even though JavaScript does. Remove the final comma and the JSON will parse.

Are duplicate keys valid JSON?

They are allowed by the grammar, so the JSON still parses, but the behaviour is unreliable: most parsers keep only the last value. The validator flags duplicates as a warning.

Does it validate against a JSON Schema?

No. This tool checks syntax only: whether the text is well-formed JSON. It does not check that fields have particular names or types.

Is my data uploaded?

No. Validation runs in your browser and the text never leaves your device.

Last updated 24 November 2026 by the TheTechFolk team.