Free Online JSON Schema Generator and Validator, Draft 07
Paste a JSON sample and get a draft-07 schema inferred from it, with control over required properties, enums, format hints and mixed arrays. Or paste a schema and a document and get every failure listed with its JSON pointer path, the rule that failed and the value that failed it.
Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.
Which Keywords This Validator Checks
The whole list, both halves of it, so a clean result is not mistaken for more than it is.
Checked: type (including integer), required,
properties, additionalProperties (boolean or schema),
items (a single schema or a tuple), minItems,
maxItems, uniqueItems, enum, const,
minimum, maximum, exclusiveMinimum,
exclusiveMaximum, multipleOf, minLength,
maxLength, pattern, format (as advice),
allOf, anyOf, oneOf, not, and
$ref pointing inside the same document.
Not checked: patternProperties, propertyNames,
dependencies, additionalItems, contains,
if / then / else, minProperties,
maxProperties, contentEncoding, contentMediaType,
$ref to another file or a URL, $id based resolution, and
everything added after draft-07 such as prefixItems and the
unevaluated* keywords. If any of these appear in your schema you are told
above the result, so you know the clean pass is only as wide as the list above.
How to Generate and Check a JSON Schema
A few steps, and nothing is uploaded.
What to Know About JSON Schema
Including exactly which keywords are checked here, and which are not.
#/definitions/customer is resolved in the schema you pasted. A reference to https://example.com/schema.json, or to another file, stops with a message saying so, because this page makes no network requests at all. Paste the referenced schema into the same document under definitions and point at it locally.
Key Features & Capabilities
What this tool does, and what it deliberately does not.
About the JSON Schema Tool
JSON Schema is how you write down what a JSON document is allowed to look like, and it earns its keep the moment more than one system exchanges data. The awkward part is starting: writing a schema by hand from an example is tedious, and the first schema anyone writes is usually wrong in a way that only shows up when a real document arrives.
This page covers both ends of that loop. Generate takes a sample document and infers a draft-07 schema, letting you decide whether every property is required, whether short repeated string sets become enums, whether format hints are added and how an array of mixed types is handled. Validate takes a schema and a document and lists every failure with its JSON pointer path, the rule that failed and the value that failed it, which is far more useful than a single boolean.
The validator here is written from scratch rather than pulled from a library, so the honest thing to do is say exactly how far it goes. It covers the core draft-07 keywords and local $ref, and it names the keywords it does not implement, both in the notes and in a warning when your schema actually uses one. Remote references are refused rather than fetched, because nothing on this page touches the network, and a tool that quietly downloaded your schema would break that promise.
Frequently Asked Questions
Drafts, format, $ref, required properties and what a clean result means.
Every Other JSON Tool
10 more tools in this set. All free, all in your browser.