JSON to TypeScript

Generate TypeScript interfaces from JSON data.

Root name:
Export:On
JSON Input
TypeScript Output
TypeScript interfaces will appear here...
About JSON to TypeScript

Convert JSON data into TypeScript interfaces instantly. Paste any JSON object or array and get clean, properly typed interfaces with support for nested objects, arrays, optional fields, and mixed types.

The converter detects value types automatically: strings, numbers, booleans, null (marked as optional), nested objects (generates separate interfaces), and arrays (detects element types, uses union for mixed arrays). Interface names are generated in PascalCase based on key names.

All processing happens locally in your browser — your data never leaves your device.