JSON to TypeScript
Paste JSON and get typed TypeScript interfaces — nested objects become their own interfaces and arrays are unified to T[]. Generated entirely in your browser.
How it works
Your JSON is parsed locally and walked to infer a TypeScript interface for every object it contains — nested objects become their own named interfaces, arrays become T[] (unifying element types), and primitives map to string, number, boolean or null. Empty arrays become unknown[]. Nothing is uploaded; it all runs in your browser.