JSON Schema Validator
Validate a JSON document against a JSON Schema -- type/required/enum/const, min/max/exclusive/multipleOf, length/pattern/format, array constraints, additionalProperties, local $ref, and oneOf/anyOf/allOf/not composition -- with batch mode and a sample-data generator.
What this tool does
Paste a JSON document and a JSON Schema, and it checks the document against every rule the schema states, reporting exactly which ones failed and why — not just whether the document passed or not.
What is covered
- Values —
type,const,enum. - Numbers —
minimum,maximum,exclusiveMinimum,exclusiveMaximum,multipleOf. - Strings —
minLength,maxLength,pattern, andformat(email, UUID, date-time, date, IPv4, IPv6, URI). - Objects and arrays —
required,properties,additionalProperties,minProperties/maxProperties,minItems/maxItems,uniqueItems. - Composition —
allOf,oneOf,anyOf,not, and local$refpointing elsewhere in the same schema document.
This is a broad, practical subset of JSON Schema rather than a complete implementation of every keyword across every draft — for full spec compliance across all draft versions, a dedicated implementation like Newtonsoft's validator or Hyperjump is the more rigorous choice.
Validating many documents at once
When the document is an array, batch mode validates each item against the same schema individually and reports how many passed out of the total, with the specific issues for whichever ones failed — useful for checking a whole batch of records against one schema in a single pass instead of one document at a time.
Generating a sample from a schema
Working the other direction, a schema alone can generate a
matching sample document — required properties filled in with
realistic placeholder values for each detected format (an actual
email-shaped string for format: email, and so on).
Useful for a quick example to hand someone, or a starting point to
edit toward a specific test case.
Privacy
Both validation and sample generation happen in your browser. Nothing you paste, drop, or load from a file is sent to a server.