Infer TypeScript interfaces and type aliases from a JSON example.
Your JSON is parsed entirely in this browser and is never uploaded.
export interface ApiResponse {
users: ApiResponseUsersItem[];
nextPage: null;
}
export interface ApiResponseUsersItem {
id: number;
name: string;
roles: string[];
profile: ApiResponseUsersItemProfile;
email?: string;
}
export interface ApiResponseUsersItemProfile {
verified: boolean;
bio: null | string;
}3 interfaces · 0 type aliases
Missing keys across objects in the same array become optional. Mixed values become unions, empty arrays use unknown[], nested objects receive named interfaces, and invalid property names are quoted.
Byte / Bit Size Converter
Convert between bytes, kilobytes, megabytes, and more — in both SI and binary units.
XML Formatter & Converter
Format, validate, or minify XML and convert between XML and JSON locally.
CSS Unit Converter
Convert between px, rem, em, vh, and vw with configurable base values.
CSV ↔ JSON Converter
Convert CSV to JSON or JSON arrays to CSV with comma, tab, or semicolon delimiters.