JSON Validator
Validate JSON online and find syntax errors such as trailing commas or single quotes by exact line and column. Valid documents get a structure summary.
Runs in your browser · Nothing uploadedFree · No sign-up
Something not working, or missing a feature? Send feedback
About the JSON Validator
The JSON Validator checks JSON against the standard and points to the exact line and column of the first error. For valid documents it summarises the structure: objects, arrays, keys and depth.
Everything runs in your browser, so your input is never uploaded to a server.
How to use the JSON Validator
- Paste JSON or open a file.
- Read the result: a green confirmation with statistics, or the error location.
- Fix the reported problem and validate again.
Common mistakes
- Trailing commas. A comma after the last array item or property, as in ["admin", "dev",], is the most common JSON error. The validator points to the character after it.
- Single quotes. JSON strings and keys need double quotes. {'name': 'Ada'} is valid JavaScript but invalid JSON.
- Valid JSON, wrong data. Syntax validation does not check that fields exist or have the right type. Compare against a known-good document with JSON Diff, or validate in your code with a schema.
Works well with the JSON Validator
- JSON Formatter: pretty print the document once it is valid.
- JSON Viewer: browse a large document as a tree.
- JSON Diff: compare it with a version that works.
Frequently asked questions
Does it validate against a JSON Schema?
No, it checks syntax (well-formedness) only. Valid syntax is the first requirement for any schema check.
Are comments or trailing commas allowed?
No. Standard JSON allows neither; formats like JSON5 do, but most parsers reject them.
Is my JSON uploaded?
No. Validation uses your browser's JSON parser, so the data never leaves your device.
Why does the error point after the real mistake?
The parser reports where the text stopped making sense. For a missing comma that is the start of the next value, so also look at the end of the previous line.
Guides and tutorials
Related tools
JSON Schema Validator
Validate JSON against a JSON Schema online. Every error shows the failing path, line and rule; drafts 2020-12, 2019-09, 7 and 4 are supported.
XML Validator
Validate XML online and check that it is well-formed. Syntax errors are reported with their exact line and column, so broken tags are easy to find.
YAML Validator
Validate YAML syntax online, find errors by line, and see the parsed result as JSON. Check Kubernetes, Docker Compose and CI files before you deploy.
Regex Tester
Test JavaScript regular expressions online with live match highlighting, capture groups and flags. Debug a pattern against your own text, right in your browser.
JSON Formatter
Format and beautify JSON with configurable indentation and optional key sorting. Errors are reported with exact line and column.
HTML Formatter
Format and beautify messy or minified HTML into clean, indented markup with Prettier, including embedded CSS and JavaScript. Runs locally in your browser.