SQL to ER Diagram
Home › DBML Viewer

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.

Open the diagram tool →
No signup · nothing uploaded · export PNG / SVG / Mermaid / DBML · shareable link

How it works

  1. Open your .dbml file (or copy DBML from dbdiagram.io).
  2. Paste it into the viewer — DBML is auto-detected.
  3. Every Table renders with its columns; Ref: and inline [ref: > …] become relations.
  4. 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_idusers.id. Try it with your own →

Guide

A viewer, not an editor: paste DBML — from dbdiagram.io's export dialog, a .dbml file in your repo, or a snippet someone sent you — and see it as a diagram in about a second. No project to create, no schema to upload, no account.

Opening a .dbml file

  1. Open the .dbml file in any text editor (it's plain text).
  2. Select all, copy, paste here. Or drag the file onto the editor pane.
  3. The diagram renders; drag tables to tidy up, hide what you don't need.

Because rendering is local, this is the viewer to reach for when the DBML contains real names — production table names, internal codenames, client project schemas. Nothing is transmitted; the share link, if you use one, encodes the diagram entirely in the URL fragment, so there is no server-side copy anywhere. When viewing turns into editing — rearranging for a deck, exporting an SVG for docs — the same paste works in the full editor via the button at the top.

Why use it

DBMLMermaidPlantUMLSQL

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.

Related