JSON to TypeScript Interface Generator
Paste JSON to generate matching TypeScript types, including nested objects and arrays.
Output Settings
How to use this tool
Paste any JSON object or array into the JSON Input box, and the matching TypeScript appears instantly in the TypeScript Output panel. By default, nested objects become their own named types — each named after the property that held it — or flatten everything into inline type literals with the Nested objects setting. Choose interface or type declarations, mark every field Optional, and pick PascalCase, camelCase, or CONSTANT_CASE for the root type name. Set a custom Root Type Name, then copy the result straight into your project.
Related Tools
Related Blog Posts
Common JSON Errors and How to Fix Them
The handful of syntax mistakes that account for most invalid JSON errors, and how to spot each one quickly.
Read moreBest Free Tools Every Developer Should Bookmark
Five browser-based utilities worth bookmarking for everyday development tasks, and what each one is actually good for.
Read moreJSON vs XML: Which Data Format Should You Use in 2026?
A practical comparison of JSON and XML for APIs, config files, and data exchange — including where each format still wins.
Read more