10 Best Free Database Diagram (ERD) Tools in 2026
Compare 10 free database diagram and ERD tools, including dbdiagram.io, drawDB, draw.io and DrawSQL, with free-plan limits, prices and open-source options.
A database schema diagram is the blueprint of a database. It shows the tables, their columns and data types, and the relationships and constraints that connect them. You usually draw one before you write the first migration, and you keep coming back to it whenever someone new needs to understand the data.
This guide compares 10 free database diagram (ERD) tools that are still actively maintained in 2026, with their free-plan limits checked against each vendor's pricing page. It covers code-first tools for developers, open-source editors you can self-host, and drag-and-drop diagramming apps for mixed teams.
What is a database diagram?
A database diagram (also called a database schema diagram, an entity-relationship diagram or an ERD) is a visual map of a relational database. Each box is a table, each row inside the box is a column, and the lines between boxes are the foreign-key relationships. Most tools draw the relationship lines in crow's foot notation, so you can see at a glance whether a relationship is one-to-one, one-to-many or many-to-many.
Teams use database design diagrams for three jobs:
- Designing a new schema before any table exists, so the team can agree on entities and relationships up front.
- Documenting an existing database, usually by importing the schema from SQL so the diagram matches production.
- Explaining the data model to analysts, new engineers or stakeholders who will never read the DDL. (Once the diagram exists, you can also publish it as browsable documentation – see our list of database documentation tools.)
How to choose a database diagram tool
Most free ERD tools draw tables and relationships well, so the differences show up in how you create the diagram and what you can do with it afterward:
- Code or canvas. Code-first tools (dbdiagram.io, QuickDBD) let you type a schema and watch the diagram update, which suits developers who live in a text editor. Canvas tools (draw.io, Lucidchart, Miro) suit people who prefer to drag boxes.
- SQL import and export. If you are documenting an existing database, check that the tool imports your SQL dialect. If you are designing a new one, check that it exports DDL you can run.
- Free-plan limits. Free plans cap the number of diagrams, tables, boards or private diagrams. The table below lists each cap.
- Sharing and privacy. Some free plans only allow public diagrams. That matters if your schema contains sensitive table names.
- Self-hosting. Open-source tools such as drawDB, ChartDB and draw.io can run on your own infrastructure, which some security teams require.
Free database diagram tools compared
| Tool | Best for | How you build | Free plan | Paid plans from | Open source |
|---|---|---|---|---|---|
| dbdiagram.io | Developers and analysts who prefer code | DBML code or SQL import | 10 diagrams, SQL import/export, PNG/PDF/SVG export | $8/month (Personal Pro) | DBML language (Apache 2.0) |
| drawDB | A free editor with no account | Drag-and-drop, SQL import | Unlimited, no sign-up | Free | Yes (AGPL-3.0) |
| ChartDB | Visualizing an existing database quickly | One import query, then edit | Unlimited, no sign-up | Free (self-host) | Yes (AGPL-3.0) |
| draw.io | General diagrams that include ERDs | Drag-and-drop | Unlimited, no sign-up | Free | Yes (Apache 2.0) |
| DrawSQL | Dev teams that want templates and AI review | Drag-and-drop, SQL import | Public diagrams only | $19/month | No |
| QuickDBD | Fast text-based sketches | Text | 1 diagram, 10 tables | $14/month or $95/year | No |
| Lucidchart | Teams already using Lucid | Drag-and-drop | Limited documents | Per user | No |
| ERDPlus | Students and database courses | Drag-and-drop | Free | Free | No |
| Miro | Whiteboarding a schema with a wider team | Whiteboard | 3 editable boards | $8/member/month (yearly) | No |
| Cacoo | Small teams that collaborate in real time | Drag-and-drop | 6 sheets, unlimited users | $6/user/month | No |
Prices are list prices from each vendor's pricing page as of November 2026.
Top 10 free database diagram (ERD) tools
1. dbdiagram.io
dbdiagram.io draws the diagram from DBML code as you type
Pricing: The Free plan is free forever and includes up to 10 diagrams and doc projects. Personal Pro starts at $8/month, and the Team plan starts at $75/month for 3 editors ($5/month per extra editor). Students, teachers and researchers can get Personal Pro free for 12 months.
- dbdiagram.io is a code-first database diagram tool. You define tables and relationships in DBML, an open-source schema language, and the ER diagram appears as you type.
- It imports and exports SQL, so you can generate a diagram from an existing schema dump or export DDL for a new design.
- The free plan exports diagrams to PNG, PDF and SVG, supports public sharing and embedding, and includes a private mode.
- Paid plans add password-protected sharing, collaboration in a shared team workspace and advanced visualization for large databases.
- The same DBML file can publish browsable documentation through dbdocs, and the dbdiagram CLI fits into CI/CD pipelines.
Developers, DBAs and data analysts who want to edit a schema without leaving the keyboard get the most out of dbdiagram.io. (If you are comparing it with other code-first options, our dbdiagram introduction explains the DBML approach in more detail.)
2. drawDB
Pricing: Free. drawDB is open source under the AGPL-3.0 license, and you can self-host it.
- drawDB is a browser-based ERD editor and SQL generator. You build diagrams with a few clicks and do not need to create an account.
- It imports and exports SQL scripts, generates migrations and lets you customize the editor.
- The drawDB repository has more than 40,000 GitHub stars and shipped v1.9.0 in November 2026, so the project is actively maintained.
drawDB suits developers who want a free, no-sign-up visual editor, or a team that needs to run the tool on its own servers.
3. ChartDB
Pricing: Free to use in the browser. ChartDB is open source under the AGPL-3.0 license.
- ChartDB focuses on visualizing an existing database. You run one "smart query" against your database, paste the JSON result into ChartDB, and it draws the schema without needing your database password.
- You can then edit the diagram, add annotations and export SQL. An optional AI feature generates DDL for a different SQL dialect, which helps when migrating, for example, from MySQL to PostgreSQL.
- The ChartDB repository has more than 23,000 GitHub stars and released v1.21.0 in November 2026.
ChartDB fits teams that inherit an undocumented database and need a diagram of it in minutes.
4. draw.io
draw.io includes entity-relationship shapes alongside its general diagram libraries
Pricing: Free. The web app needs no sign-up, and a desktop app is available. The source code is licensed under Apache 2.0.
- draw.io (briefly branded diagrams.net) is a general-purpose diagramming tool for flowcharts, org charts, UML, network diagrams and ER diagrams.
- You choose where to store diagrams, either in your own cloud storage (it integrates with Google Drive, OneDrive and GitHub) or locally with the desktop app. The vendor states that it cannot access your data.
- It supports real-time collaboration with shared cursors.
draw.io suits teams that need ER diagrams alongside other technical diagrams and want a tool with no license cost at all. It has no SQL import or DDL export, so you draw tables by hand.
5. DrawSQL
DrawSQL is built specifically for entity-relationship diagrams
Pricing: Free for public diagrams. Starter costs $19/month or $171/year and includes 10 private diagrams, 50 tables per diagram and 500 DrawSQL AI credits per month. Growth costs $59/month.
- DrawSQL is a web app built only for database schema diagrams, with a clean editor that avoids general-purpose shapes.
- You can import an existing SQL script to generate a diagram and export diagrams as DDL or images.
- It offers a library of schema templates, and you can try the editor without creating an account.
- Paid plans add private diagrams, API access and DrawSQL AI, which reviews, generates and renames schema objects and shows each change as a diff.
DrawSQL suits development teams that want a polished, purpose-built ERD tool and are comfortable with public diagrams on the free plan.
6. QuickDBD
QuickDBD draws schema diagrams from plain-text input
Pricing: The free plan includes 1 diagram with up to 10 tables. Pro costs $14/month or $95/year, and a one-week pass costs $7.
- QuickDBD lets you draw a database diagram by typing tables and relationships in a short text syntax, without touching the mouse.
- You can share diagrams online, and paid plans add private diagrams and real-time collaboration.
- It exports images and SQL, and Pro adds PDF and RTF export.
QuickDBD works well for quick sketches. The free plan's single diagram limits it to short experiments.
7. Lucidchart
Lucidchart's database shape library
Pricing: Lucidchart offers a free plan with a limited number of editable documents. Paid plans are priced per user.
- Lucidchart is a cloud-based diagramming tool for flowcharts, process maps, UML, org charts and ER diagrams.
- Its entity-relationship shape library lets you drag tables onto the canvas and connect them with crow's foot notation.
- It integrates with Google Workspace and Microsoft Office.
Lucidchart suits organizations that already pay for Lucid and want database diagrams in the same workspace as their other documentation. The free plan's document limit makes it a trial rather than a long-term free option.
8. ERDPlus
ERDPlus converts ER diagrams into relational schemas
Pricing: Free.
- ERDPlus is a web-based modeling tool for entity-relationship diagrams, relational schemas and star schemas.
- It converts an ER diagram into a relational schema with one click and generates SQL DDL.
- It now includes free beginner lessons on ER diagrams and relational modeling, which makes it popular in database courses.
ERDPlus fits students and instructors who need conceptual ER diagrams and relational schemas rather than production-scale documentation.
9. Miro
Miro is a whiteboard that teams also use for database design sessions
Pricing: The free plan includes 3 editable boards. Starter costs $8 per member per month, billed yearly, and adds unlimited private boards.
- Miro is an online whiteboard for diagrams, workshops and planning, with thousands of templates, including ER diagram templates.
- It works well for early schema discussions where product managers, designers and engineers sketch entities together.
- It integrates with Jira, Confluence, Slack, Microsoft Teams and Notion.
Miro suits collaborative design sessions. It has no SQL import or export, so teams usually move the final schema into a dedicated ERD tool.
10. Cacoo
Cacoo is an online diagramming tool from Nulab
Pricing: The free plan includes unlimited users and 6 sheets. Pro costs $6 per user per month, billed monthly, and annual billing saves 17%.
- Cacoo is a web-based diagramming tool from Nulab with templates and shapes for database diagrams, wireframes and network diagrams.
- It supports real-time editing, in-app video chat, comments and a follow mode for walking teammates through a diagram.
- It integrates with Nulab's Backlog as well as Slack, Google Drive and other tools.
Cacoo fits small teams that want real-time collaboration on a free plan with no user limit.
Database diagrams inside tools you already use
You may not need a separate tool if your team already uses one of these:
- SQL Server Management Studio (SSMS) includes a database diagram designer for SQL Server databases.
- DBeaver Community (open source, Apache 2.0) generates ER diagrams from any database it connects to.
- MySQL Workbench includes visual ER modeling with forward and reverse engineering for MySQL.
These tools diagram the database you are connected to. They are less suited to designing a schema before it exists or sharing a diagram with people outside the database team. (For desktop modeling tools such as pgModeler and Oracle SQL Developer Data Modeler, see our list of free and open source data modeling tools.)
Which database diagram tool should you choose?
- You prefer writing code: dbdiagram.io or QuickDBD. dbdiagram.io's free plan allows 10 diagrams, while QuickDBD allows 1.
- You want a free, open-source visual editor: drawDB, or ChartDB if you are diagramming an existing database.
- You need ER diagrams alongside other diagrams: draw.io, or Lucidchart if your company already pays for Lucid.
- You are learning database design: ERDPlus.
- You are designing a schema in a workshop: Miro or Cacoo.
FAQ
What is the best free tool to create database diagrams?
The best free tool depends on how you work. dbdiagram.io is the most popular code-first option, drawDB is the most popular open-source visual editor on GitHub, and draw.io is completely free for general diagrams that include ERDs.
How do I create a diagram of an existing database?
Export your schema as SQL (for example, with pg_dump --schema-only for PostgreSQL or mysqldump --no-data for MySQL) and import the file into a tool with SQL import, such as dbdiagram.io, drawDB or DrawSQL. ChartDB takes a different approach: you run one query it provides and paste the result. Database clients such as DBeaver and SSMS can also draw a diagram directly from a live connection.
Where can I create an ERD for free?
dbdiagram.io, drawDB, ChartDB, draw.io and ERDPlus all let you create ERDs for free in the browser. drawDB, ChartDB and draw.io do not require an account.
What is the difference between a database diagram and an ER diagram?
The terms are often used interchangeably. Strictly, an ER diagram models entities and relationships at a conceptual level, while a database schema diagram shows the physical tables, columns, data types and keys. Most tools in this list draw physical schema diagrams using ER notation.
What's next after database design?
Once the schema exists, the next step is usually making that data usable for people who don't write SQL. Holistics, the team behind dbdiagram.io, is an AI analytics platform that lets everyone in your organization ask questions in plain language and get reliable answers. The platform is built on a programmable semantic layer and analytics-as-code, so AI and humans reason from the same governed business logic.
Holistics' relationship diagram maps how models connect