Database schema tool

DBML Viewer to Visualize Database Schemas as ER Diagrams

Paste DBML and explore it as an interactive diagram with relationships, notes, and enums. Nothing leaves your browser.

Private · drawn in your browser

DBML source editor

Paste DBML, open a .dbml file, or load the sample to begin.

Your diagram will appear here

Paste DBML into the editor, drop a .dbml file anywhere on this page, or start from a sample schema.

Turn DBML into a readable ER diagram

DBML (Database Markup Language) describes tables, columns, relationships, and notes in plain text, which makes it easy to review in pull requests but hard to picture as a whole. This viewer parses the DBML you paste and draws every table as a card with its primary keys, foreign keys, types, and constraints, then connects the related columns with crow's foot lines so one-to-many, one-to-one, and many-to-many relationships are visible at a glance.

Tables are arranged automatically, and the diagram updates as you type. Drag tables to tidy the picture, switch to keys-only or names-only views for large schemas, and use the search box to jump straight to any table or column. Hover a column to read its note, default value, check constraints, and references.

Private by design

The DBML is parsed with the official open-source DBML parser and laid out with the Eclipse Layout Kernel, both running inside your browser. Your schema is never uploaded, never logged, and never added to the page address. It is kept only in this browser tab so a reload does not lose your work, and closing the tab discards it.

When a file references tables that are defined in another file, the viewer draws them as dashed placeholders instead of refusing the whole document, so split schemas can be explored one file at a time.

How to visualize a DBML schema

  1. Paste DBML into the editor, open a .dbml file, or drop one onto the page.
  2. Pan by dragging the background, hold Ctrl and scroll to zoom, and drag tables wherever you like.
  3. Click a table to highlight its relationships and open its details, or double-click it to jump to its definition.
  4. Export the diagram as a PNG or SVG image for documentation, or download the DBML itself.

FAQ

What is DBML?

DBML, short for Database Markup Language, is an open-source language for describing database schemas in plain text: tables, columns, indexes, relationships, enums, and notes. It is popular for documenting schemas because it is easy to read and to review in a pull request.

Is my schema uploaded anywhere?

No. The DBML parser and the layout engine both run inside your browser. The schema is kept only in this browser tab so a reload does not lose it, and it is never sent to a server or added to the page address.

Which DBML features are supported?

Tables with schemas and aliases; column settings such as primary key, not null, unique, increment, default values, and check constraints; indexes; enums; relationships written inline or as Ref blocks, including composite keys and delete and update actions; table groups; table partials; header colors; sticky notes; and project notes.

What happens if my DBML references a table from another file?

The viewer draws it as a dashed external placeholder with the referenced columns, so a schema split across several files can still be explored one file at a time. Genuine syntax errors are underlined in the editor, and the last valid diagram stays on screen until you fix them.

How do I read the relationship lines?

Lines use crow's foot notation. The three-pronged end sits on the many side of a relationship and the single bar on the one side, so a line from order_items.order_id to orders.id reads as many order items per order. Hover a line to see its definition and any delete or update actions.

How do I find my way around a large schema?

Press / or use the search box to jump to any table or column, switch to Keys or Names to shrink every table, click a table to highlight only its relationships, and use the minimap to move around. Auto-arrange lays everything out again if the picture gets messy.

Can I export the diagram?

Yes. Export saves a sharp PNG image or a scalable SVG of the whole diagram exactly as it is arranged on screen, and you can also download the DBML source as a .dbml file.