JSON

JSON Validator

Paste a JSON Schema and a document to validate it — required fields, types, ranges, and formats, with the exact path to every failed rule.

JSON Schema
JSON Document
Validation Result
Paste a JSON Schema and a JSON document above to validate the document against it.

Quick Learn

Validating JSON usually means one of two very different things. The JSON Formatter checks that a document is syntactically valid — braces balanced, commas in the right places, strings properly quoted. This tool checks something deeper: whether a document's actual content matches a set of rules you define — a JSON Schema — covering required fields, value types, numeric ranges, string patterns, and more.

That distinction matters in practice: a payload can be perfectly valid JSON and still be the wrong shape for what your application expects — a missing required field, a price that's negative, an email that isn't actually an email. This tool checks both a JSON Schema and a document against each other, using the same JSON Schema standard the Schema Generator tool produces, and reports every rule that failed with the exact path to the offending field. Everything runs locally in your browser.

Best Practices

  • •Don't hand-write a schema from scratch if you already have a representative payload — generate a starting point with the JSON Schema Generator, then tighten it here.
  • •allErrors is always on here, so you'll see every rule that failed at once, not just the first one — useful for fixing a payload in one pass instead of one error at a time.
  • •A schema with a typo in a keyword (e.g. "required" spelled wrong) won't necessarily error loudly — unknown keywords are usually just ignored by JSON Schema validators, so double-check keyword spelling if a constraint doesn't seem to be enforced.
  • •String format checks ("email", "date-time", "uuid", etc.) validate the shape of the string, not that the value is real — an email format check will accept a syntactically valid but non-existent address.

More JSON Tools

See all JSON tools

Frequently Asked Questions

Is my data uploaded or stored anywhere?

No. Both the schema and the document are validated entirely in your browser — nothing is sent to a server or stored anywhere.

What's the difference between this and the JSON Formatter's validation?

The Formatter checks that your JSON is syntactically well-formed (valid braces, quotes, commas). This tool checks something more specific: whether a document's fields, types, and values satisfy the rules in a JSON Schema you provide.

Which JSON Schema draft does this support?

It validates against JSON Schema draft-07 by default — the same draft the JSON Schema Generator tool on this site produces — and permissively ignores schema keywords it doesn't recognize rather than rejecting the schema outright.

What does the path next to each error mean?

It's the location inside your document where the rule failed, e.g. /price or /items/0/name — read it the same way you'd read a file path, walking from the document's root down to the offending field.

Why does it say my schema is invalid?

This usually means the schema itself isn't valid JSON, or a keyword is used incorrectly (e.g. "properties" given a value that isn't an object). Check that the schema parses as JSON first, then check each keyword's expected shape.

Want the engineering deep-dives behind tools like this one?