Dev Tools

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

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

  1. Add tables and columns using the toolbar, setting each column's name, type, and constraints (primary key, nullable, and more).
  2. Draw relationships between tables by connecting columns, and DrawDB will render the foreign-key links on the diagram.
  3. Switch between the visual diagram and the generated SQL to see your schema as DDL for your chosen database dialect.
  4. 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.