JSON to TypeScript
Paste a JSON object and instantly get strongly-typed TypeScript interfaces. Customise the root type name, choose between interface or type alias, mark nullable fields as optional, and toggle inline vs named nested types.
100% client-side · no data leaves your browser
TypeScript interfaces will appear here as you type.
How to generate TypeScript from JSON
Turn a JSON sample into TypeScript interfaces in one click.
- 1
Paste your JSON
Drop any JSON object or array into the input area on the left.
- 2
Customise the output
Set a root type name, pick interface or type alias, and toggle optional/inline options to match your codebase style.
- 3
Copy the TypeScript
The generated interfaces appear on the right — click Copy to paste them straight into your project.