SQL to ER Diagram

Prisma to ER Diagram

Paste your schema.prisma and instantly get a clean, interactive entity-relationship diagram — models, fields and relations, drawn automatically. Free, open source, and 100% in your browser.

Open the diagram tool →
No signup · nothing uploaded · export PNG / SVG · shareable link

How it works

  1. Copy the contents of your schema.prisma file.
  2. Paste it into the editor — the format is auto-detected as Prisma.
  3. Every model becomes a table; relations are drawn from your @relation fields.
  4. Drag tables to arrange, hide noise, then export as PNG/SVG or share a link.

Example

A Prisma schema like this:

model User {
  id     Int     @id @default(autoincrement())
  email  String  @unique
  posts  Post[]
}

model Post {
  id        Int    @id @default(autoincrement())
  title     String
  author    User   @relation(fields: [authorId], references: [id])
  authorId  Int
}

…renders as two tables (User, Post) with a relation from Post.authorIdUser.id. Try it with your own schema →

Why use it

PrismaSQLSQLAlchemySequelize

FAQ

How do I turn a Prisma schema into an ER diagram?

Paste your schema.prisma into the editor. It auto-detects Prisma, renders every model as a table, and draws relations from your @relation fields — instantly, in the browser.

Is my Prisma schema uploaded anywhere?

No. Everything runs locally in your browser — your schema is never uploaded to or stored on any server.

Can I export the diagram?

Yes — export a high-resolution PNG or a vector SVG, or copy a shareable link that encodes the whole diagram in the URL.

What else is supported?

Raw SQL (CREATE TABLE for PostgreSQL, MySQL, SQLite, SQL Server), plus SQLAlchemy and Sequelize models. See the main tool.