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.
How it works
- Copy the contents of your
schema.prismafile. - Paste it into the editor — the format is auto-detected as Prisma.
- Every
modelbecomes a table; relations are drawn from your@relationfields. - 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.authorId → User.id. Try it with your own schema →
Why use it
- Relations drawn automatically from
@relation— no manual wiring. - Private: your schema never leaves your browser.
- Interactive: drag, auto-arrange, hide tables, add notes, manually link columns.
- Export high-res PNG or vector SVG, or share via a link that encodes the diagram.
- Free & open source.
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.