Convert JSON to TypeScript interfaces

Paste a JSON sample and get matching TypeScript interfaces instantly. Nested objects become their own interfaces, arrays are typed by their element, and optional or mixed fields are inferred from your data — so you get accurate types without writing them by hand.

Everything runs in your browser: paste an API response, copy the generated interfaces straight into your codebase, and move on. There's no upload and no account.

Need a different language? See all JSON-to-code converters.

Other languages

JSON to TypeScript Converter — frequently asked questions

How do I generate TypeScript types from JSON?
Paste your JSON on the left and the TypeScript interfaces appear on the right instantly. Set the root type name, then copy the result into your project.
Does it handle nested objects and arrays?
Yes. Nested objects are extracted into their own named interfaces and arrays are typed by their element type. Types are inferred from the whole sample, so richer JSON produces more accurate interfaces.
Is my JSON uploaded anywhere?
No. Parsing and code generation run entirely in your browser with JavaScript — your JSON never leaves your device, so it's safe to paste API responses and other sensitive payloads. It's free with no sign-up; a single unobtrusive ad slot covers hosting.

Spotted a bug or have a suggestion?

Found something broken, have an idea, or just want to say thanks about any of our tools? Every message reaches a real person.