Paste a JSON sample and get matching TypeScript interfaces instantly. Nested objects become their own interfaces, arrays are typed from every element, fields missing from some records are optional, and mixed values become unions — the generated code is checked by compiling it in strict mode.
Choose interface or type, readonly fields, how optionals are written and unknown or any, and the choices are remembered. Everything runs in your browser: paste an API response, copy the interfaces into your codebase, and move on.
Need a different language? See all JSON-to-code converters.
Found something broken, have an idea, or just want to say thanks about any of our tools? Every message reaches a real person.