JSON to TypeScript
Generate TypeScript interfaces or type aliases from any JSON sample. Free, private, runs in your browser.
Type alias
readonly
unknown → any
TypeScript output
export interface Root {
id: number
name: string
tags: string[]
profile: Profile
}
export interface Profile {
age: number
vip: boolean
lastLogin: null
}