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.
- Open the Code tab and paste DBML or
CREATE TABLEDDL from PostgreSQL, MySQL, or SQLite, then click Apply to Diagram. You can also import.sql,.dbml, or.jsonfiles or switch between built-in E-Commerce and SaaS Multi-Tenant sample schemas. - 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.
- Click any table card or relationship curve to customize table names, accent header colors, column types,
PK/FK/UQ/NNflags, and crow’s-foot cardinality (1:1,1:N,N:1,N:M) in the Edit tab. Visual edits sync cleanly back to DBML. - 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, inlineREFERENCES). - Crow’s-Foot Cardinality & Drag History: Foreign keys on
PKorUNIQUEcolumns automatically infer1:1links while standard foreign keys inferN:1crow’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.
SQL Workbench Handoff and Related Data Tools
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.
- Format complex queries and migration scripts with SQL Formatter.
- Catch syntax errors before deploying migrations using SQL Syntax Checker.
- Inspect existing local
.sqliteor.dbdatabase files in SQLite Viewer.
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.