Back to all posts

dbdiagram.io Alternatives That Connect to a Real Database

For developers and data architects who draw their schema in dbdiagram.io and want the diagram read from the live database instead of typed in DBML.

On this page

dbdiagram.io draws the diagram from DBML that you type, paste or import. The diagram changes only when someone edits the DBML. If you want the diagram read from the database itself, choose DbSchema. DbSchema connects over JDBC and reverse-engineers the schema into a model, its own copy of the schema, shown as an interactive diagram. Later, DbSchema compares the model with the database and writes the SQL for each difference.

Azimutt and SqlDBM also connect to the database. ChartDB, Lucidchart and dbdiagram.io's own db2dbml command copy the schema once, and you import the copy. Every vendor fact below was checked on the vendor's own site on 11 November 2026.

Three ways a diagram tool gets your schema

The usual dbdiagram.io alternatives differ in one thing: where the tables on the diagram come from.

Typed or drawn tools such as dbdiagram.io, QuickDBD, DrawSQL and drawDB have no link to the database; ChartDB, Lucidchart and db2dbml import query output once; DbSchema, Azimutt and SqlDBM read the catalog and compare it again

A typed or drawn diagram holds what you wrote. dbdiagram.io and QuickDBD build the diagram from text. DrawSQL and drawDB build it from shapes on a canvas or from a pasted CREATE TABLE script. When the database changes, the diagram stays as it was until you edit the diagram.

An imported diagram starts from the database. You run a query or a command that reads the schema, and then you import the output. ChartDB gives you one query to run, and you paste the query's JSON output into ChartDB. Lucidchart takes query results pasted in, or uploaded as a CSV, TSV or TXT file. dbdiagram.io's own command for reading a database is db2dbml, part of the open-source DBML command-line tool (CLI). db2dbml connects to the database and writes DBML. The DBML CLI documentation gives this example:

db2dbml postgres 'postgresql://dbml_user:dbml_pass@localhost:5432/dbname?schemas=public' -o schema.dbml

db2dbml reads PostgreSQL, MySQL, SQL Server, Snowflake, BigQuery and Oracle. According to dbdiagram.io's release note, the Import menu points you to db2dbml to load a schema from a database. The result is a snapshot. When a migration adds a column, the diagram stays as it was until someone runs db2dbml again and imports the new file.

A connected diagram keeps its link to the database. DbSchema, Azimutt and SqlDBM read the database's catalog directly, and read it again when you ask. The catalog is where the database describes its own tables and columns. If the diagram has to match the database you deploy to, you need a connected tool. You need one too to list the differences between the diagram and the database before a release.

The tools compared

The connected tools come first in the table, and the drawn one last. For what you do after the database has changed, see the third column.

ToolReads the schema byCatches up with the database byFree planPaid plans from
DbSchemaConnecting over JDBCRefresh, or a compare with one row per difference (Pro)Community Edition29.40 USD a month, or 294 USD once
AzimuttConnecting through a gateway you runFetching the schema againNo saved projects€7 a month, billed annually
SqlDBMDirect connect, or a file uploadLive DB Compare, enabled on requestNone listedQuote per user
ChartDBOne query you run, its JSON pasted inRunning the query again, or Auto-Sync on Team1 database, 10 tablesUS$25 a month
dbdiagram.ioDBML, SQL import, or db2dbml outputRunning db2dbml and importing again10 diagrams$8 a month, billed annually
DrawSQLDrawing, or pasted CREATE TABLEImporting the SQL againPublic diagrams, 15 tables$19 a month

DbSchema reads the schema and compares it with your design

Start with a table written in DBML:

Table customers {
  customer_id integer [pk]
  email varchar(120) [not null]
}

The database has the same table, and a migration later added a column to it:

CREATE TABLE customers (
  customer_id integer PRIMARY KEY,
  email varchar(120) NOT NULL
);

ALTER TABLE customers ADD birth_date date;

