Back to all posts

Top Free PostgreSQL ER Diagram Tools (2026): Compared

For the developer or architect who has to diagram a PostgreSQL schema without a budget, whether the database already exists or is still on paper.

On this page

You have a PostgreSQL database with forty tables and no picture of it, and no budget for a diagram tool. Start with DbSchema Community Edition. DbSchema connects to PostgreSQL, reads the live schema and draws it as interactive diagrams. The Community Edition is free, needs no signup and has no expiry date. For diagrams drawn from a live database, DbSchema Community Edition is a free er diagram tool.

The prices and free-tier limits of the other tools below were read on each vendor's own page on 2026-11-11.

Tools that connect and tools that read a copy

Free PostgreSQL diagram tools differ most in where the schema comes from. A tool that connects reads the tables from the server, so the diagram shows the database as it is today. A tool that reads a copy draws from SQL. You exported that SQL earlier and pasted it in.

A tool that connects reads the orders table from the PostgreSQL server, with the shipped_at column of the latest migration. A tool that reads a copy draws orders from SQL pasted before that migration, so shipped_at is missing.

After each migration, the copy is out of date until you export and paste the schema again. dbdiagram.io and ChartDB can fetch the schema through a command or a query that you run yourself, but they draw from its output, which is a copy too.

If your database already exists, you need a tool that connects. If the schema is still on paper, connect DbSchema Community to an empty database. Each table that you add on the diagram is created in the database as soon as you confirm it (Tables, Columns and Indexes).

Free tiers compared

ToolConnects to a live PostgreSQL serverWhere the free tier stops
DbSchema CommunityYessaving the model to a file, schema synchronization, documentation of more than 12 tables
pgAdmin 4YespgAdmin has no paid edition
DBeaver CommunityYesNoSQL and cloud databases, schema comparison, SVG export
pgModeler CommunityNo, reverse engineering is in Plusreverse engineering, diff and sync, the pre-built binaries
dbdiagram.ioNo, a db2dbml command reads the server for it10 diagrams
ChartDBNo, you run its query and paste the result1 user, 1 database of up to 10 tables
QuickDBDNo, you type the schema as text1 public diagram of up to 10 tables

The table limit rules out tools fastest. The free tiers of ChartDB and QuickDBD stop at 10 tables, so neither draws the forty-table database you started with. SQLDBM and Luna Modeler come up in the same searches but have no free tier, so they are covered at the end.

Tools that connect to PostgreSQL

DbSchema Community Edition

DbSchema installs on Windows, macOS and Linux, and connects to PostgreSQL through its JDBC driver. It reverse-engineers the schemas you pick into a diagram, and the SQL Editor runs your queries on the same connection. DbSchema connects to more than 100 other databases the same way.

DbSchema connected to a PostgreSQL shop database, with the tree of the shop schema on the left and its tables and foreign keys on the Main Diagram

One DbSchema model holds as many diagrams as you need, and a table can show on several of them. A large schema becomes one diagram per part of the application instead of one wall of boxes. While DbSchema is connected, each change that you confirm runs in the database at once. The changes live in the database, so DbSchema Community works without a model file.

DbSchema Pro saves the model to a .dbs file, a text file in XML that Git can diff. Schema synchronization compares that file with the database before any change runs. Pro also writes HTML5, PDF or Markdown documentation of any diagram, where Community documents a diagram of up to 12 tables.

pgAdmin 4 ERD Tool

pgAdmin is the open-source administration tool for PostgreSQL, free under the PostgreSQL Licence (pgadmin.org). Its ERD Tool draws a diagram of a whole database, one schema or one table, with the foreign keys as lines. A diagram of one schema shows no foreign key that points into another schema.

To change the schema, you edit the diagram and press Generate SQL. pgAdmin opens the DDL in its Query Tool, and the change runs when you execute it there. You can save a diagram to a file, or download it as an image.

DBeaver Community Edition

DBeaver Community is free and open source under the Apache License 2.0, and connects to any database that has a JDBC or ODBC driver (GitHub). It is a SQL client with a data editor and an ER diagram of the connection you have open. The diagram is read-only by default.

