Tool

JSON Validator

Check whether a document is valid JSON and report the first syntax error with its position.

Try it

This tool runs entirely in your browser. Nothing you type or paste is sent anywhere.

Validity
Valid JSON
Summary
The document is valid JSON.
The document is valid JSON.

The document is valid JSON.

How it works

Usage

  1. Paste a JSON document into the input.
  2. Read the validity result.
  3. If invalid, use the reported position to fix the syntax.

Examples

Valid document

{
  "json": "{\"name\":\"example\",\"items\":[1,2,3]}"
}

Trailing comma

{
  "json": "{\"name\":\"example\",}"
}

Limitations

Reading a JSON error position

A position is a zero-based character offset into the exact string you submitted. Editors usually convert an offset into a line and column, which is the fastest way to find a missing comma or an unescaped quote.

Frequently asked questions

Is my JSON uploaded anywhere?
No. Validation runs locally and the document never leaves the page or process.

Sources

  1. RFC 8259: The JavaScript Object Notation (JSON) Data Interchange Format — IETF