Schema Sketch
Paste your CREATE TABLE statements, get the diagram
SQL
Load example
Clear
Reads MySQL, PostgreSQL, SQLite and BigQuery DDL. The diagram updates as you type.
Tables
Fit to view
+
−
Auto-arrange
Guess links from column names
Show types
Save SVG
Copy Mermaid
Copy data dictionary
Declared foreign key, pointing at the referenced table
Guessed from a column name
Drag tables to arrange. Drag the background to pan. Scroll to zoom.