SQL to ER Diagram — Free Online ERD Generator from SQL
This tool parses your SQL CREATE TABLE and ALTER TABLE statements and instantly renders an interactive ER diagram in your browser. It works entirely locally—no uploads or accounts—supports PostgreSQL, MySQL, SQLite, and SQL Server, and lets you drag tables, rename elements, and export to PNG or SVG.
- Paste SQL DDL (CREATE/ALTER, across Postgres/MySQL/SQLite/SQL Server) and get an instant interactive ER diagram, fully client-side with no uploads or accounts.
- Diagrams are editable—drag tables, rename fields, auto-layout—and correctly detect not-null, unique, and key/foreign-key constraints.
- Export options include high-res PNG, vector SVG, saved project files, or a shareable URL that embeds the diagram itself.
- Free, open source, installation-free, and works across desktop and mobile.
You drop your SQL CREATE TABLE and ALTER TABLE statements into a browser window and immediately see an interactive entity-relationship diagram. Tables appear as boxes listing columns, primary keys and foreign keys. You can drag boxes around, zoom in and out, double-click to rename them, or hit an auto-layout button for a tidy arrangement.
Everything runs entirely in your browser—no uploads, no server storage, no accounts. The app parses PostgreSQL, MySQL, SQLite and SQL Server DDL, recognizing not-null and unique constraints as well as key relationships. When you’re done, you can export a high-resolution PNG or a vector SVG, save a project file, or generate a shareable link that embeds your diagram in the URL.
The tool is free, open source and needs zero installation. It works on desktops and mobiles alike. If you maintain database schemas or teach SQL, this lets you visualize structure instantly without switching apps or worrying about privacy.