1. Home
  2. Spreadsheets & Data
  3. DB ERD Designer

DB ERD Designer

Parse DBML & SQL DDL into an interactive draggable SVG ERD and export anywhere.

Runs in your browser · No upload
N:1N:1N:1N:1usersPKidintUQemailvarchar(255)full_namevarchar(120)rolevarchar(32)created_attimestamptzcategoriesPKidintUQslugvarchar(80)namevarchar(120)productsPKidintFKcategory_idintUQskuvarchar(64)titlevarchar(200)price_centsintstockintordersPKidintFKuser_idintstatusvarchar(32)total_centsintordered_attimestamptzorder_itemsPKidintFKorder_idintFKproduct_idintquantityintunit_price_centsint

How to Design and Visualize Database ERDs

Model relational schemas or reverse-engineer existing SQL dumps into clean, interactive Entity-Relationship Diagrams directly in your browser without accounts or cloud lock-in.

  1. Open the Code tab and paste DBML or CREATE TABLE DDL from PostgreSQL, MySQL, or SQLite, then click Apply to Diagram. You can also import .sql, .dbml, or .json files or switch between built-in E-Commerce and SaaS Multi-Tenant sample schemas.
  2. Drag table cards across the SVG stage, zoom and pan freely, or click Auto Layout in the left tool rail to arrange referenced parent tables to the left of child and join tables automatically.
  3. Click any table card or relationship curve to customize table names, accent header colors, column types, PK / FK / UQ / NN flags, and crow’s-foot cardinality (1:1, 1:N, N:1, N:M) in the Edit tab. Visual edits sync cleanly back to DBML.
  4. Click Export to download a crisp standalone SVG, 2x high-DPI PNG, dialect-specific SQL DDL (PostgreSQL, MySQL, SQLite), Mermaid erDiagram, DBML, or JSON backup.

Bidirectional DBML and Multi-Dialect SQL Support

Engineering teams regularly move between architectural reviews and database migrations. This designer parses and emits standard schemas cleanly in both directions:

  • SQL Dialect Parsing: Handles PostgreSQL (SERIAL, TIMESTAMPTZ, ALTER TABLE ... ADD FOREIGN KEY), MySQL (backtick identifiers, AUTO_INCREMENT, ENGINE=InnoDB), and SQLite (INTEGER PRIMARY KEY AUTOINCREMENT, inline REFERENCES).
  • Crow’s-Foot Cardinality & Drag History: Foreign keys on PK or UNIQUE columns automatically infer 1:1 links while standard foreign keys infer N:1 crow’s-foot links. Dragging tables batches smoothly into single Undo/Redo steps.
  • Local Project Snapshots: Save and switch between multiple ERD drafts inside the Projects tab backed by browser-local IndexedDB storage.

Click Open in SQL Workbench in the top toolbar to send your schema’s SQLite DDL straight into SQL Workbench and run live queries against your tables in one click.

100% Local Zero-Upload Architecture

Every parser pass, SVG layout calculation, PNG rasterization, and saved schema snapshot runs strictly inside your browser with zero external server uploads. Proprietary database schemas and internal table definitions never leave your machine.

Can't find the tool you need?

Tell us what you want to do. We build the most requested tools first.