SQL to ER Diagram
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

  1. Copy your DBML (from dbdiagram.io or a .dbml file).
  2. Paste it into the editor — DBML is auto-detected.
  3. Tables and Ref: relations are drawn immediately.
  4. 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_idusers.id. Try it with your own →

Why use it

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.

Related