JSON to TypeScript
Generate TypeScript interfaces from JSON.
How to use this tool
Paste a JSON example and generate TypeScript interfaces for its structure. Choose a root name, then review and copy the definitions into your project.
Understanding the result
Types are inferred from the supplied sample, not from every possible API response. Review optional fields, mixed arrays and null values; generated types do not validate runtime data.
Processing and privacy
Calculations, file conversion and text processing run in your browser. Your input is not uploaded to a conversion server. Keep source data and results separately. Some tools retain working state on this device so you can continue later.