Online ER diagram editor
drawDB is a free, open-source database schema editor that runs in your browser. Draw tables, columns and relationships on a canvas, then export ready-to-run SQL DDL. No account is needed, and diagrams are saved locally.
- Generate SQL for PostgreSQL, MySQL, SQLite, MariaDB, SQL Server and Oracle
- Import an existing database from SQL DDL or DBML and edit it visually
- Model enums, custom types, indexes, views, areas and notes
- Export as SQL, DBML, Mermaid, Markdown, JSON, PNG, SVG or PDF
Start from one of the database schema examples, or see drawDB Pro for cloud storage, real-time collaboration, AI schema design and GitHub sync.