SQL DDL to ER Diagram
100% client-side. Your data never leaves this page. Verify: DevTools → Network.
Paste CREATE TABLE statements and this draws an entity-relationship diagram from them: tables become boxes, and inline REFERENCES / table-level FOREIGN KEY clauses become arrows. The parser is a pragmatic regex/state machine, not a full SQL grammar: it handles common Postgres and MySQL column definitions, primary keys, and foreign keys, but exotic syntax (generated columns, complex CHECK constraints, partitioning) may be skipped rather than diagrammed. Layout is done with dagre; the SVG is rendered here. Drag to pan, scroll to zoom, and export to SVG or PNG. Nothing you paste is ever uploaded. All of this runs in this tab.