Entity relationship diagrams, online.
LetDraw is an ER diagram tool that turns your SQL DDL into an entity relationship diagram with crow's foot notation, right in the browser. Paste your CREATE TABLE statements or draw tables by hand, then edit every table, column and relationship. Free to start.
How to make an ER diagram in LetDraw
From a schema file to a database diagram you can share, in a few minutes and without installing anything.
Open Generate from Code
Generate from Code is a Pro feature. Paste your CREATE TABLE statements into the dialog. The format is detected for you, and a preview appears right away.
Pick the relationship style
Choose crow's foot for ER cardinality, or a straight line, arrow or smart routing, and see the preview update.
Edit on the canvas
Every table, column and relationship is a normal shape. Move tables, rename columns or add new entities by hand.
Share or export
Send a link, review the schema together in real time, or export the ER diagram as PNG, SVG or PDF.
ERD from SQL in one paste
The SQL importer reads CREATE TABLE statements in Postgres, MySQL and standard SQL, picks up primary keys, foreign keys, unique and not null columns, and lays the tables out as clean grids. Foreign keys become relationships with crow's foot ends, inferred from the key columns.
- SQL DDL import with PK, FK, unique and not null markers
- Crow's foot notation as native arrowheads: one, zero or one, zero or many, one or many
- Mermaid ER import and export, plus AI drafts from a description
An entity relationship diagram for every stage
Use the ER diagram tool to plan a new database, document an old one or explain one to a new teammate.
New schema design
Sketch entities and relationships before the first migration, starting from the Database Schema template.
Documenting a database
Export the DDL from an existing database and get a database diagram for your wiki or handbook.
Migration reviews
Put the before and after schema side by side and talk through foreign keys and cardinality with comments.
Onboarding
Give new developers one picture of how users, orders and payments connect before they read the code.
Query plans
Paste an EXPLAIN plan in JSON and see the query as a plan tree next to your schema.
Teaching data modeling
Explain one-to-many and many-to-many relationships with crow's foot ends students can read at a glance.
ER diagram tool FAQ
Is LetDraw's ER diagram tool free?
Can I generate an ERD from SQL?
Does it support crow's foot notation?
Is my schema uploaded when I import SQL?
More diagrams you can make
Your next ER diagram is one paste away.
Open LetDraw in your browser and drop in your schema, or draw the tables by hand. Fast, and nothing to install.