How to use the JSON Schema Generator
- Paste a sample JSON object, or an array of examples.
- Choose whether every field is required and whether to detect formats.
- Copy the schema and refine it.
What does this tool do?
JSON Schema validates API requests and responses, config files and form data, and powers editor autocompletion. Inferring it from a real example saves typing; with an array of examples, fields that are missing from some items are left optional and number types are widened where needed.
Everything runs in your browser — nothing you paste is uploaded.
Why use it?
- Draft 2020-12.
- Detects common formats.
- Merges multiple examples.
Privacy
Everything you type is processed in your browser. Nothing you enter is sent to our servers or stored by us. There's no account to create and nothing to install.
Last reviewed by the M2Toolkit team.