built by

Draw Entity-Relationship Diagrams, Painlessly 😎

A free, simple tool to draw ER diagrams by just writing code.
Designed for developers and data analysts.

Over 3M diagrams created from around the world
See what our users say 💙
Create your diagram

Chosen by product, data, and engineering teams in every sector

Deloitte
PwC
BCG
Accenture
TotalEnergies
Bentley Systems
MerQube
Pluxee
Via
Best Buy Health
Royal Canin
Deloitte
PwC
BCG
Accenture
TotalEnergies
Bentley Systems
MerQube
Pluxee
Via
Best Buy Health
Royal Canin

Everything you need to design complex databases 🚀

Write code, get visual diagrams

You type and an ER diagram appears. Your fingers never need to leave your keyboard.

Learn more

Design together in real-time

Invite your team to collaborate on diagrams simultaneously. See changes as they happen, just like in Google Docs. Keep everyone on the same page.

Learn more

Master large-scale database designs

Simplify huge diagrams with collapsible table groups, tailored views and color codings that let you create focused perspectives for better clarity and collaboration.

Learn more

Design databases faster with AI

Describe your database needs in plain language, and let the AI handle the rest. Perfect for iterative design that keeps pace with your ideas.

Learn more
Import from SQL Databases

Import from SQL Databases

Quickly generate your diagrams from your databases or SQL dump files.

Generate SQL statements

Generate SQL statements

Directly generate SQL statements to create your database tables.

Export to Images and PDFs

Export to Images and PDFs

Create beautiful PDFs of your ER diagram to circulate internally. Who says ERDs are so difficult to create?

One Click Sharing

One Click Sharing

Share your diagrams online with your colleagues and customers with just one click.

Track changes and travel back in time

Track changes and travel back in time

Access a full history of your diagram's changes. Compare versions, restore previous states, or create a copy from any point in time.

Embed into wikis, blogs, or documentation sites

Embed into wikis, blogs, or documentation sites

Embed your diagrams directly into your internal wikis, blogs, or documentation sites (Notion, Confluence, etc.). Keep your documentation always up-to-date.

Free · No sign-up

Just need a quick diagram? Try the ERD Generator

Paste your DBML or SQL and get a live, shareable entity-relationship diagram — drag it, embed it, and open it in the full editor when you're ready. No account needed.

Try the ERD generator

What People Say About Us 🤟

FAQs

Is dbdiagram.io free forever? How does the pricing work?

Absolutely! The app is free forever. You can also get more power and unlimited diagrams with our paid plans. Learn more.

Who are you guys? And why did you guys build this?

We are Holistics.io, a Singapore-based business intelligence product company. We built dbdiagram internally in order to have a quick way to visualize database schemas for our customers. We thought it would be cool to turn that into a standalone product for the broader data community to use!

How do I report a bug or request a feature?

You can post to our Community Forum, we get instant notification on every post submit. Alternatively, you can submit the Feedback Form.

What markup language is the dbdiagram DSL following?

We use DBML - Database Markup Language, a markup language designed to easily document database structures. In fact DBML is born out of dbdiagram! We turned dbdiagram DSL into DBML and made it available for everyone.

DBML is also completely open-source on Github.

About Us 🤟

❤️ dbdiagram.io is built by the folks at holistics.io, with love for the data community ❤️

Holistics is a powerful BI platform that reduces your need for data engineering. We empower your analysts with SQL
to build your data warehouse, and give them the tools to build automated reporting routines that deliver insights to everyone.

Get Started