developerFree

JSON Validator

Validate JSON and show exact errors.

Free — no signupYour input stays on this device for this operation.Learn how to use JSON Validator →
JSON Validator illustration

01 Overview

About JSON Validator

JSON Validator checks whether your JSON follows the strict rules of the format and tells you exactly what is wrong when it does not — a missing comma, an unquoted key, a trailing comma or a single quote where a double quote belongs. Unlike a formatter, which is about readability, a validator is about correctness: is this JSON valid, and if not, where does it break? Paste the complete document, not a fragment. It runs entirely in your browser, so sensitive payloads and configuration data are checked privately on your device.

Adjust the options and review your result before downloading.
See our privacy policy for input handling and usage information.
Use a modern browser. Availability and performance depend on your device and the selected tool.

02 Workflow

How to use JSON Validator

  1. 1
    Paste the complete JSONAdd the full document — an object, array or single value — not a fragment cut off at the start or end.
  2. 2
    Run the validationThe JSON is checked against the syntax rules locally in your browser.
  3. 3
    Read the verdictIf it is valid, copy or format it with confidence. If not, the error names the type of problem and its position.
  4. 4
    Fix and re-validateAdd the missing comma, close the string or remove the trailing comma, then validate again until it passes. Validation never changes your JSON.

03 Good to know

Frequently Asked Questions

What counts as invalid JSON?

Common problems include missing commas, trailing commas, unquoted keys, single quotes instead of double quotes, and unbalanced braces or brackets. Any of these will make a strict JSON parser reject the document.

How is a validator different from a formatter?

A formatter rewrites valid JSON to make it readable. A validator checks whether JSON is valid at all and explains errors in detail. Use the validator when something is broken; use the formatter when it works but is hard to read.

Can I validate a fragment of JSON?

A validator expects a complete JSON document — an object, an array, or a single value. A fragment with missing braces will be reported as invalid, so paste the full document for an accurate result.

What is the most common JSON error?

Trailing commas after the last item in an object or array, and single quotes used instead of double quotes. JSON is strict about both: keys and strings must use double quotes, and a comma must always be followed by another item.

Why does my JSON fail even though it looks right?

The cause is often invisible at a glance: a trailing comma, an unquoted key, a missing closing brace, or a fragment pasted without its beginning or end. The validator names the type of problem and its position, so fix that spot and validate again.

Is JSON the same as a JavaScript object?

They look similar, but JSON is stricter. JSON requires double quotes around every key and string, forbids trailing commas, and allows no comments or functions. A JavaScript object literal may be valid JavaScript yet still be invalid JSON.

Can I validate JSON from an API response?

Yes. Paste the complete response body into the validator. Make sure you copy the whole response, because a fragment cut off at the start or end will be reported as invalid even when the full response is fine.