JSON to TypeScript Type Generator

JSON input

JSON to TypeScript Type Generator

Paste sample JSON and get TypeScript interfaces with nested objects, arrays, and union types inferred automatically.

Features

  • Type inference

    Infers string, number, boolean, null from values.

  • Nested structures

    Recursive interfaces; array element types merged.

  • Custom root name

    Rename the root interface (default Root).

FAQ

How accurate are types?
Based on sample data. Mixed shapes produce union types—use representative samples.
Can I copy the output?
Yes. One-click copy of generated TypeScript.