Skip to main content
WizTools123
Free Online Tools

Tool Categories


JSON Tools New Tool

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.

Free Forever Nothing Uploaded Draft-07 Schemas Pointer Path Errors
Free Online JSON Schema Generator and Validator, Draft 07
Share this tool
JSON Schema Generator & Validator Everything happens in this tab. Nothing you paste is sent anywhere.
Your JSON
Schema or report
Mode
Inferring
Checking

Done.

0 properties 0 levels deep 0 format hints 0 enums

0 failures 0 checks made

Buy Us A Coffee

Enjoying WizTools123? Help keep our server infrastructure 100% free and open for everyone.

Buy Us A Coffee

How to Use JSON Schema Generator and Validator

Step by step, start to finish.

1
Choose the mode

Generate infers a schema from a sample document. Validate checks a document against a schema you paste in.

2
Paste the JSON

The sample, or the document to check. In Validate, the schema goes in the box under the options.

3
Tune it

Generating: required properties, enums, format hints and how mixed arrays are handled. Validating: whether format is checked too.

4
Read the result

A schema you can copy, or a table of failures with the JSON pointer path, the rule and the offending value.

Key Features

What this tool does, and what it does not do.

Schema from a sample

A draft-07 schema inferred from real JSON, with the choices in your hands.

Failures with a path

Each one carries a JSON pointer, the rule that failed and the value.

Enums and format hints

Repeated short strings become an enum; dates, emails and uuids are spotted.

Composition keywords

allOf, anyOf, oneOf and not, plus $ref inside the same document.

Keyword coverage named

The checked keywords are listed on the page, and a warning names any other keyword your schema uses.

Nothing uploaded

References resolve inside your schema and no document leaves your browser.

About JSON Schema Generator and Validator

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 yes or no.

Which keywords does the validator check?

The validator is written from scratch and checks the core of draft-07: type, required, properties, additionalProperties, items, minItems, maxItems, uniqueItems, enum, const, the four number bounds, multipleOf, minLength, maxLength, pattern, format, the composition keywords allOf, anyOf, oneOf and not, and local $ref. The full list sits in the notes on the page. If your schema uses a keyword outside it, such as patternProperties or if/then/else, a warning above the result names that keyword, so you always know which rules a clean result covers.

How are formats handled?

In draft-07, format is an annotation, and validators are free to treat it as advice. Here it is checked when you switch Check format on and reported as advisory, covering date-time, date, time, email, uri, uuid, ipv4 and hostname. On the generating side, Add format hints recognises uuids, dates, times, emails, IPv4 addresses and URIs in your sample and writes the matching format into the schema.

Where do references resolve?

Every check runs in your browser and the page makes no network requests. A pointer such as #/definitions/address resolves inside the schema you pasted, and a reference to a URL or another file gets a clear message instead of a download. To validate against a schema split across files, paste the referenced parts under definitions and point at them locally.

A generated schema describes the sample you gave it, so treat it as a strong first draft: run a few more real documents through Validate mode, adjust the required list, and it is ready to share.

Frequently Asked Questions

Common questions about this tool.

Draft-07, which is still the most widely supported version and what most tooling expects. Generated schemas carry the draft-07 $schema line. A schema written for draft 2019-09 or 2020-12 is read through its draft-07 keywords, and if it uses newer ones such as prefixItems or the unevaluated keywords, a warning names them so you know exactly which rules the result covers.

Look at the warning above the result first. If your schema uses a keyword outside the draft-07 core this page checks, such as patternProperties, if/then/else or dependencies, it is named there, and a full validator will enforce it. The other common reason is format: it is an annotation in draft-07, so validators disagree about whether to enforce it, and this one reports it as advice.

It resolves local pointers such as #/definitions/address, and it keeps all of its work in your browser, so a reference to a URL or another file gets a clear message rather than a download. To validate against a schema split across files, paste the referenced parts into a definitions block in the same document and point at them locally. Nothing is fetched and nothing leaves the page.

Because a single sample shows what was present, and requiring all of it is the stricter starting point, which is easier to relax than to tighten. Turn off Require every property to get a schema with no required list at all, then add back the fields you know must always be there.

Only inside arrays, and only from repeated values. If every item in an array is a string, the number of distinct values is at or below the limit you set, and at least one value repeats, those values become an enum. A list of unique strings is left as a plain string type, because a set of values that never repeats is data rather than a closed vocabulary.

More JSON Tools

Other tools from the same hub, free and in your browser.

All JSON Tools

Feedback

No feedback on this tool yet. Yours would be the first.