JSON Validator
runs in your browserno sign-upfree
Check if JSON is valid, see the exact line of any error and spot duplicate keys.
Valid JSON
Details
- Type
- Object
- Size
- 254 B
- Keys
- 11
- in all objects
- Depth
- 3
- nesting levels
- No duplicate keys
About this tool
This JSON validator checks whether your JSON is valid and, if not, tells you exactly what is wrong and on which line and column, with the problem underlined in the editor. It also finds duplicate keys — JSON that parses fine but silently loses data — and shows the type, size, number of keys and nesting depth of valid JSON.
How to use
- Paste or type your JSON. It is checked as you type.
- Read the status line: "Valid JSON" or the error with its line and column. The error is also underlined in the editor.
- Check the Details panel for duplicate keys and a summary of the document.
- Press Format to re-indent valid JSON in place, or open the JSON Formatter for more options.
FAQ
What are the most common JSON errors?
A trailing comma after the last item, single quotes instead of double quotes, keys without quotes, comments, and missing commas between items. JSON allows none of these, even though JavaScript does.
Why does it warn about duplicate keys if the JSON is valid?
The JSON standard does not forbid two equal keys in one object, so most parsers accept them — but they keep only the last value and drop the first without any warning. That is almost always a mistake, so the validator points it out with the line number.
How is this different from the JSON Formatter?
The validator focuses on checking: it leaves your text as it is and gives a clear verdict, duplicate-key warnings and document details. The JSON Formatter rewrites the JSON (format, minify, sort keys) and also validates it.
Does it check JSON Schema?
No. It checks the JSON syntax (whether the text is valid JSON), not whether the data matches a JSON Schema.
Is my JSON uploaded anywhere?
No. Everything runs in your browser, so API responses, config files and other data never leave your device. Your last input is saved only in this browser; press Clear to remove it.