Paste SQL, see the schema.
Drop your CREATE TABLE statements on the left. Drag tables, scroll to zoom, double-click to rename, export when done.
100% local — your schema never leaves your browser. No accounts, no uploads.
Drop your CREATE TABLE statements on the left. Drag tables, scroll to zoom, double-click to rename, export when done.
100% local — your schema never leaves your browser. No accounts, no uploads.
SQL to ER Diagram is a free, open-source tool that converts a SQL schema into an
interactive entity-relationship diagram (ERD) right in your browser. Paste your
CREATE TABLE statements and instantly visualize tables, columns, primary
keys, foreign keys and relationships. Works with PostgreSQL, MySQL, SQLite and SQL
Server. Drag tables, auto-arrange the layout, add notes, and export to PNG or SVG.
Nothing is uploaded — your schema stays on your machine.
Paste your SQL CREATE TABLE statements into the editor and SQL to ER
Diagram instantly renders an interactive entity-relationship diagram. Drag tables to
arrange them, then export as PNG or SVG.
It parses standard CREATE TABLE and ALTER TABLE DDL and works
with PostgreSQL, MySQL, SQLite and SQL Server syntax, including primary keys, foreign
keys, unique and not-null constraints.
Yes. SQL to ER Diagram is completely free and open source, with no account or sign-up required.
Everything runs locally in your browser. Your SQL schema is never uploaded to or stored on any server.
Yes. You can export a high-resolution PNG or a vector SVG, save the full project as a file, or copy a shareable link that encodes the diagram in the URL.
No installation needed. It runs entirely in your web browser on both desktop and mobile.