SQL to ERD
Paste or write SQL DDL and generate an interactive ER diagram in real time. Edit layouts, inspect data, test queries, export, save, and share online.
Convert SQL DDL into an ER diagram
Paste SQLite, PostgreSQL, MySQL, or SQL Server CREATE TABLE statements. Inspect columns, primary keys, foreign keys, indexes, and relationships on an interactive database diagram.
Explore schema, data, and queries
Organize SQL files and folders, edit diagram layouts and table groups, inspect sample rows in Data, and run supported SELECT queries in Query. Sample-data generation and file imports are optional and run locally.
Save and export your workspace
Sign in to save SQL, diagram layout, and workspace preferences to a cloud file. Share read-only public links or export diagram images. SQL parsing and local data exploration do not connect to a live database.
Read the SQL to ERD guide
Prefer visual design? Create relational tables with DB Diagram or conceptual Chen and EER models with ERD Builder.