No uploads · runs in browser
JSON to TypeScript
Infer TypeScript interfaces from a JSON payload, ready to paste into a types file.
Favorite it to find it fast on home
When to use it
Generate TypeScript interfaces from an API response
Pull nested objects out into their own interfaces
Infer union types from a mixed array
How to use it
1Step 1Paste your text into JSON input to start
2Step 2Press Convert and the result appears below
3Step 3Use the copy button to take the result anywhere
If the result looks off
The result looks cut off
Use the copy button to get the full result.
My input disappeared
It is saved on this device. Clearing browser storage removes it too.
Frequently asked questions
Does it mark optional fields?
Keys missing from some array items are inferred as union types. Adjust required/optional by hand after generating.
Are optional fields marked?
Keys missing from some array items become union types. Adjust required and optional by hand after generating.