open source · no account needed

Think it. Draw it. Ship it.

The visual database schema tool for clear, fast, collaborative design.

n111n1n1n1
galactic_users
id
INT
username
VARCHAR
email
VARCHAR
password
VARCHAR
celestial_data
id
INT
user_id
INT
type
ENUM
time
TIMESTAMP
content
VARCHAR
astro_mines
id
INT
asteroid_id
INT
data_id
INT
asteroids
id
INT
name
VARCHAR
location
VARCHAR
missions
id
INT
name
VARCHAR
leader_id
INT
target_id
INT
status
ENUM
Alex
Priya
Jordan
Sam
Maria
open source

Backed by people who
care about tooling

drawDB is, and stays, free and open source. Sponsors are what make that sustainable.

Sponsor drawDB

Help keep it independent and moving fast. Every tier counts.

Sponsor on GitHub

Trusted by 39.7k+ developers

drawDB speaks every major dialect — design once, then generate clean DDL for the database you actually ship on.

39.7k
stars
3.3k
forks
51
languages
mysqlmysql
postgrespostgres
sqlitesqlite
mariadbmariadb
mssqlmssql
oracleoracle
more than an editor

Everything you need to
design a schema

the full picture
Design, see, and export — in one canvas

Build diagrams with a few clicks, customize your editor, and generate clean DDL for your dialect.

drawDB editor
Real-time collaboration
Design together live — shared cursors, presence, and instant sync across your whole team.
AI schema assistant
Describe what you need and let AI draft tables, relationships, and types for you.
Cloud storage
Your diagrams saved to the cloud and synced across every device you work on.
Teams & access control
Invite teammates, assign roles, and control who can view or edit each diagram.
Reverse engineer
Already have a schema? Import a DDL script and drawDB rebuilds the diagram for you — no manual redrawing.
Export anywhere
Export the DDL to run on your database, or save the diagram as JSON or an image.
Generate migrations
Version your diagram and generate migration scripts to update your database.
Issue detection
Catch errors in the diagram so the generated scripts are always correct.
Customizable workspace
Tune the UI to fit your workflow. Show only the panels you actually use.
Keyboard shortcuts
Move fast with shortcuts for everything. See them allhere.
Templates
Start from pre-built templates for a quick start or fresh inspiration.
Custom templates
Save your own boilerplate structures and reload them whenever you need them.
Robust editor
Undo, redo, copy, paste, duplicate, and more. Add tables, subject areas, and notes — all on an infinite canvas.
Relational databases
Full support for MySQL, PostgreSQL, SQLite, MariaDB, and SQL Server.
Object-relational
Add custom types for object-relational databases, or define custom JSON schemes.
Presentation mode
Present diagrams on the big screen during team meetings and design reviews.
self-hosted

Run it on
your own infrastructure

drawDB is fully open source. Clone the repo, bring it up with Docker, and keep every diagram behind your own firewall — no vendor lock-in, no data leaving your network.

bash
# clone and run drawDB locally
$ git clone https://github.com/drawdb-io/drawdb
$ cd drawdb
$ docker compose up -d
# → http://localhost:5173
loved worldwide

Developers ship schemas
with drawDB

questions

Frequently asked

Yes. drawDB is free and open source — the full editor runs in your browser with no account required. Pro adds cloud storage, teams, and real-time collaboration on top.

In the free editor, diagrams are stored locally in your browser (IndexedDB), so back them up before clearing your browser. With drawDB Pro, your diagrams sync to the cloud and across your team.

MySQL, PostgreSQL, SQLite, MariaDB, SQL Server, Oracle, and a generic dialect — with import (DDL → diagram) and export (diagram → DDL) for each.

Yes. Paste or upload a DDL script and drawDB reverse-engineers the diagram for you — no manual redrawing. You can also export to SQL, DBML, JSON, or an image.

No. Open the editor and start drawing immediately. You only sign in if you want Pro features like cloud sync, sharing, and team collaboration.

start designing

Ship your schema today

No account needed. Open the editor and start drawing.