JSON to JSON Schema Converter
Convert JSON data to JSON Schema format. Paste your JSON below to automatically generate a corresponding JSON Schema with proper type definitions and structure.
Input JSON
Ready
Generated JSON Schema
Waiting for input
About JSON Schema
JSON Schema is a vocabulary that allows you to annotate and validate JSON documents. It describes the structure, data types, and constraints of your JSON data.
Example Input JSON:
{
"name": "John Doe",
"age": 30,
"email": "john@example.com",
"active": true,
"hobbies": ["reading", "coding"],
"address": {
"street": "123 Main St",
"city": "New York"
}
}
Generated JSON Schema:
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"name": {"type": "string"},
"age": {"type": "number"},
"email": {"type": "string"},
"active": {"type": "boolean"},
"hobbies": {
"type": "array",
"items": {"type": "string"}
},
"address": {
"type": "object",
"properties": {
"street": {"type": "string"},
"city": {"type": "string"}
}
}
}
}