Free JSON Validator
Check whether JSON is valid. If it isn’t, see exactly where the problem is and what’s wrong, and fix common mistakes automatically.
Runs on your device
What to do next
How to use JSON Validator
- 1
Paste your JSON.
- 2
See Valid, or the error with its line and column.
- 3
Select Fix common mistakes if offered.
JSON Validator checks whether JSON is valid and, when it isn’t, shows exactly where and why: the line and column, the line itself, and a marker under the problem. Valid JSON is marked with a green badge.
Many errors can be fixed automatically with Fix common mistakes.
The most common mistakes
A comma after the last item, single quotes instead of double quotes, a missing comma between two items, unquoted key names and comments. All are allowed in JavaScript but not in JSON.
Reading the error
The position is where the parser noticed the problem, which is sometimes just after the real mistake. Look at the end of the previous line too.
- Check JSON before saving a config or sending it to an API.
- Find exactly where a syntax error is.
- The file is opened and processed by your browser on your own device. It is never uploaded, so no server, including ours, ever receives a copy.
- Validation runs in your browser.
- Comments cause an error
- Standard JSON doesn’t allow comments. Remove them, or use YAML or JSON5.
Questions
What makes JSON invalid?
The usual causes are a trailing comma, single quotes instead of double, a missing comma between items, or comments, which JSON doesn’t allow.
Is my data uploaded?
No. Everything is converted in your browser, so private config files and data stay on your device.
Something not working, or a question that isn’t here? Tell us about it
Related tools
More file tools
See all 28- Share FilesNewSend files by link, no upload
- Zip FilesBundle any files into one archive
- Unzip FilesNewOpen ZIP files and save what’s inside
- Compare TextNewFind the differences between two texts
- QR Code GeneratorNewLinks, Wi-Fi, contacts and more
- Wi-Fi QR CodeNewA sign guests scan to connect
- JSON to YAMLNewConvert JSON data to YAML
- JSON to XMLConvert JSON data to XML