JSON to TypeScript
Paste any JSON and get clean TypeScript interfaces — optional readonly, optional fields and array merging.
- Runs in your browser
- No upload on server
- Free, forever
- Paste JSON
- Name your type
- Copy the interfaces
TypeScript output
export interface Root {
id: number;
name: string;
tags: string[];
owner: Owner;
}
export interface Owner {
email: string;
}How this works — and why it's private
- The JSON is parsed in your browser and walked recursively to infer types. Nothing is sent anywhere.
- Arrays of objects get a single merged interface — every key marked optional unless it's in every item.
- Switch on readonly for immutable types or paste API responses for instant DTOs.
Rate JSON to TypeScript
One tap. Anonymous. Helps others find the good tools.
No account, no email, no tracking — just a 1–5 number.
Be the first to rate