← Pencilbox
Shape
json → type definitions
build v6.0
Shape reads a sample of JSON and writes the type definitions to match — TypeScript interfaces, Python dataclasses, or Go structs — so you don't hand-write them. Nothing is uploaded.
Sample JSON
Language
Root name
Output

Types are inferred from one example, so optional fields and unions across records aren't detected — treat the output as a starting point. Nested objects become their own named types. Everything runs on your device.