Skip to content

Validate JSON

It reads your document strictly and tells you where the first problem is, down to the line and column, and what it expected to find there instead. Nearly every failure is one of the same few things: a comma too many, the wrong kind of quote, a stray character, or a response that got cut off.

How to use it

  1. 1 Paste the JSON or drop a file in.
  2. 2 Read the error, which points at the exact line and column.
  3. 3 Fix the problem and validate again.
  4. 4 Copy the validated document or format it in one step.

Formats this tool accepts

Each one has a reference page covering what it stores and where it is supported.

Questions about validate json

Why is my JSON invalid when it looks fine?

The usual causes are a trailing comma after the last item, single quotes instead of double quotes, unquoted keys, a literal newline inside a string, or a comment. JavaScript object literals accept all of those and JSON does not.

Does it check against a schema?

This checks syntax rather than structure, so it tells you whether the document parses, not whether it has the fields your application expects. Schema validation is a separate concern.

Are comments allowed in JSON?

Not in standard JSON. Some parsers accept them as an extension and configuration formats such as JSONC are built around them, but a strict parser will reject a document containing comments.

Does it work offline?

Yes, once the page has loaded once. The engine is cached by the browser, so you can turn off your connection, reload the page and keep working. That is a useful side effect of doing the processing locally rather than a separate offline mode you have to enable.

Are my files uploaded to a server?

No. The whole thing runs inside the browser tab you already have open. Your file is read straight from your own disk, worked on there, and handed back as a download. Nothing is sent anywhere, nothing is stored, and there is no account and no queue.

Other data tools

Popular data conversions

Pairs people convert most often in this category, each on its own page.

All data conversions and formats