JSON Validator
Check whether JSON is valid, with any error highlighted at its exact line and column, a plain explanation, and one-click repair.
Output options
Numbers and string escapes are copied exactly; only whitespace changes.
How to Validate JSON Online
Paste JSON into the editor, drop a file onto it, or load it from a URL. It is validated as you type. A valid document gets a confirmation and a summary of its structure. An invalid one gets its error line highlighted, the column marked, and a message such as "Trailing comma before '}'". Jump to error moves the cursor to the problem.
Why Validate JSON?
A single misplaced comma or bracket breaks an entire JSON document. Validating before you ship config files, API payloads, or data exports saves debugging time and prevents runtime failures.
Fixing Invalid JSON
Most invalid JSON is one of a handful of mistakes, and Repair handles them: trailing commas, single quotes, unquoted keys, comments and Python literals. Each change is listed, so you can check it matches what you meant. When the error is structural, such as a missing bracket, follow the message: it names the line and column where the unclosed object or array began. To see what changed against a known-good version, use JSON Compare.
Frequently Asked Questions
Is this a JSON linter or a JSON checker?
Those are the same job under different names, and this tool does it: it checks your JSON against the grammar, reports the first syntax error with its line and column, and describes what the document contains. What it deliberately does not do is enforce style rules such as key ordering or indentation preferences, so it will never call valid JSON a problem.
How does the JSON validator work?
It walks the JSON grammar from RFC 8259 one character at a time, rather than relying on the browser's JSON.parse message, which in some browsers gives no position at all. If the document is valid you get a confirmation, a summary of what it contains, and warnings for things that are valid but risky: duplicate keys, which most parsers silently collapse to the last value, and integers too large for JavaScript to hold exactly. If it is invalid, the line is highlighted, the column is marked, and the message says what was expected.
What are common JSON errors it catches?
Trailing commas, missing commas, mismatched or unclosed brackets and braces, unquoted keys, single quotes instead of double quotes, comments, Python and JavaScript literals such as True, None, NaN and undefined, leading zeros, unescaped line breaks or tabs inside strings, and invisible characters pasted from web pages, such as no-break spaces and byte-order marks.
Can it fix the error for me?
For the common cases, yes. Repair fixes trailing commas, single quotes, unquoted keys, comments, curly quotes and Python or JavaScript literals, then lists every change it made, and Undo repair restores your original. Problems that need a human decision, such as a missing bracket or a truncated document, are reported rather than guessed at.
Is my data sent anywhere?
No. Validation runs entirely in your browser. Your JSON never leaves your device.
Does it validate against a JSON Schema?
This tool checks JSON syntax (is it well-formed?), not schema conformance. It confirms the document parses and reports its structure.
Continue with the data, not the directory
Validate, format, repair, compare, query, and reshape payloads before they ship.
JSON Formatter & Beautifier
Format and beautify JSON with 2, 3 or 4 spaces or tabs, see any syntax error at its exact line and column, and repair common mistakes in one click.
JSON Fixer
Repair almost-JSON: trailing commas, single quotes, unquoted keys, comments, and Python literals.
JSON Compare & Diff
Compare two JSON documents side by side, with changed lines highlighted, counts of what was added, removed and changed, and an option to ignore array order.
JSON Merge
Deep-merge two JSON documents with the second overriding the first, key by key.