JSON Schema Validator
Validate JSON against a Draft-07 schema — offline, fast and precise.
What is JSON Schema Validator?
This validator checks JSON data against a JSON Schema Draft-07 contract. Unlike a syntax formatter, it can reject a correctly written payload because a required field is missing, a value has the wrong type or a number is outside the permitted range. Validation runs locally; input values are not sent to an API.
How to use JSON Schema Validator
Paste a schema into JSON Schema and the payload into JSON Data, then choose Validate. Try this schema: {"type": "object", "properties": {"age": {"type": "integer", "minimum": 18}}, "required": ["age"], "additionalProperties": false}. It requires one integer age of at least 18 and rejects properties that are not listed. You can omit a $schema declaration; when supplied, this tool accepts the Draft-07 URI.
When is JSON Schema Validator useful?
Use valid and invalid fixtures together before changing an API contract. The tool reports the first failing rule and its instance path, not a full error list. A schema error means the contract itself could not be compiled; a data error means the supplied JSON did not satisfy a successfully compiled schema.
Example
With that schema, {"age": 21} passes. {"age": "21"} fails at /age because a string is not an integer. {"age": 17} fails the minimum. {} fails the required-field check, and {"age": 21, "role": "admin"} fails because of the extra role property. Change one case at a time to see which rule applies.
Practical notes
Draft-07, standard formats and local references are supported. Other drafts, unknown keywords or formats, asynchronous validation and unresolved external references are rejected. Values are not coerced, defaults are not inserted and extra properties are not removed. Passing a schema does not prove database uniqueness, permissions or other application business rules.