JSON validator – Free & Private
Find exactly where your JSON breaks, with a fix hint.
Short answer
To validate JSON, paste it in the box. This JSON validator tells you straight away whether it is valid, and if not, shows the exact line and column, explains the mistake and offers a one-click fix for trailing commas, single quotes and unquoted keys. It works like JSON lint. Nothing leaves your browser.
How to use JSON validator
- Step 1
Paste your text, open a file, or press “Sample”.
- Step 2
Pick the options you need. The result updates as you type.
- Step 3
Copy the result or download it.
Settings explained
- Check against a JSON Schema
- Also checks the data matches a schema you paste.
Keyboard shortcuts
- Paste into the input
- Ctrl V
- Format now (JSON)
- Ctrl Enter
- Search all tools
- Ctrl K
Tips for better results
- If the error points at the last line, look for a missing closing bracket earlier in the file.
- Validate JSON config files before deploying to avoid start-up crashes.
- Use the JSON formatter to make valid JSON readable.
What it does
- Exact line and column
- Fix hints
- JSON Schema check
Questions
Why is my JSON invalid?
The usual causes are a trailing comma, single quotes instead of double quotes, or a missing bracket. We show the exact line and column.
Trailing commas allowed?
No. Standard JSON doesn’t allow a comma after the last item in an object or list. JavaScript does, which is why it is a common mistake.
What are the most common JSON errors?
A comma after the last item, single quotes instead of double quotes, keys without quotes and comments. JSON allows none of these.
How do I validate JSON from an API?
Copy the response body and paste it here. If it is valid you also see how many keys and levels it has.
Is my JSON sent to a server?
No. Validation runs in your browser, so private data stays on your computer.
Related tools
Runs in your browser · Updated · Report a problem