JSON to TypeScript インターフェース生成ツール
JSONオブジェクトをTypeScriptのinterfaceまたはtype aliasに即座に変換します。ネストされたオブジェクト、配列、null、混合型をすべて処理します。
キーワード
配列構文
使い方
JSONオブジェクトをTypeScriptのinterfaceまたはtype aliasに即座に変換します。ネストされたオブジェクト、配列、null、混合型をすべて処理します。
- 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.
主な機能
- 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