SQL to TypeScript Types

Free

Paste SQL CREATE TABLE statements → TypeScript interfaces, Zod schemas, Prisma models, Drizzle or TypeORM.

Parsed Tables

Users

9 columns · 1 PK · 6 nullable

Posts

8 columns · 1 PK · 5 nullable

What is SQL to TypeScript Conversion?

SQL to TypeScript conversion transforms CREATE TABLE statements into typed TypeScript code — interfaces, Zod schemas, Prisma models, Drizzle ORM tables or TypeORM entities.

Why Convert SQL to TypeScript?

Manually writing TypeScript types from SQL schemas is tedious and error-prone. Auto-generation ensures your types always match your database structure.

Features

  • 5 output modes: TS Interface, Zod, Prisma, Drizzle, TypeORM
  • Infers TypeScript types from SQL column types
  • Detects primary keys, nullable fields and unique constraints
  • PascalCase and camelCase naming conventions
  • Parsed table summary with column counts

Reviews

Sign in to write a review