Home › Prisma to DBML
Prisma to DBML
Paste your schema.prisma and export it as DBML — ready for dbdiagram.io and other DBML tools — while you preview the live ER diagram.
No signup · nothing uploaded · export PNG / SVG / Mermaid / DBML · shareable link
How it works
- Paste the contents of your
schema.prisma— Prisma is auto-detected. - The diagram renders so you can confirm models and relations.
- Click Export → DBML and copy the result.
- Paste it into dbdiagram.io or any DBML-based workflow.
Example
This Prisma schema:
model User {
id Int @id @default(autoincrement())
email String @unique
posts Post[]
}
model Post {
id Int @id @default(autoincrement())
author User @relation(fields: [authorId], references: [id])
authorId Int
}
…exports as this DBML:
Table "User" {
"id" Int [pk]
"email" String [unique]
}
Table "Post" {
"id" Int [pk]
"authorId" Int
}
Ref: "Post"."authorId" > "User"."id"
Copy it from Export → DBML. Try it with your own →
Why use it
- Private: everything runs in your browser — nothing is uploaded or stored on a server.
- dbdiagram.io-ready DBML output.
- Preview first — see the relations drawn before exporting.
- Free & open source — no account, no sign-up.
Prisma → DBMLPrisma → MermaidPrisma → SVG
FAQ
How do I convert a Prisma schema to DBML?
Paste your schema.prisma, then click Export → DBML and copy the output. Models become Tables and @relation fields become Refs.
Is my schema uploaded anywhere?
No. Everything runs locally in your browser — your schema is never uploaded to or stored on any server.
Is it free?
Yes. It is completely free and open source, with no account or sign-up required.