import BaseLayout from '@versal/ui/BaseLayout'; const title = 'JSON to TypeScript Interface'; const description = 'Convert JSON data into clean TypeScript interfaces. Includes nested types, optional fields, arrays, and union types. Runs entirely in your browser.'

{title}

{description}

Input JSON

How it works

Type mapping rules

JSON valueTypeScript type
42, 3.14number
"hello"string
true / falseboolean
nullnull
[1, 2, 3]number[]
[{...}, {...}] (array of objects)NestedType[]
{"a": 1}NestedObject { a: number }