Validate JSON against a schema online
Put the schema in the left field and the JSON data in the right field, then select Validate. The result reports invalid JSON separately from schema validation errors. Error paths such as root.age show which value failed a supported rule.
For example, a schema with {"type":"object","required":["name"],"properties":{"name":{"type":"string"}}} accepts {"name":"Alice"}. An empty object fails because the required property is missing. A numeric name fails the string type check.
Which JSON Schema keywords are supported?
This checker implements a subset of draft-07 validation keywords. It checks types, enum values, required properties, nested properties, numeric bounds, string lengths and patterns, array item schemas, and minimum or maximum array lengths. It also rejects extra object fields when additionalProperties is false and properties is present.
It does not resolve $ref or evaluate allOf, anyOf, oneOf, conditionals, or format. Unsupported keywords do not affect the result. A passing result only covers the implemented checks. Consult the draft-07 specification for the full vocabulary. Use the JSON formatter to inspect the document's structure.
Common questions
- Does this validate every draft-07 schema?
- No. It supports a subset of draft-07 keywords and does not validate the schema against a meta-schema. Unsupported keywords are ignored, so a passing result is not proof of full draft-07 validity.
- Is JSON syntax validation the same as schema validation?
- No. Syntax validation checks whether the text is valid JSON. Schema validation checks whether the parsed values satisfy rules such as types, required fields, and numeric bounds.