JSON to TypeScript
Paste sample JSON and get the matching TypeScript interfaces — no more typing out every field by hand when working with API data.
How to generate TypeScript interfaces from JSON
- Paste your sample JSON on the left and the TypeScript declarations appear on the right.
- Change the name of the outermost type in the "Root type name" box if you like, for example ApiResponse.
- Use the copy button and paste it into your code.
Frequently asked questions
More JSON tools
JSON FormatterFormat, minify and validate JSONJSON RepairAutomatically fix broken JSONJSON CompareFind the differences between two JSON documentsJSON ViewerView JSON as a tree, collapse or expand any branchJSON to YAMLConvert between JSON and YAMLJSON SorterSort JSON fields and arrays from A to ZJSON to CSVConvert between JSON and CSV tablesJSON Escape / UnescapeTurn text into a valid JSON string and backJSONPath QueryExtract data from JSON with a JSONPath expression