JSON to TypeScript interface generator
Paste sample JSON to get TypeScript interfaces or types, including nested objects and arrays.
About JSON to TypeScript
Paste sample JSON from an API. Every object gets an interface named after its field (user → User). When array items don't all have the same fields, missing ones become optional (?:) and nulls become T | null.
Types are inferred from your sample only, so review them before use.
FAQ
Can I get type aliases instead?
Yes — choose “type”.
More tools here
JSON formatter Base64 encode / decode Image ↔ Base64 URL encode / decode HTML entities Hash generator UUID generator JWT decoder Regex tester Cron generator Unix timestamp converter Code formatter Markdown preview Text ↔ binary Color converter Contrast checker CSS gradient JSON to CSV CSV to JSON YAML ↔ JSON AES encryption TOTP generator Password strength checker CSS box shadow CSS border radius Tailwind colors Color palette generator Aspect ratio calculator Chmod calculator