JSON to TypeScript
Generate TypeScript interfaces from a JSON sample.
Runs in your browser · no upload
JSON to TypeScript
Paste a JSON sample to generate TypeScript interfaces. Keys missing from some array items become optional.
Questions
Is my JSON uploaded?
No. Everything runs in your browser, so your JSON never leaves your device.
How are optional fields detected?
When an array contains objects, keys that are missing from some of them are marked optional with ?.
Will the types be perfect?
They reflect your sample. Check unions and nullable fields against your real data or API documentation.