JSON Validator

Paste JSON and know immediately whether it is valid. If it isn’t, the validator shows the exact line and column, highlights the problem and explains how to fix it — including the classic mistakes like trailing commas, single quotes, comments and unquoted keys.

This tool runs entirely in your browser. Your files and text are processed on your own device and are never uploaded to our servers.

How to use the JSON Validator

  1. Paste your JSON into the box or open a .json file.
  2. Read the result as you type: a green “Valid JSON” panel with a summary, or a red panel describing the first error.
  3. Use the line and column numbers and the marked line to find the problem, and follow the hint to fix it.
  4. Check the warnings: duplicate keys are valid JSON but usually indicate a mistake.

Examples

A trailing comma

Input
{
  "name": "Ann",
  "age": 31,
}
Result
Invalid JSON — line 3, column 12: Trailing comma before “}”. Remove the comma after the last property.

Data copied from Python

After fixing the quotes, the validator then flags True and None and suggests the lowercase JSON values true and null.

Input
{'active': True, 'tags': None}
Result
Property names must use double quotes. Replace single quotes with double quotes.

What counts as valid JSON

JSON (RFC 8259) is stricter than JavaScript. Keys and strings must use double quotes; the only literal values are true, false and null; numbers can’t have leading zeros, a leading plus sign or trailing decimal points; and comments and trailing commas are not allowed. The validator follows the standard exactly, so JSON it accepts will be accepted by any compliant parser.

Frequently asked questions

Is my JSON uploaded?

No. Validation runs entirely in your browser; your data never leaves your device.

Why are comments not allowed?

The JSON standard has no comment syntax. Some tools accept “JSON with comments” (JSONC) for configuration files, but standard parsers and APIs reject it.

Are duplicate keys an error?

The standard doesn’t forbid them, so the JSON is reported as valid, but you’ll see a warning: most programs keep only the last value, which usually isn’t what was intended.

Does it validate against a JSON Schema?

No — it checks syntax, which is what most errors are. Schema validation (checking required fields and types) is a separate step done by your application.

Everything you need. One simple place.

Free, fast online tools for text, PDFs, images, data and everyday maths. Every tool runs entirely in your browser, so your files stay on your device.

  • Privacy-first processing
  • No sign-up required

© 2026 Toolora. All rights reserved.

Built for speed and privacy