Free JSON to type converter. Paste a JSON document and generate TypeScript interfaces, Zod schemas, Python Pydantic models or dataclasses, and Go structs. Optional fields are detected across array items, nulls become nullable, and nested objects get their own named types.
1Paste your JSONDrop a JSON document into the editor, upload a .json file, or start from the sample.
2Pick the targetsToggle TypeScript, Zod, Pydantic, dataclass, and Go. Set the root type name.
3Copy the outputEach target gets its own tab with copy and download buttons.
FAQ
Questions people ask
TypeScriptZodMore
Upload
JSON
JSON documentjson
1
2
3
4
5
6
7
8
9
10
11
12
13
{
"id": 42,
"name": "Ada Lovelace",
"email": null,
"verified": true,
"score": 9.5,
"tags": ["analytical-engine", "mathematics"],
"address": {
"city": "London",
"zip": "W1A"
},
"notes": []
}
TypeScript
Zod
Pydantic
Dataclass
Go
TypeScript
Heads up
Empty array inferred as unknown[] — fill it in for a precise type.