Skip to content
hateitall

JSON Validator

Find the one missing comma or stray quote that breaks a JSON file, with the exact spot underlined.

Processed locallyIn: JSONOut: Report

Loading tool…

How to use json validator

  1. Paste JSON or open a file; it is checked as you type.

  2. Read the error: line, column, what went wrong and a likely fix.

  3. Select Show the error in the editor to jump straight to it.

  4. Fix it and watch the result turn to Valid JSON.

What this tool does

  • Its own strict parser reports the same line and column in every browser.
  • Explains common mistakes: trailing commas, single quotes, unquoted keys, comments, NaN and leading zeros.
  • Lists duplicate keys with their path, line and column.
  • Warns about integers too large to keep exactly and about a byte order mark at the start.
  • Counts objects, arrays, strings and numbers and reports the nesting depth.

How the result is verified

When the tool's parser accepts a document, it is also parsed with the browser's JSON.parse; if the two ever disagree, the browser's answer is shown.

Frequently asked questions

Why does my browser give a different position?

Browsers word and place JSON errors in their own ways, and some only give a character offset. This tool scans the text itself, so the line and column are the same everywhere.

Are duplicate keys an error?

The JSON standard allows them but says behaviour is unpredictable. Most readers keep the last value, so they are listed as warnings.

Is my data uploaded to a server?

No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.

Beautify or minify JSON with your choice of indentation

JSON→ JSONLight on device

Collapsible, searchable tree view that stays fast on large files

JSON→ PathLight on device

Infer a JSON Schema from sample data, draft 2020-12 or 07

JSON→ JSON SchemaLight on device

Format, validate, tree view, schema, diff and CSV in one tabbed workspace

JSON · CSV→ JSONModerate on device