JSON Schema Validator and Sample Generator

Check JSON against a supported schema subset or generate a sample that passes those same checks.

Inputs stay on your device No sign-up Free to use
How this works

The tool runs in this browser. Your file or text is not uploaded to UseFreeTools. Check this tool's limits for anything it may save on your device.

Privacy details

Inspect input controls

Showing an example. Edit to see your own.

Up to 100,000 UTF-8 bytes, 500 schema nodes and 12 schema levels. Only the listed keyword subset is accepted.

Used in validation mode; up to 1,000,000 UTF-8 bytes.

Processed in your browser. Your inputs stay on this device.

How to use JSON Schema Validator and Sample Generator

  1. Paste a supported JSON schema.
  2. Choose document checking or sample generation and enter the document if needed.
  3. Read findings and review the generated sample before reuse.

Example: JSON Schema Validator and Sample Generator

An object schema requiring a string name; document {"name":"Ada"}.

You add
JSON Schema subset: {"type":"object","properties":{"name":{"type":"string","minLength":1},"age":{"type":"integer","minimum":0}},"required":["name"],"additionalProperties":false} JSON document to validate: {"name":"Ada","age":25} Operation: validate
You get
The document passes the supported keyword subset.

Options

Operation
Validate checks the supplied document. Sample generation creates a candidate and checks it against the same supported constraints before offering it.
Supported schema
Use the declared keyword subset. References, patterns, formats and unknown keywords are refused, rather than accepted with their rules silently omitted.

Supported inputs and limits

A bounded 2020-12-compatible keyword subset, not complete draft conformance. Schema up to 100,000 bytes, 500 nodes and depth 12; document up to 1,000,000 bytes, 20,000 nodes and depth 32. Unknown keywords, references, patterns and formats are refused. Samples are checked again; contradictory or unsupported generation fails.

Where your input is processed

This tool processes your input in this browser. Your text and files are not uploaded to UseFreeTools. Check this tool's limits for anything it may save on your device.

A passing sample is only one allowed case

A generated example does not show every valid document or establish that a complete JSON Schema implementation would accept the schema. Check required fields, additional properties and numeric/string limits against the consumer’s needs. Contradictory constraints can prevent sample generation even when the input text is valid JSON.

Questions about JSON Schema Validator and Sample Generator

Does a result certify full JSON Schema compliance?

No. Only the supported keywords are checked. Unknown keywords are refused.

Are remote references downloaded?

No. References are unsupported and no schema URL is fetched.

Can every valid schema produce a sample?

No. Generation has a bounded search and can refuse contradictory or difficult supported combinations.

Project manager: Tony Hines · Content updated 4 October 2026 · Report a problem