JSON Validator
Paste JSON and check whether it's valid, with the line and column of any syntax error.
What is a JSON validator?
A JSON validator checks whether a piece of text follows the syntax rules used by JSON. It can help find common problems such as missing commas, unmatched brackets, incorrect quotation marks, or other syntax errors that prevent JSON from being parsed.
This JSON Validator runs in your browser, so you can check JSON without sending the contents to a server. It is useful when working with API responses, configuration files, application data, and JSON copied from another source.
How to validate JSON online
- 1
Paste your JSON
Paste the JSON you want to check into the validator. You can use formatted or minified JSON.
- 2
Validate the JSON
Run the validator to check whether the JSON can be parsed successfully.
- 3
Review any syntax error
If the JSON is invalid, check the reported error and, where available, the line and column position.
- 4
Fix and validate again
Correct the syntax problem in your JSON and run the validator again until the document parses successfully.
Common JSON syntax errors
JSON is strict about its syntax, so a small formatting mistake can make an entire document invalid. Common problems include:
- Missing or extra commas between properties or values
- Unmatched curly braces or square brackets
- Using incorrect quotation marks around property names
- Leaving a property name without a value
- Adding trailing commas where they are not allowed
- Using JavaScript-style syntax that is not valid JSON
Valid JSON does not always mean correct data
A JSON validator checks syntax, not the meaning of your data. For example, a JSON document can be perfectly valid even if a required field is missing, a value has the wrong type, or an API expects a different property name. Those checks depend on the application or data format using the JSON.
Use validation first to make sure the JSON can be parsed, then check it against the requirements of the API, application, or schema you are working with.
JSON validation happens in your browser
The validator processes your JSON directly in your browser rather than uploading it to a remote server. This makes it convenient for checking configuration snippets, API data, and other JSON that you do not want to send elsewhere.
Frequently asked questions
- Yes, completely free with no signup or usage limit.
- No. Validation happens directly in your browser.
- Where possible, it reports the line and column of the syntax error, based on the parser's reported position.
- It checks whether the JSON can be parsed as valid JSON syntax. This includes the structure, quotation marks, commas, brackets, braces, and other syntax required by JSON.
- Yes. You can paste minified JSON into the validator. If it contains invalid syntax, the tool will report an error when possible.
- Not necessarily. Valid JSON means the text follows JSON syntax and can be parsed. It does not confirm that the values, field names, or application-specific data are correct.
Related tools
Or browse the full list of free tools.