JSON Validator
Check whether JSON is valid and see exactly where it is not.
Your result will appear here
Fill in the details on the left and press the button. You will see the answer right here, without the page reloading.
About this tool
Paste JSON to find out whether it is valid. If it is not, you get the line and column and a hint (trailing comma, single quotes, comments, unquoted keys). Valid JSON gets a summary: how many objects, arrays, strings and numbers, how deeply nested, and a warning for repeated keys. Your text is processed for this request only and is never stored.
Frequently asked questions
What makes JSON invalid?
Trailing commas, single quotes, unquoted keys, comments, missing brackets and values such as undefined or NaN.
Can JSON contain comments?
No. Remove comments before you validate or send JSON.
Does a valid result mean the data is correct?
It means the syntax is right. It does not check that the values make sense for your application.
Guides and tutorials
How to Test REST APIs Online (A Beginner Guide)
Learn what an API request is made of, how to send one and how to read the response, using the free API Tester.
Read the guide → Developer guides2 min readHow to Fix the Most Common JSON Syntax Errors
Missing commas, single quotes and trailing commas: the mistakes behind most "Unexpected token" errors and how to fix them.
Read the guide → Developer guides2 min readJSON Formatting Explained With Examples
What JSON is, how its syntax works and why formatting a messy JSON string makes it so much easier to read and debug.
Read the guide →