JSON Validator
Check whether a document is valid JSON and report the first syntax error with its position.
- Runs locally in your browser
- No upload required
Try it
Supported formats
Privacy
Runs entirely in your browser. Your input is never uploaded, stored, or sent to a third party.
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.
Methodology
- Scan the document and validate the token stream against the JSON grammar defined by RFC 8259 and ECMA-404.
- Report the first syntax problem with its zero-based character position so an editor can map it to a line and column.
- Validate syntax only; the document's shape against an application schema is out of scope.
Usage
- Paste a JSON document into the input.
- Read the validity result.
- If invalid, use the reported position to fix the syntax.
Examples
These are examples, not current values: they use fixed inputs, while the interactive tool computes live results in your browser.
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.
Sources
Send feedback
Tell us if this tool helped, report a problem, or suggest a tool. Only the message you type is sent — never the input you used in the tool.
Was this tool useful?
Prefer to write to us directly? See the contact page.