DevTools Logo

ER Diagram Generator

ER Diagram Generator

Paste CREATE TABLE DDL and export an entity-relationship SVG

Examples

Users and orders

Input
CREATE TABLE users (id INT PRIMARY KEY);
CREATE TABLE orders (user_id INT, FOREIGN KEY (user_id) REFERENCES users(id));
Output
Two table nodes with an FK edge

Table names become nodes; FOREIGN KEY clauses become labeled edges.

About this tool

Paste CREATE TABLE DDL and get an entity-relationship diagram with table boxes, column lists and foreign-key arrows. Parsing uses targeted regex — not a full SQL parser — but handles typical schemas.

Frequently asked questions