DBML Viewer
A free, in-browser DBML viewer. Paste any DBML — or the contents of a .dbml file — and see it rendered as an interactive entity-relationship diagram you can drag, arrange and export. Nothing is uploaded.
How it works
- Open your
.dbmlfile (or copy DBML from dbdiagram.io). - Paste it into the viewer — DBML is auto-detected.
- Every
Tablerenders with its columns;Ref:and inline[ref: > …]become relations. - Drag to arrange, then export PNG/SVG or convert to Mermaid/PlantUML.
Example
Paste DBML like this:
Table users {
id integer [pk]
email varchar [unique]
}
Table orders {
id integer [pk]
user_id integer [ref: > users.id]
total decimal
}
…and the viewer draws 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.
- Opens any DBML — dbdiagram.io exports,
.dbmlfiles or snippets. - Interactive: drag tables, auto-arrange, hide noise, add notes, and manually link columns.
- Convert what you view to Mermaid, PlantUML, PNG or SVG.
- Free & open source — no account, no sign-up.
FAQ
How do I open a .dbml file?
Copy the contents of the .dbml file and paste it here — it renders instantly as an interactive diagram. Nothing is uploaded; it all runs in your browser.
Is this a free dbdiagram viewer?
Yes — paste DBML and view it as an interactive ER diagram for free, with no account, and export to Mermaid, PlantUML, PNG or SVG.
Is my 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 vector SVG, copy the schema as Mermaid, DBML or PlantUML, or share a link that encodes the whole diagram in the URL.
Is it free?
Yes. It is completely free and open source, with no account or sign-up required.