
JSON Validator
Check JSON syntax and find errors by line and column.
Runs in your browser. Nothing you type is uploaded.
How to validate JSON
Paste your JSON and press Validate. If it is valid you will see a green message. If not, you get the parser's error and, where possible, the line and column of the first problem, which is also selected in the input box so you can fix it straight away.
What counts as valid JSON?
This validator is strict and follows the JSON standard (RFC 8259). Keys and strings need double quotes, there are no comments, and the last item in an object or array must not be followed by a comma. Valid values are objects, arrays, strings, numbers, true, false andnull.
FAQ
Why does my JSON fail when it works in JavaScript?
JavaScript object literals allow single quotes, unquoted keys, comments and trailing commas. JSON does not, so code that runs fine in a script can still be invalid JSON.
Is my data sent to a server?
No. Validation uses your browser's own JSON parser, so what you paste never leaves your device.
Can it fix errors for me?
It points to the first error but does not change your data. Fix that one, validate again, and repeat until the message turns green.
More JSON tools
- JSON formatter: Format, minify and validate JSON in one place.
- JSON beautifier: Pretty print JSON with 2 spaces, 4 spaces or tabs.
- JSON minifier: Strip whitespace to make JSON as small as possible.
- JSON to Go struct: Generate Go struct definitions with json tags from a JSON sample.
- JSON to TypeScript: Generate TypeScript interfaces or types from a JSON sample.
- JSON to Python: Generate Pydantic models, dataclasses or TypedDicts from a JSON sample.
- JSON to Rust: Generate Rust structs with serde derives from a JSON sample.