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

Which SQL dialects are supported?

Common CREATE TABLE syntax with inline PRIMARY KEY and FOREIGN KEY REFERENCES clauses. Complex dialect features may need simplification.

Does it connect to my database?

No. Paste DDL text only — nothing is sent to a server.