Quecko Logo

Free tool • Runs in your browser

JSON validator

Check whether JSON is valid and find the exact line and column of any error.

Loading tool...

Quick answer

The validator parses your input against the JSON standard. If it fails, you see the error and where it occurred. The most common causes are trailing commas, single quotes and unquoted keys.

How to use it

  1. Paste your JSON.
  2. Read the valid or invalid result.
  3. Fix the reported line and check again.

Example

Input
{"a": 1,}
Output
Invalid JSON, with the error location shown

Common errors and how to fix them

Trailing comma
Remove the comma after the last item.
Single quotes
Use double quotes around keys and strings.

Frequently asked questions

How do I validate JSON online?

Paste your JSON here, and you instantly see whether it is valid, with the error location if not.

How do I validate a JSON file?

Open the file, copy its contents, and paste them here. You can also use a validator built into your editor.

How do I validate JSON in VS Code?

Open a .json file, and VS Code underlines syntax errors. The Problems panel lists them.

How do I validate JSON in Notepad++?

Use a JSON plugin such as JSTool, or paste the content here.

How do I validate JSON against a schema?

This tool only checks syntax. Use a JSON Schema validator, or a library such as Ajv in JavaScript.

How do I validate a JSON response in Postman?

Write a test script that parses pm.response.json() and checks its fields. You can also paste a response here to check its syntax.

Why is my JSON invalid?

Common causes are trailing commas, single quotes, unquoted keys, comments and missing brackets.

Are trailing commas allowed in JSON?

No. Remove the comma after the last item in an object or array.

Why does the error point after the real mistake?

A parser reports where it noticed a problem, so also check the line before.

Is what I paste uploaded?

No. Everything runs in your browser and nothing is sent to Quecko.

More developer tools

Need something built for your business?

Quecko designs and builds AI, Web3 and custom software products.

Start a Project