Free tools
English
JSON Schema generator
Infer a Draft 2020-12 JSON Schema draft from a sample. Use it in your browser, with no account required.
No account needed
Loading tool…
How to use
- 1Enter your values and choose the options.
- 2Run the tool and review the result.
- 3Copy the result or save it as a file.
Good to know
This is inferred from a sample. Adjust required keys and allowed types for other data.
Ads may process connection data. Personalization follows your privacy choices. Privacy (English)
Worked input and output example
These results come from this tool’s actual engine using the sample values below, not your personal input or saved work. Load the example in the tool to inspect the same inputs.
Example input
| Field | Value |
|---|---|
| JSON | {"name":"Alice","score":90,"active":true} |
Example result
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"name": {
"type": "string"
},
"score": {
"type": "integer"
},
"active": {
"type": "boolean"
}
},
"required": [
"name",
"score",
"active"
]
}