drawDB
A free browser-based editor for drawing database entity-relationship diagrams and generating SQL, with import and export of scripts and no account required.
- GitHub stars
- 40k
- Last commit
- 3 days ago
- Licence
- AGPL-3.0
- Self-hosted
- Yes
- Hosted version
- Available

drawDB is a free, browser-based database schema editor and SQL generator. You build entity-relationship diagrams with a few clicks, and it works without creating an account, which makes it quick to sketch a data model before writing any code.
Diagrams can be exported to and imported from SQL scripts, and the tool can generate migrations. Topics show support for dialects including MySQL-family databases such as MariaDB, PostgreSQL, SQL Server, SQLite and Oracle, and diagrams are kept in the browser using IndexedDB. The editor is customizable, and the app is written in JavaScript.
drawDB is AGPL-3.0 licensed. The public version runs at drawdb.app, and you can also build it locally or with Docker to host it yourself. Sharing diagrams is optional and requires setting up a small server using the provided environment sample; with the Docker image you pass the server URL at startup, with no rebuild needed. It suits developers and students designing relational schemas.
Key features
- Visual ER diagram editor in the browser
- SQL script export and import
- SQL migration generation
- Multiple SQL dialects supported
- No account required
- Docker build for self-hosting
Pricing: The drawDB editor is free and open source with no account needed. Solo Pro and Team Pro add cloud sync, collaboration and AI, but their prices are not shown on the page.

