JSON Validator
Paste JSON to check that it is valid. If it is not, you get the line and column of the first error with a plain-English reason. Add a JSON Schema to check types, required fields and limits too.
Free, no sign-up. Your JSON stays in your browser, so it is safe to paste private data.
Your JSON
Paste some JSON to check it.
How to
Validate JSON in three steps
Paste the JSON
Paste a response, a config file or a snippet. It is checked as you type.
Read the verdict
Valid JSON shows a green check and a short summary. Invalid JSON shows the line, the column, the reason and the spot marked with a caret.
Fix and recheck
Correct the first error and the check runs again. Later errors appear one at a time as you reach them.
Reading error messages
- The tool reports the first error it finds. A single missing quote can cause problems further down, so fix the first one and recheck.
- "Expected a key in double quotes" usually means a trailing comma or a key written without quotes.
- Copy-pasting from a web page can bring in curly quotes (" ") that look right but are not valid JSON quotes.
- A byte order mark at the start of a file is ignored here, but some programs reject it.
FAQ
JSON validator questions
What makes JSON valid?
It must follow the JSON standard: objects with double-quoted keys, arrays, strings in double quotes, numbers, true, false or null, with commas between items and no comma after the last one.
Why does the error point to a different place than the real mistake?
The checker reads from the start and reports the first place the text stops making sense. A missing quote or bracket earlier on can make a later character look wrong. Check the line above as well.
Does it accept comments or single quotes?
No. Those are valid in JavaScript or JSON5 but not in standard JSON, so they are reported as errors.
Are duplicate keys an error?
The standard allows them, so the JSON is valid, but most programs keep only the last value. The tool warns you so you can fix it if it was a mistake.
Is my JSON uploaded?
No. It is checked in your browser and nothing is sent to a server or stored.
How much of JSON Schema does it check?
A practical subset: type, enum, const, required, properties, additionalProperties, items, minItems, maxItems, uniqueItems, minLength, maxLength, minimum, maximum, exclusiveMinimum, exclusiveMaximum, minProperties and maxProperties. Keywords such as $ref, oneOf, anyOf, allOf, pattern and format are not checked, and the page lists any it finds in your schema.