DBeaver's paid editions are called PRO. They cost $113 a year for Lite, $255 for Enterprise and $510 for Ultimate (editions). The same page marks ERD Edit mode, which edits the schema on the diagram, for Enterprise and Ultimate but not for Lite. The download page lists NoSQL databases such as MongoDB, cloud databases such as Redshift, and schema comparison as PRO features.

Tools that work without a connection

pgModeler Community Edition

pgModeler is a data modeler built for PostgreSQL. Its Community Edition is the source code, free under the GPLv3, and you compile it yourself (download). Community covers more than 30 PostgreSQL object types, validation with automatic fixes, a command-line interface, and export to SQL, PNG, SVG and HTML.

Reverse engineering from a live database, incremental diff and sync, SSH tunneling and the pre-built binaries are in pgModeler Plus. Plus costs $65.90 for six months or $123.74 for a year, for one user. So pgModeler Community designs a schema, but cannot read one back from your server.

dbdiagram.io

In dbdiagram.io, you type the schema in DBML, a short text language, and the diagram redraws as you type. You can also import a SQL dump. The free plan holds up to 10 diagrams and documentation projects, and keeps them private if you choose. Version history is a paid feature, from Personal Pro at $8 a month.

To read a running PostgreSQL server, you run the separate command-line tool db2dbml with a connection string, and it writes a DBML file. dbdiagram.io never changes the server. It exports SQL, which you run yourself.

ChartDB

ChartDB gives you one query to run on PostgreSQL. You paste the query's JSON result into ChartDB, so ChartDB never needs your database password (README). The source is open under the AGPL-3.0, so you can also host ChartDB yourself.

The hosted free plan covers 1 user and 1 database of up to 10 tables. Pro, at $25 a month, holds up to 100 tables. Team, priced from $59, covers 3 users and 5 databases of up to 200 tables each.

QuickDBD

QuickDBD (Quick Database Diagrams) draws the diagram from text that you type: a table name, then one column per line. The free Basic plan holds 1 public diagram of up to 10 tables. It includes image, SQL and PDF export, and real-time collaboration. Pro holds 10 diagrams of any size, at $7 for one week, $14 a month or $95 a year.

Tools with no free tier

SQLDBM models in the browser. Its pricing page shows no prices: you request a quote, priced per user. It builds a model from a direct connection or an uploaded file (sqldbm.com). PostgreSQL is on its list beside Snowflake, Databricks, BigQuery, SQL Server, Oracle and MySQL.

Luna Modeler is a desktop modeler with a 14-day trial that needs no card. After the trial, a one-time licence costs $99 for Basic, $189 for Professional or $349 for Ultimate. Every edition reverse-engineers a live database, and the ALTER scripts that synchronize it are in Professional and Ultimate. It covers PostgreSQL, Oracle, SQL Server, MariaDB, MySQL and SQLite.

DbSchema's 15-day trial works the other way round. The trial runs DbSchema Architect, the edition above Pro, with every feature. After it, DbSchema continues as the free Community Edition (installation).

How to reverse-engineer PostgreSQL in DbSchema

  1. Start DbSchema. On the Start New tab of the Welcome Screen, keep Connect to Database selected, click PostgreSQL and press Connect to PostgreSQL.
  2. In the connection dialog, choose Standard as the Method. Fill in where the server runs, the user, the password and the database, and press Connect. DbSchema downloads the JDBC driver the first time.
  3. In the Reverse Engineer the Database dialog, tick the schemas to read and press Load. DbSchema draws their tables on the Main Diagram.
  4. Choose Diagram → New Diagram to give the tables of one part of the application a diagram of their own.
  5. Choose File → Export As... → HTML5/PDF Documentation to write the documentation.
The Connect to PostgreSQL dialog in DbSchema with the Method Standard, the server host and port, the database user and the database shopdb
The Reverse Engineer the Database dialog in DbSchema, listing the schemas of shopdb with shopdb.shop ticked

Connecting and importing only read from PostgreSQL. New diagrams and the positions of tables change only the DbSchema model. PostgreSQL changes only when you confirm a change to a table while connected, or when you apply the differences of a schema synchronization.

Download DbSchema at https://dbschema.com/download.html, connect it to your PostgreSQL database, and let it draw the diagram. The free Community Edition reverse-engineers the schema, holds as many diagrams as you need and runs the changes you confirm. The model file, schema synchronization and documentation of any size are in DbSchema Pro, and the 15-day trial in the same installer includes all three.