Generador de interfaces JSON a TypeScript
Convierte objetos JSON en interfaces o aliases de tipo TypeScript al instante. Maneja objetos anidados, arrays, null y tipos mixtos.
Palabra clave
Sintaxis de array
Cómo usar
Convierte objetos JSON en interfaces o aliases de tipo TypeScript al instante. Maneja objetos anidados, arrays, null y tipos mixtos.
- 1Paste your JSON object into the left panel, or click 'Load Sample' to try a pre-built example.
- 2Set the root interface name (default: Root), choose interface vs type, and adjust array syntax and optional field options.
- 3The right panel instantly shows the generated TypeScript interfaces as you type.
- 4Click 'Copy' to copy the complete TypeScript output to your clipboard.
Características
- Generates separate named interfaces for all nested objects
- Toggle between interface and type alias output
- Choose T[] or Array<T> array syntax
- Mark all fields as optional with a single toggle
- Handles strings, numbers, booleans, null, arrays, and mixed-type unions
- Real-time generation — no button clicks needed
- 100% browser-based, your JSON never leaves your device