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
- JSON formatter – Format and validate JSON, YAML, TOML, XML, CSV
- Format converter – JSON, YAML, TOML, XML and CSV into each other
- Base64 – Encode and decode text
- URL encode/decode – Encode, decode and split URLs
- Hash generator – MD5, SHA-1, SHA-256 and more for text or files
- UUID generator – Random or time-ordered UUIDs
- JWT decoder – Read a token's header and payload
- Unix timestamp – Unix time to date and back
- Color converter – HEX, RGB, HSL and contrast check