JSON to TypeScript/Zod
Convert JSON to TypeScript interfaces and Zod schemas instantly
Quick Examples
Options
JSON Input
Generated Code
export interface User {
  id: number;
  name: string;
  email: string;
  isactive: boolean;
  age: number;
  address: Useraddress;
  tags: string[];
  metadata: null;
}

export interface Useraddress {
  street: string;
  city: string;
  zipcode: string;
}

// Example usage:
const example: User = {
  "id": 1,
  "name": "John Doe",
  "email": "john@example.com",
  "isActive": true,
  "age": 30,
  "address": {
    "street": "123 Main St",
    "city": "New York",
    "zipCode": "10001"
  },
  "tags": [
    "developer",
    "typescript",
    "react"
  ],
  "metadata": null
};