Home › DBML to ER Diagram
DBML to ER Diagram
Paste DBML and instantly render an interactive entity-relationship diagram — drag, arrange, and export. A free, in-browser DBML viewer.
Open the diagram tool →No signup · nothing uploaded · export PNG / SVG / Mermaid / DBML · shareable link
How it works
- Copy your DBML (from dbdiagram.io or a
.dbmlfile). - Paste it into the editor — DBML is auto-detected.
- Tables and
Ref:relations are drawn immediately. - Arrange, hide tables, then export PNG/SVG or convert to Mermaid/PlantUML.
Example
DBML like this:
Table users {
id integer [pk]
email varchar [unique]
}
Table orders {
id integer [pk]
user_id integer [ref: > users.id]
total decimal
}
…renders two tables with a relation from orders.user_id → users.id. Try it with your own →
Why use it
- Private: everything runs in your browser — nothing is uploaded or stored on a server.
- Interactive: drag tables, auto-arrange, hide noise, add notes, and manually link columns.
- Convert DBML to Mermaid, PlantUML, PNG or SVG.
- Free & open source — no account, no sign-up.
DBMLMermaidPlantUMLSQL
FAQ
Is this a free dbdiagram alternative?
Yes — paste DBML and get an interactive diagram for free, with no account. You can also export to Mermaid, PlantUML, PNG or SVG.
Does it support Ref and inline references?
Yes — both standalone Ref: lines and inline [ref: > table.col] settings are parsed.
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.