JSON Validator
This tool checks whether JSON is valid. If it is not, it shows the first error with its line and column and a hint about the usual cause.
- Free, no sign-up
- Nothing is sent to a server
- Worldwide
How to use JSON Validator online
- Paste the JSON. Type or paste the text.
- Read the answer. See Yes or No.
- Find the problem. Look at the line, column and hint.
- Fix and check again. Edit the text and the result updates.
Why use this free JSON Validator
- Line and column of the error
- Hints for common mistakes
- Same answer in every browser
- Size, depth and item count
- Works with large text
- Share by link
What it checks
The tool reads your text the way a strict JSON parser does. Keys and strings need double quotes, numbers follow JSON rules, and the only words allowed are true, false and null. Comments, trailing commas, single quotes and values such as undefined are not valid JSON, even though some programming languages accept them.
Where the error is
When the text is not valid, the tool names the first problem and shows the line and column, with a piece of the line around it. Fix that one, then check again, since later errors may only appear once the first is gone. Browsers word their own error messages differently, so the tool finds the position itself and gives the same answer everywhere.
A worked example
The text with a comma after the last list item is not valid: the tool reports "A comma comes before a closing bracket here. Remove it.", at line 1 and column 35, with the hint "There may be a comma before a closing bracket. JSON does not allow a trailing comma." Without that comma, the same text is valid, its top level is an object of kind object, with 5 items inside and a nesting depth of 2.
Common mistakes
Trailing commas, single quotes, keys without quotes and comments account for most errors, and the hint line names them when it can tell. A missing bracket or quote at the end makes the text stop too early. Copying from a web page can bring in curly quotes, which also break JSON.
Valid is not the same as right
A valid document may still not be what an API expects, since JSON has no schema in itself. The tool checks syntax only. It reports the size, depth and number of items to help you see the shape, and the JSON formatter can indent the text once it is valid.
Using the tool
The result shows under the boxes and refreshes as you edit. Press Try a sample to see how it behaves.
JSON Validator: frequently asked questions
What makes JSON invalid?
Does it find every error at once?
Can it check my JSON against a schema?
Why is a number like 007 invalid?
Is my JSON sent anywhere?
Is the text I paste into the JSON Validator uploaded?
Can I chain the JSON Validator with another tool?
Related searches for JSON Validator
- JSON Validator online
- free JSON Validator
- JSON Validator online free
- JSON Validator for mobile
- JSON Validator without sign up
- JSON Validator – Text & Writing Tools
JSON Validator is a free online tool on MAITBOX, in the Text & Writing Tools group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.