← ToolsConverters
JSON to TypeScript.
Infer TypeScript interfaces from JSON, with optional Zod schemas. Interface or type-alias output.
TS · Zod
JSON in117 chars
TypeScript13 lines
export interface RootAddress {
city: string;
zip: string;
}
interface Root {
id: number;
name: string;
tags: string[];
address: RootAddress;
active: boolean;
score: number;
}How to use.
- Paste JSON or drop a .json file — interfaces infer live.
- Toggle interface/type, readonly, or switch to Zod for runtime schemas.
- Copy into your codebase (export keyword included).
Related tools.
01Formatters
JSON formatter
Pretty-print, minify and validate JSON with exact error pointers.
JSON · Validate
14Converters
JSX to HTML
HTML to JSX is near-lossless; JSX to HTML covers presentational components. Includes a live render check.
Babel · Preview
02Formatters
HTML / CSS formatter
Tidy indented markup or minify it for shipping. Handles inline CSS and void elements.
HTML · CSS