JSON validator with line-accurate errors
Paste, type, or drop a .json file and get instant validation with the exact line and column of any error, a one-click auto-fix for common mistakes, and optional JSON Schema (Draft 7) checking — all without leaving your browser.
A validator built for actually fixing errors
Most online validators just say "invalid JSON." This one tells you exactly where the problem is, offers to fix the common cases automatically, and can check your data against a real JSON Schema.
Frequently asked questions
Why does my JSON say invalid even though it looks correct?
The most common causes are a trailing comma before a closing } or ], single quotes instead of double quotes around strings and keys, or an unquoted object key. This validator shows the exact line and column of the first error and offers an auto-fix for these three cases.
Does this tool support JSON Schema validation?
Yes. Paste a JSON Schema (Draft 7) into the schema panel, or supply a URL to fetch one, and the validator will check your document against it using the Ajv validation engine, listing every failing path and rule.
Can auto-fix repair any invalid JSON?
Auto-fix is a heuristic convenience feature. It reliably fixes trailing commas, single-quoted strings/keys, and unquoted object keys, but it is not a full parser and cannot repair deeply malformed or truncated documents.
Is my JSON data uploaded anywhere when I validate it?
No. Validation, auto-fix, and schema checking all run locally in your browser. The only network request this page ever makes is fetching a schema if you explicitly paste a schema URL.