The DBML still has two columns. The catalog has three. On PostgreSQL 18, this query lists the three columns:

SELECT column_name, data_type, is_nullable
FROM information_schema.columns
WHERE table_name = 'customers'
ORDER BY ordinal_position;
column_namedata_typeis_nullable
customer_idintegerNO
emailcharacter varyingNO
birth_datedateYES

DbSchema reads this catalog for you. Choose File → New Model, keep Connect to Database selected, pick your database and fill in the connection details. In the Reverse Engineer the Database dialog, tick the schemas and press Import. DbSchema draws the customers table with all three columns:

DbSchema diagram of the customers table reverse-engineered from the database, with the columns customer_id, email and birth_date

Connecting and reverse-engineering only read from the database. The free Community Edition includes both. The JDBC driver runs inside DbSchema on your computer and talks to the database server directly, with no DbSchema server in between (connect to a database).

DbSchema keeps the model in a file with the extension .dbs. The file is XML text, so Git can show what changed between two versions (getting started). File → Git Collaboration commits, pushes and pulls the model file from inside DbSchema (Git collaboration). Saving the model file needs DbSchema Pro.

When the database changes again, Database → Refresh Model from Database compares the model with the database. You can write every difference into the model at once. Or you can review the differences in the Synchronize Model and Database dialog, which has one row per difference (schema synchronization):

The DbSchema Synchronize Model and Database dialog with three differences: birth_date in customers and the rename of carrier_name set to the database, the table suppliers set to the model, and the ALTER TABLE statement of birth_date below

In each row you choose which side wins: the model, the database, or neither. The lower pane shows the SQL for each choice. For a column that only the model has, the SQL is ALTER TABLE shop.customers ADD birth_date date;. The Generate SQL script button writes the statements to DbSchema's SQL Editor or a file, and doesn't run them. The Commit in the database button runs the statements one at a time. Synchronization needs DbSchema Pro.

If your releases go through a migration tool such as Flyway, DbSchema can write each change as a migration file. Model → Flyway Migrations... compares the model with your Flyway folder and writes the difference as the next numbered script. The Write Migration File button needs DbSchema Pro (import and export the model). The tools that apply migrations are compared in Liquibase alternatives with a visual schema diff.

dbdiagram.io turns DBML into web documentation with dbdocs. DbSchema writes the model out as HTML5, PDF or Markdown documentation with File → Export As... → HTML5/PDF Documentation. The HTML5 documentation is a single file that opens in any browser and shows the diagram and the comments of every table and column (schema documentation):

HTML5 documentation exported by DbSchema, open in a browser: the Main Diagram with the tables tasks, users, labels and task_assignees and two views

With DbSchema Pro, the documentation covers a diagram of any size. With the Community Edition, it covers up to 12 tables and shows "DbSchema Trial" across the diagram image.

Azimutt and SqlDBM, the other connected tools

Azimutt is open source under the MIT license. Azimutt reads a database through a gateway, a program that you can start on your own computer with npx azimutt@latest gateway (Azimutt sources). Azimutt's home page lists PostgreSQL, MySQL, SQL Server, Oracle, MariaDB, SQLite, MongoDB, Couchbase, BigQuery and Snowflake. When you save a project, you choose to keep it in your browser's storage or on Azimutt's server (data privacy). After the database changes, you fetch the schema again.

SqlDBM is a hosted modeling platform for conceptual, logical and physical models. Its pricing page lists Snowflake, Databricks, BigQuery, Amazon Redshift, Azure Synapse and Microsoft Fabric, beside PostgreSQL, SQL Server, Oracle, AlloyDB and MySQL. SqlDBM reverse-engineers a database through a direct connection. For PostgreSQL, its guide asks for a server, port, database, user and password. SqlDBM can also reverse-engineer an uploaded file, according to its home page.

A revision is a saved version of a SqlDBM project. SqlDBM's forward engineering writes a full script, or an alter script with only the changes between two revisions. SqlDBM's documentation says to review the script and run it yourself: SqlDBM makes no changes to the database. Live DB Compare compares a revision with the live database, and you may have to ask SqlDBM to turn this feature on.

