Quick Answer
An ER diagram (entity-relationship diagram) maps database tables, columns, primary/foreign keys and crow’s-foot cardinality. This free browser ERD tool draws tables directly from your SQL CREATE TABLE statements and generates SQL back from the diagram — all client-side with no signup, no table limits, and free Visio (.vsdx), SVG and PDF export.
What this template looks like in the editor

What’s inside this starter template
- Four relational tables: customer (PK id, name, email), order (PK id, FK customer_id, status, total), order_item (composite PK,FK order_id + product_id, quantity) and product (PK id, sku, price).
- Explicit SQL column types (INT, VARCHAR, DECIMAL) alongside PK and FK markers on every row.
- Three crow’s-foot one-to-many links labelled places, contains and lists showing how the join table resolves the many-to-many order-product link.
- Direct access to Tools → ERD: import SQL / generate SQL… for round-tripping DDL without leaving the page.
Round-tripping SQL schemas and crow’s-foot ERDs in the browser
Database diagrams go stale fast when they live separately from SQL migrations. Using Tools → ERD to import your latest CREATE TABLE dump gives you an up-to-date crow’s-foot diagram in seconds — ideal for onboarding a new engineer, reviewing a schema PR, or spotting missing indexes on foreign keys — without installing a desktop database IDE or uploading proprietary table names to a cloud service.
When designing a new feature from scratch, work in the opposite direction: lay out entities, resolve many-to-many links through an explicit join table like order_item, and verify that every foreign key points to a primary key before exporting starter CREATE TABLE statements. Lucidchart limits free users to 75 objects and gates Visio export; here an entire fifty-table schema fits freely and exports to SVG, PDF or .vsdx.
How It Works
Open Tools → ERD: import SQL / generate SQL… and paste CREATE TABLE statements to auto-draw tables and foreign keys, or edit the four starter tables directly.
Select an entity container and choose Tools → Add row (attribute / column) to add a column; prefix keys with PK or FK.
Connect tables with the One to many crow’s-foot preset in the Connectors section and label the relationship.
Copy the generated CREATE TABLE SQL back into your migration, or export SVG, PDF or Visio (.vsdx).
Key Facts
- Two-way SQL bridge: paste CREATE TABLE to draw an ERD, or generate SQL DDL from your canvas
- Entity table containers with PK, FK and column data-type rows
- Crow’s-foot One to many connector preset plus five ER cardinality markers
- Add columns to any selected entity via Tools → Add row (attribute / column)
- Your SQL schema stays inside your browser tab — export Visio (.vsdx), SVG, PNG, PDF or SQL
Frequently Asked Questions
Which SQL dialects work with the SQL-to-ERD importer?
Standard CREATE TABLE statements from PostgreSQL, MySQL, SQLite and SQL Server: column types, inline and table-level PRIMARY KEY, UNIQUE, FOREIGN KEY and REFERENCES clauses all parse into tables and crow’s-foot links.
Can I generate SQL back out after editing the ER diagram?
Yes. Open Tools → ERD: import SQL / generate SQL… and switch to the Generate SQL tab to produce CREATE TABLE statements with primary and foreign keys directly from the entity tables on the active page.
Is my database schema uploaded when I paste SQL?
No. SQL parsing and DDL generation run locally in JavaScript inside your browser tab — nothing leaves your device.
Can I import an existing Visio or draw.io database diagram?
Yes. Choose File → Import file… (Ctrl+O) to open a .vsdx or .drawio file locally, edit tables and connectors, and export back to .vsdx, .drawio, SVG or PDF.
Related diagram types
- UML class diagramModel the application-layer objects and methods that sit above these tables.
- Data-flow diagramTrace which external actors and processes read from and write to these stores.
- Cloud architecturePlace the database alongside caches, queues and application servers in subnets.
Comparing features against paid tools or opening an existing .vsdx file? Read the full Visio & Lucidchart alternative guide.
How this works
This template runs on the same client-side maxGraph diagram engine as the main editor. Every shape, connector and custom Shape Data property stays in your browser tab, autosaves to your device’s IndexedDB, and exports straight to PNG, SVG, PDF, PowerPoint, Word, draw.io or Visio (.vsdx) without uploading your diagram.
What this editor can’t do
- The SQL parser handles CREATE TABLE definitions (columns, PK, UNIQUE, FK/REFERENCES); ALTER TABLE migrations, views, triggers and partial indexes are not parsed.
- Generated SQL DDL is clean starter syntax — review dialect-specific types, defaults and indexes before running it in production.