JSON to TypeScript

Paste a JSON sample on the left and get a TypeScript declaration on the right. Nested objects become named helper types; mixed arrays collapse into unions. Pick interface or type, toggle readonly, rename the root. Pure client-side, no upload.

Style
TypeScript output
type Root = unknown;

Nothing is uploaded. The whole tool runs in this tab.