Data
ER Diagram from SQL
Paste your table definitions and see how the tables link together. Nothing is run or uploaded.
Preparing tool
How to use ER Diagram from SQL
- Paste CREATE TABLE statements, or open a .sql file.
- Check the diagram and any notes about missing tables.
- Download SVG or PNG, or copy the Mermaid text.
What are the limits of ER Diagram from SQL?
Reads standard CREATE TABLE and ALTER TABLE ... FOREIGN KEY statements (MySQL, PostgreSQL, SQLite, SQL Server style). Views, indexes and vendor extras are ignored. Handles up to 60 tables. Your SQL stays on your device and is never executed.