PRIMARY KEY
Mark a column as the primary key with one click. The generated DDL adds the PRIMARY KEY constraint for you.
A visual database designer for MySQL, PostgreSQL, SQLite, Oracle, SQL Server, and MS Access. Drag-and-drop canvas, foreign keys with crow's foot notation, SQL import and export — all in the browser.
01 / Canvas
An infinite, pan-and-zoom canvas. Drop tables anywhere, rearrange freely, and work with schemas of any size without losing the shape of your design. Pan by scrolling, zoom with pinch or mouse wheel, and auto-fit the whole diagram to your screen in one click. The layout is always yours to control — no auto-arrange forced on you when you add a new table.
Add tables, add columns, rename inline, reorder by drag. Each column gets a name, a type, and optional constraints.
Each dialect gets its own type list — MySQL, PostgreSQL, SQLite, Oracle, SQL Server, and MS Access all show only the types they actually support. Common examples: INT, BIGINT, VARCHAR, TEXT, BOOLEAN, DATE, TIMESTAMP, UUID, DECIMAL, JSON.
Every edit is saved to your account. Close the tab, switch machines, come back tomorrow — it's still there.
02 / Relationships
Drag from one column to another to define a foreign key — no dialog boxes, no typing constraint names by hand. Cardinality is rendered in crow's foot notation so one-to-many and one-to-one relationships are immediately readable on the canvas. Every foreign key you draw is reflected in the SQL export as a proper FOREIGN KEY ... REFERENCES constraint, in the correct syntax for whichever dialect you've selected.
Mark a column as the primary key with one click. The generated DDL adds the PRIMARY KEY constraint for you.
Toggle UNIQUE and NOT NULL per column. The SQL output reflects exactly what you set.
03 / SQL
A complete MySQL CREATE TABLE script — types, constraints, foreign keys. Paste into MySQL Workbench, DBeaver, or a terminal and run.
Switch dialects and the same diagram comes out as Postgres-compatible DDL — works with psql, pgAdmin, Supabase, anything that speaks Postgres.
Generates SQLite-compatible DDL with foreign key constraints declared inline inside CREATE TABLE — the only syntax SQLite accepts.
Outputs Oracle DDL using double-quoted identifiers and Oracle-native types like NUMBER, VARCHAR2, and CLOB. Compatible with SQL*Plus and Oracle SQL Developer.
Generates T-SQL with bracket-quoted identifiers and SQL Server types like NVARCHAR, DATETIME2, and UNIQUEIDENTIFIER. Ready to run in SSMS or Azure Data Studio.
Exports bracket-quoted DDL with Access-specific types like AUTOINCREMENT, MEMO, and YESNO. Compatible with the Access SQL view and DAO.
Paste a CREATE TABLE script and SQL Designer parses it into a visual ER diagram automatically — tables, columns, types, constraints, and foreign keys all placed on the canvas. Useful for reverse-engineering a production schema before a refactor, visualizing a schema from documentation, or onboarding onto an unfamiliar database. Supports multi-table scripts with FOREIGN KEY references across tables.
Copy the full generated SQL to your clipboard with one click. No download, no extra step.
04 / Sharing
Embed a diagram as an interactive iframe in any docs site, README, or internal wiki. Embedded diagrams with a backlink can be featured in the schema library.
05 / Workspace
One diagram per project, microservice, or database. All saved to your account, accessible from any device.
Runs in Chrome, Firefox, Safari, Edge. No download, no extension, no setup — just sql-designer.com.
06 / Compare
Most database designers fall into one of two buckets: desktop software that requires installation and ties you to one engine, or SaaS tools that put SQL export behind a paywall. SQL Designer is neither.
Full comparison including DrawSQL, ERDPlus, ChartDB, and Lucidchart: 10 Best Free ERD Tools in 2026 →
Open the demo and try it on a real schema — no account required.