FreeOnlineQR

JSON Validator

Paste JSON and find out immediately whether a parser will accept it — and if not, exactly where it breaks. Rather than repeating the engine's message, this points at the failing line with a caret and names the usual culprits: a trailing comma, single quotes, a stray comment, or a JavaScript value like NaN that JSON has no concept of. When the document is valid it describes what's actually in it, so you can see whether it's the payload you expected.

Lists the top-level keys and their types, so you can see at a glance whether it's the document you expected.

Result

Nothing is uploaded — this tool runs inside your browser, so your files never leave your device.

Help us improve

Why use this tool

  • Marks the failing line and column with a caret
  • Names the likely cause — trailing comma, single quotes, comments, NaN
  • Summarises the top-level keys and their types when the JSON is valid
  • Runs in your browser, so API responses with real data stay on your machine

How it works

  1. 1Paste the JSON you want checked.
  2. 2If it's invalid, read the marked line and the suggested cause underneath.
  3. 3Fix it and paste again — a parser stops at the first error, so there may be more.

JSON Validator — frequently asked questions

Four causes account for nearly all of it. A trailing comma before a closing bracket, which JavaScript allows and JSON does not. Single-quoted strings — JSON requires double quotes, on keys as well as values. Comments, which JSON has none of. And JavaScript values like NaN, Infinity or undefined, which have no JSON representation. This tool checks for all four and says which it found.

Explore the other tools

Same deal everywhere on the site — free, no sign-up, and no watermark on anything you download.

Or see every tool on one page.