Tool
JSON Validator
Check whether a document is valid JSON and report the first syntax error with its position.
Try it
This tool runs entirely in your browser. Nothing you type or paste is sent anywhere.
The document is valid JSON.
How it works
- Scanned the document for JSON tokens.
- Checked object/array delimiters, string escapes, number grammar, and trailing content.
- No structural problem was found.
- Checked 34 characters.
Usage
- Paste a JSON document into the input.
- Read the validity result.
- If invalid, use the reported position to fix the syntax.
Examples
Valid document
{
"json": "{\"name\":\"example\",\"items\":[1,2,3]}"
}Trailing comma
{
"json": "{\"name\":\"example\",}"
}Limitations
Reading a JSON error position
A position is a zero-based character offset into the exact string you submitted. Editors usually convert an offset into a line and column, which is the fastest way to find a missing comma or an unescaped quote.
Frequently asked questions
- Is my JSON uploaded anywhere?
- No. Validation runs locally and the document never leaves the page or process.