JSON to TypeScript

Generate TypeScript interfaces or type aliases from JSON samples, with nested objects, optional properties and union types.

Types are inferred from this sample. Object roots support interface; other roots use type aliases. Empty arrays infer unknown[]. Review before use.

JSON sample

TypeScript output

Generated TypeScript will appear here
Local processing · No uploadsPaste content to get started