
About dbdiagram.io
dbdiagram.io is a web tool for drawing database diagrams from code. You write a short schema in DBML and the tool turns it into an entity relationship diagram that you can share and export.
What it does
You type table definitions and relationships in an editor, and the diagram updates as you write. Teams can import tables from an existing database or a SQL dump, then edit the diagram and export the SQL needed to create the tables. The tool is meant for developers and data analysts who think in code.
Key features
- Write schema code and see the diagram update
- Import tables from SQL databases or dump files
- Export diagrams as images and PDF files
- Generate SQL statements from a schema
- Invite teammates to edit a diagram together
Who it's for
dbdiagram.io suits backend developers, data engineers and analysts who plan database changes. It is also useful for teams that need a shared picture of a database before a migration.
Pricing and good to know
The tool has a free tier and paid plans for teams and larger diagrams. The editor runs in the browser, so you need an internet connection. Keep sensitive schemas private, and check the sharing settings before you share a link with people outside your team.
Highlights
- Write schema code and see the diagram update
- Import tables from SQL databases
- Export diagrams as images and PDF
- Generate SQL statements from a schema
- Edit diagrams with teammates together












