Skip to content
Document tools

JSON Validator

Check JSON for errors and see the exact line and column of the problem.

Validate your JSON

Result
Paste your JSON and press Validate JSON to check it.
Runs in your browser. Nothing you paste or open is uploaded. Numbers are kept exactly as written, so long IDs are never rounded.

About this tool

Paste JSON or open a .json file and press Validate. If it is valid, you see how many objects, arrays and values it holds and how deeply it is nested. If not, you get a plain-English message such as "Expected a comma or } after a value" with the line and column, and the text jumps to the problem so you can fix it straight away.

The validator follows the JSON standard (RFC 8259) strictly: comments, trailing commas, single quotes and unquoted keys are reported as errors, because most programs reject them. It also warns about duplicate keys, which the standard allows but which are usually a mistake. Everything runs in your browser and nothing is uploaded.

How it works

  1. Paste or open JSONPaste text, or open a .json file up to 10 MB.
  2. ValidatePress Validate to check the whole document.
  3. Fix and check againJump to the error, correct it and validate again.

Questions people ask

What does the validator check?
That the text is valid JSON as defined by RFC 8259: quotes, commas, brackets, escapes, numbers and the literals true, false and null. It does not check the data against a JSON Schema.
Why is a duplicate key only a warning?
The standard allows duplicate keys, but programs disagree on which value wins, and most keep only the last one. The validator lists them so you can decide.
Is my data sent anywhere?
No. Validation runs in your browser, so you can check configuration files and API responses that contain private data.
Good to know

Understanding validation errors

Look just before the position

The position marks where the checker gave up. The real mistake, such as a missing comma or quote, is often at the end of the line before.

Comments mean JSONC or JSON5

Files such as tsconfig.json or VS Code settings allow comments and trailing commas. They are not standard JSON, so remove those parts before using the data elsewhere.

Duplicate keys hide data

When the same key appears twice in an object, most programs keep only the last value. Rename or merge the duplicates the validator lists.