JSON to TypeScript

Paste any JSON and instantly get a TypeScript interface or type definition. Infers optional fields from arrays, handles nested objects and arrays, and generates clean idiomatic TypeScript.

Ctrl+Enter to run  |  Ctrl+K to switch tools  |  Recent button shows input history

Repeating this work? Turn this kind of browser utility into an API batch, MCP prompt, extension workflow, or shared team recipe.

Buy Pro Browse tool packs

FAQ

Does it handle arrays of mixed types?

It generates a union type for the array element type. If all objects share the same shape, you get a clean single interface.

How are keys with special characters handled?

Keys that aren't valid TypeScript identifiers are wrapped in quotes in the interface definition.