JSON Validator
Paste JSON to check whether it is valid. If it is not, you get a plain-language error with the line and column where parsing failed.
0 characters · Ctrl/Cmd+Enter format · Ctrl/Cmd+Shift+Enter minify
How to use
- Paste your JSON into the input panel, or press Sample to load an example.
- The status under the output shows Valid JSON, or an error appears below the panels.
- Read the error message and the line and column, then select Go to error to jump to that position in your input.
- Fix the problem and the result updates as you type.
Example
Input
{"name": "Ada", "skills": ["math", "code",]}Output
Invalid JSON: Trailing commas are not allowed (line 1, column 43)
Common use cases
- Checking an API request body before sending it.
- Debugging a config file that an application refuses to load.
- Verifying hand-edited JSON fixtures and test data.
- Finding where an unexpectedly truncated response was cut off.
Common mistakes
- A missing comma between two properties or array items.
- A trailing comma before a closing } or ].
- Unescaped double quotes or raw line breaks inside a string. Use \" and \n instead.
- Mismatched or missing closing brackets, often at the end of the input.
- Using undefined, NaN, Infinity or comments, none of which exist in JSON.
Frequently asked questions
Does this check my JSON against a JSON Schema?
No. It checks syntax only: whether the text is well-formed JSON. It does not check that required fields exist or that values have the right types.
Are duplicate keys reported as errors?
No. Duplicate keys are not a syntax error, but most parsers keep only the last value, so avoid them. This tool does not flag them.
Does it accept comments or trailing commas?
No. Those belong to JSON5 and JSONC, not standard JSON. Standard parsers, including this one, reject them.
Is my JSON uploaded anywhere?
No. Validation runs entirely in your browser and your input is never sent, logged or stored.