JSON to TypeScript Interface

Infer TypeScript interfaces and type aliases from JSON sample data locally in the browser.

No upload

TypeScript settings

Input

Strict JSON is analyzed locally in the browser. Inferred types are a snapshot of the sample data.

A missing property is not the same as a present property with null.

Output

Paste valid JSON to generate TypeScript types.

Paste valid JSON to generate TypeScript types.