JSON Schema Validator & Generator Online
- This tool runs entirely in your browser. Nothing you enter or upload is sent to a server.
Schema
Data
About this tool
A JSON Schema describes what valid JSON looks like: which fields are required, what type each has, how long a string may be, which values are allowed. Paste a schema on the left and your data on the right, and the tool lists every place where the data breaks the rules, each with its path in the document (for example /items/2/price), the keyword that failed, and a plain explanation.
It checks the keywords most schemas use: type, enum, const, properties, required, additionalProperties, patternProperties, items and prefixItems, minItems, maxItems, uniqueItems, contains, minimum, maximum, exclusiveMinimum, exclusiveMaximum, multipleOf, minLength, maxLength, pattern, format (email, uri, uuid, date, date-time, time and ipv4), allOf, anyOf, oneOf, not, if/then/else, dependentRequired and local $ref pointers into $defs or definitions. Anything it does not check is listed under the result, so a pass never silently skips a rule.
No schema yet? Paste a sample document and press Generate from data. It writes a draft 2020-12 schema with the types, the required keys, array item shapes (keys missing from some items become optional) and common string formats such as dates, emails and UUIDs. Treat it as a starting point: tighten it with limits, patterns and enums that only you know.
Everything runs in your browser, with no code generation or remote lookups, so $ref pointers to other files or URLs are not followed. Numbers are read with the browser’s JSON parser, so integers beyond about 15 digits lose precision before they are checked.
Frequently asked questions
Which JSON Schema versions does it support?
The common keywords shared by draft-07 and the 2019-09 and 2020-12 drafts. Keywords it does not check are shown under the result so you know what was skipped.
Does it follow $ref to other files or URLs?
No. Only references that start with #, such as #/$defs/address, are resolved. This keeps the tool offline and private. Bundle your schema into one file first.
How do I read the path in each problem?
It is a JSON Pointer to the failing value: /items/2/price means the price of the third item. An empty path means the whole document. A ~1 stands for a slash inside a key and ~0 for a tilde.
Is the generated schema ready to use?
It is a good starting point, not a finished contract. It marks every key found in the sample as required and infers types from one example, so add limits, enums and optional fields that reflect your real data.
Is the format keyword enforced?
For the formats it knows: email, uri, url, uuid, date, date-time, time, ipv4 and a loose ipv6 check. Unknown formats are treated as annotations and do not fail.
Is my schema or data uploaded anywhere?
No. The conversion runs in your browser and nothing is sent to a server, so configuration files, API payloads and customer data stay on your device.