format · validate · convert · runs locally

JSON to TypeScript

Paste JSON and get TypeScript interfaces inferred from it, including nested types and arrays. Copy or download the .ts.

Frequently asked questions

Does it handle nested objects?

Yes — each nested object becomes its own named interface, and arrays become T[].

What about optional fields?

This infers from one sample, so every present key is required. Merge multiple samples if fields are optional.