DrawDB — Database Schema Designer
Design and visualize database schemas with an interactive diagram editor. Runs entirely in your browser — nothing about your schema is ever uploaded.
Related tools
Create flowcharts, UML, ER diagrams, network diagrams, and org charts with a full-featured diagram editor, entirely in your browser.
Write Mermaid markdown-like syntax and see flowcharts, sequence diagrams, ER diagrams, Gantt charts, and more render live.
Sketch diagrams, wireframes, and hand-drawn-style illustrations on a virtual whiteboard, entirely in your browser.
Visualize, build, and test regular expressions with a railroad-diagram editor.
Design, describe, and document OpenAPI and AsyncAPI specs with real-time validation and a live preview.
Try the Ace code editor live with syntax highlighting for 45+ languages, 24 themes, and every editor setting.
About DrawDB — Database Schema Designer
DrawDB is an open-source, AGPL-3.0-licensed database schema design tool. It lets you visually build entity-relationship diagrams — tables, columns, types, and relationships — and generate the corresponding SQL, without installing any desktop software. The build here is self-hosted directly from the DrawDB project's own source and runs entirely client-side: nothing about your schema is ever uploaded.
How to use
- Add tables and columns using the toolbar, setting each column's name, type, and constraints (primary key, nullable, and more).
- Draw relationships between tables by connecting columns, and DrawDB will render the foreign-key links on the diagram.
- Switch between the visual diagram and the generated SQL to see your schema as DDL for your chosen database dialect.
- Export your diagram or the generated SQL to use in your own database or migration files.
Frequently asked questions
- Is my schema uploaded anywhere?
- No. DrawDB runs entirely in your browser via JavaScript — nothing about your schema is ever sent to a server, including by this site.
- Does it generate real SQL?
- Yes — DrawDB generates SQL DDL from your visual diagram for common database dialects, which you can copy and run directly.
- Can I import an existing schema?
- DrawDB supports importing SQL to generate a diagram from an existing schema, so you can visualize a database you already have.
- Is this connected to a real database?
- No — DrawDB is a design tool, not a database client; it helps you plan and visualize a schema, not connect to or query a live database.