Generate TypeScript interfaces from any JSON object instantly in your browser.
This tool analyses a JSON value and generates TypeScript interface declarations with accurate types. Nested objects produce additional named interfaces. Arrays are typed as T[] where T is inferred from the first element.
string → string number → number boolean → boolean
null / undefined → null (or unknown with the optional flag)
object → named interface (child interfaces are appended below)
array of objects → ChildType[] with a separate interface generated
array of primitives → string[] / number[] / etc.
mixed array → (string | number | ...)[]
empty array → unknown[]
?: type | null.address becomes Address).