JSON zu TypeScript Interface Generator
Konvertieren Sie JSON-Objekte sofort in TypeScript-Interfaces oder Type-Aliases. Verarbeitet verschachtelte Objekte, Arrays, Null und gemischte Typen.
Schlüsselwort
Array-Syntax
Anleitung
Konvertieren Sie JSON-Objekte sofort in TypeScript-Interfaces oder Type-Aliases. Verarbeitet verschachtelte Objekte, Arrays, Null und gemischte Typen.
- 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.
Funktionen
- 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