How to use the JSON Validator
- Paste or upload your JSON.
- Press Validate. A green status means the document is valid JSON.
- If it is invalid, the error is highlighted in the editor. Fix it and validate again.
Features
- Explains common mistakes: trailing commas, single quotes, unquoted keys, comments, NaN, leading zeros, invalid escapes
- Warns about duplicate keys, which most parsers silently resolve by keeping the last value
- Detects invisible problem characters such as non-breaking spaces copied from web pages
- Optional structural checks are available in the JSON Schema Validator
Supported input
Text that should be JSON. Files up to 20 MB.
Limitations
- Validation stops at the first syntax error, because everything after it is ambiguous. Fix it and validate again to find the next one.
- Checks syntax only. To check structure and types, use the JSON Schema Validator.
Privacy
Everything this tool does happens in your browser. What you paste or open is never uploaded, stored, logged or used for advertising. Closing the tab discards it. Read the privacy policy.
Frequently asked questions
01Is a duplicate key an error?
The JSON standard says keys "should" be unique but does not forbid duplicates, so they are reported as warnings. In practice they cause bugs, because different parsers keep different values.
02Does it validate against a schema?
This page checks syntax. For required fields, types and formats, use the JSON Schema Validator, which supports drafts 4, 7, 2019-09 and 2020-12.
03Is my data uploaded anywhere?
No. This tool runs entirely in your browser tab. Your input is never sent to our servers, stored, or logged. You can disconnect from the internet after the page loads and it keeps working.