Schema generator and validator

Input format

Output format

Enter something to see the result.

Validate against JSON Schema

Paste a schema, or use the one generated from your data.

Help & info

About this tool

Paste sample data and the tool derives a schema that fits the format: JSON, YAML and TOML give a JSON Schema (draft 2020-12), XML gives an XML Schema (XSD), CSV gives a table schema with column types and constraints. A table shows the structure. Below, paste an existing schema to check the data against it; every problem is listed with its location. JSON Schema accepts drafts 4, 7, 2019-09 and 2020-12, XML accepts XSD and RELAX NG.

Good to know

A schema derived from one example only knows that example: review it and loosen types or remove required properties where your data may differ. With several items in a list, properties missing in some of them become optional.

More tools