JSON Validator

  • Free forever
  • No sign-up
  • Runs in your browser
Processed on your device

Check if your JSON is valid as you type. See the exact line and column of any error, and fix common mistakes in one click.

The one-click fix handles the usual problems: trailing commas, single quotes, comments, unquoted keys, and Python-style True / False / None.

About JSON Validator

Checks JSON while you type and tells you, with the line and column, exactly where it breaks. Once it's valid, you see the top-level type, the number of keys, the nesting depth and the size in bytes. It's a quick way to test an API body, a package.json or a settings file before you save or send it, and the one-click fixer repairs the mistakes people most often make when writing JSON by hand.

How to use JSON Validator

  1. Paste your JSON into the box; it's checked automatically as you type.
  2. Or click Validate to check it again after making changes by hand.
  3. If it's invalid, read the line and column shown, or click Try to fix it.
  4. Check the fixed result, then click Copy to take it back to your project.

How your data is handled

Checking happens in your browser with its built-in JSON parser, and nothing is downloaded or uploaded. The JSON you paste stays on your device and isn't stored.

How SAA Tool works · Privacy Center

Limits and accuracy

  • Duplicate keys still count as valid, although the JSON standard says names should be unique.
  • Error wording comes from your browser, so the message differs slightly between Chrome, Firefox and Safari.
  • Only standard JSON passes; JSON5, JSON Lines and JavaScript objects with functions are reported as invalid.

Questions and answers

What can the one-click fix repair?

Trailing commas, single quotes, comments, unquoted keys, and Python-style True, False and None. It also turns undefined and NaN into null. Check the result afterwards, because the fixer changes quotes and removes comments.

Does it validate against a JSON Schema?

No. It checks that the text is valid JSON syntax and shows its size, number of keys and depth. It doesn't check field names or value types against a schema.

Why does the error point to the wrong line?

The parser reports where it got confused, which is often just after the real mistake. Look at the line shown and the one before it, especially for a missing comma or an unclosed quote.

Is a JavaScript object the same as valid JSON?

No. JSON is stricter: keys and strings need double quotes, and trailing commas, comments, functions, undefined and NaN aren't allowed. A JavaScript object literal often fails here until those are fixed, which the Try to fix it button can help with.

Do I need to sign up?

No. JSON Validator is free with no sign-up, no login and no daily limit, and there's nothing to install. It works on a phone as well as a PC.

Is my text sent to a server?

No. JSON Validator runs in your browser, so what you paste stays on your device. That makes it safe for passwords, tokens, customer data and anything else private.

Does it validate against a schema?

No. It checks that the JSON is well formed and points to the line and column of the first error. For schema checks, use your project's JSON Schema tooling.

Sources and standards

Related guides

Report a problem with this tool