How to use this tool
- Paste JSON, upload a local file, or load a CORS-enabled public URL.
- Paste a representative sample and run Generate JSON Schema.
- Review the result, then copy it or download it with the correct file type.
Generate object properties, required keys, primitive types, and array item candidates.
Infer a deterministic JSON Schema Draft 2020-12 starting point from one valid sample.
Generate object properties, required keys, primitive types, and array item candidates.
{
"users": [
{"id": 1, "name": "Ada"},
{"id": 2, "active": true}
],
"values": [1, "two", null, true],
"metadata": {
"createdAt": "2026-08-18T08:00:00Z",
"page": 1
}
}{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"metadata": {
"type": "object",
"properties": {
"createdAt": {
"type": "string"
},
"page": {
"type": "integer"
}
},
"required": [
"createdAt",
"page"
]
},
"users": {
"type": "array",
"items": {
"type": "object",
"properties": {
"active": {
"type": "boolean"
},
"id": {
"type": "integer"
},
"name": {
"type": "string"
}
},
"required": [
"id"
]
}
},
"values": {
"type": "array",
"items": {
"anyOf": [
{
"type": "boolean"
},
{
"type": "integer"
},
{
"type": "null"
},
{
"type": "string"
}
]
}
}
},
"required": [
"metadata",
"users",
"values"
]
}No. The transformation runs in your browser. URL import contacts only the address you explicitly enter.
The editor marks the likely location and keeps stale output out of the result pane.
It emits a starter Draft 2020-12 schema inferred only from values present in the sample.
One sample cannot reveal optional fields, formats, numeric bounds, string patterns, or business rules; review the schema.