All tools
JSON to types
Data
Generate TypeScript interfaces, Go structs, Python TypedDicts, or Rust serde structs from an example JSON document. All in your browser.
Target
JSON
Types
interface Root {
id: number
name: string
active: boolean
roles: string[]
profile: Profile
}
interface Profile {
city: string
followers: number
}Types are inferred from one example document — nested objects become named types, arrays use their first element. Optional fields and union types aren't inferred from a single sample; treat the output as a starting point. Runs entirely in your browser.