AI TypeScript Interface Generator
Generate TypeScript interfaces from JSON samples. Pure-JS recursive type inference — nested objects extracted into separate interfaces, optional & nullable handling, union types, enum (string-literal) detection, multi-sample merging for accurate optional fields, runtime type guards, and JSDoc from keys. Configurable root name, interface vs type, export, readonly, optional style, and array style. Optional BYO-key LLM. 100% client-side, nothing uploaded.
Generate TypeScript interfaces from JSON samples. Pure-JS recursive type inference — nested objects extracted into separate interfaces, optional & nullable handling, union types, enum (string-literal) detection, multi-sample merging for accurate optional fields, runtime type guards, and JSDoc from keys. Configurable root name, interface vs type, export, readonly, optional style, and array style. Optional BYO-key LLM. 100% client-side, nothing uploaded. Everything runs locally in your browser — your data never leaves your device.
How to use
- Enter your input in the tool above.
- Adjust any options to your preference.
- Use the Copy or Download buttons to save the result.
- Everything happens locally — your data never leaves your browser.