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
Chosen by product, data, and engineering teams in every sector
Write code, get visual diagrams
You type and an ER diagram appears. Your fingers never need to leave your keyboard.
Learn moreDesign 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 moreMaster 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 moreDesign 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 moreImport from SQL Databases
Quickly generate your diagrams from your databases or SQL dump files.
Generate SQL statements
Directly generate SQL statements to create your database tables.
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
Share your diagrams online with your colleagues and customers with just one click.
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 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
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.
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.
