Paste sample JSON and get a draft-07 schema with optional required fields and examples. Shareable settings, copy-ready output.
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"email": {
"type": "string"
},
"active": {
"type": "boolean"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"id",
"name",
"email",
"active",
"tags"
]
}All processing runs in your browser.
More free utilities you might find useful
Quick answers to common questions
Draft-07 with $schema: http://json-schema.org/draft-07/schema# included in output.
From actual values: string, number, integer, boolean, null, array, object.
Yes. The "mark all required" toggle (on by default) adds every property to the required array.
Yes. Enable "include examples" to add example values from your sample JSON.
Good starting point. Review and refine schemas for strict validation.
Your data is processed entirely in your browser. Nothing is sent to any server.