JSON to TypeScript
Paste a JSON object or array and generate TypeScript interface definitions. Nested objects become their own interfaces.
All processing happens in your browser — nothing is sent to our servers
How Types Are Inferred
Primitives map directly to string, number, and boolean. Nested objects become separate named interfaces, arrays become element-type unions like string[], and any field whose sample value is null is marked optional. Because types are inferred from one sample, review unions and optional fields against your real data shape.