JSON Schema Validator

Validate data against a schema. Useful subset of draft-07 and 2020-12 — type, required, properties, patterns, formats, ranges, enums, allOf/anyOf/oneOf, $ref.

Runs in your browser. Nothing is uploaded.
Data
Schema

JSONYard's online JSON Schema validator checks data against a JSON Schema (a useful subset of draft-07 and 2020-12) and reports the exact path and reason for every validation failure. It runs entirely in your browser — no data leaves your device.

Errors

How to validate JSON against a JSON Schema online

  1. Paste your data into the Data pane on the left.
  2. Paste your schema into the Schema pane on the right.
  3. Click Validate. Every failure is reported with the exact data path (e.g. /users/2/email) and the keyword that rejected it.
  4. Need only a syntax check? Use the JSON validator instead.

JSON Schema vs JSON syntax — which one do I need?

Syntax validation (RFC 8259) checks that the JSON parses. JSON Schema validation checks that the parsed value matches a structural contract — the right types in the right places, required fields present, strings matching patterns, numbers within ranges. Most production APIs want both: the JSON validator for the first, this JSON Schema test tool for the second. Our JSON Schema quickstart walks through the keywords that pull their weight on real services.

Supported keywords

JSONYard's validator covers the most common JSON Schema features:

  • Typesstring, number, integer, boolean, null, array, object (and union arrays)
  • Objectsproperties, patternProperties, additionalProperties, required
  • Arraysitems, prefixItems, minItems, maxItems, uniqueItems
  • StringsminLength, maxLength, pattern, format (email, uri, uuid, date, date-time, ipv4)
  • Numbersminimum, maximum, exclusiveMinimum, exclusiveMaximum, multipleOf
  • Genericsenum, const, allOf, anyOf, oneOf, not, local $ref

If you need exotic features (remote $ref, full draft 2020-12 vocabulary, if/then/else), use Ajv in your toolchain — that's what real production validation should use.

Need a syntax check first? Use the JSON Validator, or read the blog post on fixing common JSON parse errors.

FAQ

Which draft does this support?
A useful subset of draft-07 and 2020-12 — the keywords you actually use 95% of the time. We don't (yet) support full draft-2020-12 vocabularies, if/then/else, dynamic refs, or remote refs.
Why are some errors imprecise?
For composition keywords like oneOf we report the overall failure rather than the inner branch errors. This is a tradeoff for code size.
Can I validate JSON against a JSON Schema online without uploading?
Yes — both panes parse and validate locally in JavaScript. Neither your data nor your schema is sent to any server.
Where do I get a JSON Schema for an existing JSON document?
Generators like quicktype or genson can infer a starter schema from sample data. The JSON Schema quickstart covers what to tighten after generation.

Related JSON tools