JSON validator
Paste JSON and check instantly whether it is valid. If there is an error, you will see the message and approximate position.
Workspace · JSON validator
Valid
How to use it
Paste the JSON into the text area.
Validation is automatic: green when valid, red with the error message when not.
Format, minify or copy the result with one click.
Examples
Valid object
{"name":"ByTooly","tools":164} is valid and has 2 keys.
Common error
A trailing comma such as {"a":1,} raises a syntax error.
What you need to know
Validation uses JSON.parse, the same parser the browser provides. Alongside the result, the tool calculates key count, depth and byte size so you can spot unexpected structures.
Frequently Asked Questions
Related tools
Other tools that can help with similar tasks.
JSON formatter and validator
Formats, validates and organises JSON with error detection.
JSON Minifier
Removes spaces and line breaks from a JSON file without losing any data.
JSON Comparator
Compares two JSON documents for content and lists keys that have been added, removed or changed.
