Menu
PDF Tools
Image Tools
Converters & Utilities
Seller & Print Tools
Accounting & Business
Calculators
Text & Writing Tools
Developer & Web Tools
Creator & Social Tools
Browser Utilities & Games
Document & Design Makers
Text & Developer Tools
Exam & Form Tools

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.

How to use JSON Validator online

  1. Paste the JSON. Type or paste the text.
  2. Read the answer. See Yes or No.
  3. Find the problem. Look at the line, column and hint.
  4. 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?
Syntax errors such as trailing commas, single quotes, unquoted keys or comments.
Does it find every error at once?
It reports the first one. Fix it and check again.
Can it check my JSON against a schema?
No, only the syntax of the JSON itself.
Why is a number like 007 invalid?
JSON does not allow leading zeros in numbers.
Is my JSON sent anywhere?
The text is checked in your browser. Nothing is sent.
Is the text I paste into the JSON Validator uploaded?
It stays in your browser tab; the JSON Validator sends nothing anywhere.
Can I chain the JSON Validator with another tool?
Yes. Copy the JSON Validator result, or press Use result as input and carry on with the new text.

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.

More tools in Text & Writing Tools →

Search tools