What the JSON Validator does
Paste JSON and press Validate. A valid document reports its top-level type, key count and nesting depth. An invalid one shows what is wrong, the line and column, and the surrounding lines with a marker.
Validation follows the JSON standard strictly, the same rules JSON.parse uses.
How to use it
- Paste your JSON.
- Press Validate.
- If there is an error, fix it at the marked position and validate again.
Practical examples
- Find the missing comma in a config file.
- Confirm an API payload is well-formed before sending it.
Features
- Line and column of the first error
- Context excerpt with a caret marker
- Structure summary
Limitations
- Only syntax is checked. Validating against a JSON Schema is not supported.
- Only the first error is reported; fix it and validate again to find the next.
Privacy
This tool runs entirely in your browser. What you type is not sent to our servers and is discarded when you close or reload the page.
Frequently asked questions
What are the most common JSON errors?
Trailing commas, single-quoted strings, unquoted keys and comments, none of which are allowed in JSON.