JSON to TypeScript Converter Online — Generate TS Interfaces
Convert any JSON object or array into strongly-typed TypeScript interfaces. Supports nested objects, optional fields, and array unions. Runs 100% locally in your browser.
Open JSON to TypeScript Converter →How to convert JSON to TypeScript
- Paste your JSON document into the workbench.
- Open the Types panel from the toolbar or press ⌘ K.
- Set root interface name (default:
Root). - Copy generated TypeScript code or download the
.tsfile.