ChartDB and Lucidchart import the schema once

ChartDB runs in the browser. You use ChartDB's hosted copy, or run its Docker image on your own server. ChartDB's code is under AGPL-3.0. ChartDB's import documentation says that ChartDB never stores or accesses your data. ChartDB's pricing page lists Auto-Sync and Database Migration on the Team plan. The sync documentation describes a sync through ChartDB's API that needs no database credentials.

Lucidchart's ERD import works the same way. Lucidchart hands you a query, you run it on your database, and you paste the output or upload it as a file. Lucidchart's export to a database leaves out the connections between tables, according to Lucid's help page. Lucidchart alternatives for database diagrams compares the drawing tools in more detail.

DrawSQL, drawDB and QuickDBD draw what you give them

DrawSQL, drawDB and QuickDBD work the way dbdiagram.io does. In DrawSQL, you draw on a canvas. DrawSQL imports CREATE TABLE statements for MySQL, PostgreSQL, SQL Server and MariaDB, and exports SQL, Laravel migrations and JSON. drawDB is a canvas editor under AGPL-3.0. drawDB needs no account, keeps diagrams in your browser and imports a DDL script (CREATE TABLE statements). QuickDBD draws the diagram from text that you type.

Pricing and licensing

DbSchema sells Pro as a perpetual license or as a monthly subscription. The perpetual license includes the new versions of the first year, and those versions keep running after the year ends (licensing). A second year of updates costs 75 USD. The 75 USD and the DbSchema prices in the table come from the Business tab of the purchase page. The purchase page also has Personal and Education tabs, and it shows prices in your currency. The Community Edition is free.

The other tools sell subscriptions. dbdiagram.io's plan cards show prices billed annually: Team is $75 a month for 3 editors. Billed monthly, Personal Pro is $14 a month, and Team is $100. Azimutt's Solo plan is €9 a month, billed monthly. Azimutt's Team plan is €35 per user a month, billed annually. DrawSQL's Starter plan is $171 a year. QuickDBD Pro is $14 a month or $95 a year. ChartDB, drawDB and Azimutt also publish their code, so you can run your own copy.

Try DbSchema on your own database

Download DbSchema, connect it to a staging copy of your database, and reverse-engineer the schemas that you keep in DBML today. Put the diagram beside your DBML file. Any column that only DbSchema shows is missing from your DBML. Connecting, reverse-engineering, the diagrams and the SQL editor are in the free Community Edition. Saving the model file, synchronization, the Flyway migration file and the documentation of a diagram of more than 12 tables are in DbSchema Pro.

FAQ

Can I bring my DBML into DbSchema?

Export the diagram from dbdiagram.io as SQL, or run the DBML CLI command dbml2sql on the .dbml file. Then load the script in DbSchema with File → Import Model from SQL or Data Files, which needs DbSchema Pro. Moving a dbdiagram.io schema to a connected model shows what the export keeps and what it drops.

Is there a free dbdiagram.io alternative that connects to the database?

DbSchema Community Edition is free. It connects, reverse-engineers and draws the diagram for every database that DbSchema supports. Comparing the model with the database later needs DbSchema Pro.

Sources

  1. DBML CLI and the db2dbml release note
  2. dbdiagram.io pricing
  3. Azimutt sources, data privacy and pricing
  4. SqlDBM and its pricing, PostgreSQL direct connect, forward engineering and Live DB Compare
  5. ChartDB pricing, import and sync
  6. Lucidchart ERD help
  7. DrawSQL and its pricing, drawDB and its repository, QuickDBD
  8. DbSchema: connect to a database, getting started, schema synchronization, licensing

Diagram the database you are connected to

DbSchema reverse-engineers a live database into an interactive ER diagram, keeps the model in a file you can commit to Git, and writes the SQL for each difference between the model and the database. Community Edition is free.