All tools
JSON to TypeScript
ConversionPaste any JSON payload and get clean, ready-to-use TypeScript types instantly.
input.json341 chars
types.ts
export type Root = {
id: number;
name: string;
active: boolean;
roles: string[];
profile: {
email: string;
website: null;
social: {
github: string;
};
};
projects: {
title: string;
stars: number;
tags: string[];
}[];
};
Types inferred locally. Nested objects are inlined; arrays are detected automatically.