Tool Kumar tool
JSON Schema generator
Use a representative JSON document to create a draft JSON Schema. The result describes the observed shape and gives you a starting point for validation.
How to use this tool
- Paste an example document.
- Choose JSON Schema in the convert view.
- Review the inferred properties and save the schema.
Worked example
The schema is generated from the sample object, including nested profile and tags.
Input
{"name":"Ada","age":36,"active":true,"tags":["json","tools"],"profile":{"city":"London"}}Output
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Root",
"type": "object",
"properties": {
"name": {
"type": "string"
},
"age": {
"type": "integer"
},
"active": {
"type": "boolean"
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"profile": {
"$ref": "#/$defs/Profile"
}
},
"required": ["name", "age", "active", "tags", "profile"],
"$defs": {
"Profile": {
"type": "object",
"properties": {
"city": {
"type": "string"
}
},
"required": ["city"]
}
}
}
Options and edge cases
- Nested objects and arrays are represented recursively.
- The generator describes observed types. Add required fields and constraints for your API contract.
- Use the validator page to check JSON syntax before generating.
Private by default
Your document stays in this browser. Tool Kumar parses, converts and creates downloads on your device, with no account or upload step.
JSON Schema generator questions
- Does the generator mark every property required?
- It describes the observed properties. Review required fields for your API contract before publishing the schema.
- Which draft does it use?
- The output declares JSON Schema Draft 2020-12 with standard type and properties keywords.
- Can it infer array item shapes?
- Yes. Arrays of objects produce an items schema based on the observed object shape.