JSON Schema Validator — Validate JSON Online

Paste a JSON Schema and a JSON document and validate the document against it — every violation is reported with its exact path and the rule it broke.

About this tool

What This Validator Checks

The instance is checked against every applicable keyword in your schema, recursively through nested objects and arrays: type, required, properties, additionalProperties, items, enum, const, pattern, numeric bounds (minimum, maximum, exclusiveMinimum, exclusiveMaximum, multipleOf), string bounds (minLength, maxLength), array bounds (minItems, maxItems, uniqueItems), object bounds (minProperties, maxProperties), and composition keywords (allOf, anyOf, oneOf, not). Each failure is reported with the exact JSON Pointer path where it occurred.

FAQ

Frequently Asked Questions

Which JSON Schema draft does this support?

Core Draft-07 style keywords: type, required, properties, additionalProperties, items, enum, const, pattern, minimum/maximum, exclusiveMinimum/exclusiveMaximum, multipleOf, minLength/maxLength, minItems/maxItems, uniqueItems, minProperties/maxProperties, and allOf/anyOf/oneOf/not.

Is my JSON or schema uploaded anywhere?

No — validation runs entirely in your browser with JavaScript; nothing is sent to a server.

What does each error mean?

Every error lists the exact path in your JSON where the schema rule was broken and which keyword it failed, e.g. /user/age failing minimum means the value at that path was below the schema's minimum.

Related Tools

More Dev Tools

JSON Diff CheckerJSONPath TesterJSON to TypeScriptCSV ⇄ JSONYAML ⇄ JSONRegex Tester

Learn how schemas validate types and required fields in the JSON Schema Validator Guide.