dbdiagram.io

dbdiagram.io

Draw database diagrams by writing code

About dbdiagram.io

dbdiagram.io is an online tool for drawing entity relationship diagrams by writing DBML, an open source schema language from the same company. You type code and the diagram appears as you go, and the same plan covers dbdocs, which publishes database documentation as code, and a SQL playground called RunSQL. The pricing page lists a Free plan for up to 10 diagrams and doc projects with a single editor, SQL import and export, PDF, PNG and SVG export and public sharing. Personal Pro is $8 per month with unlimited diagrams, password protected sharing and limited collaboration, and Team is $75 per month with three editors, a collaborative workspace and a 7 day free trial. Annual billing saves up to 42 percent, and students, teachers and researchers can get Personal Pro free for 12 months. dbdiagram.io suits developers and analysts who prefer a text first workflow with version controlled schemas and a CLI for CI pipelines.

Key Features

  • DBML to ER diagram
  • SQL import and export
  • Database docs as code
  • CLI for CI pipelines

Pros & Cons

What we like

  • Free plan available
  • Text first, easy to version
  • Free Personal Pro for education
  • Embeds diagrams and docs

Room for improvement

  • Free plan limited to 10 diagrams
  • Team plan is $75 per month
  • Collaboration is limited below Team
  • Requires learning DBML

Frequently Asked Questions

What is dbdiagram.io?
dbdiagram.io is a tool that draws database diagrams from DBML code.
How much does dbdiagram.io cost?
Free is $0, Personal Pro is $8 per month and Team is $75 per month, as of November 2026.
Who is dbdiagram.io best for?
Developers and analysts who like writing schemas as code.

Best For

Designing a schema from codePublishing database docsTeaching data modelingDocumenting data pipelines

Featured in

Alternatives to dbdiagram.io

Reviews (0)

No reviews yet

Be the first to share your experience with dbdiagram.io

Sign in to write a review

Badge builder

Add dbdiagram.io to your website

Choose a badge style and size, preview it here, then copy the generated HTML. Badge images are self-contained SVGs and do not require an external script.

dbdiagram.io badge preview
<a href="https://toolindex.net/tools/dbdiagram?ref=badge" target="_blank" rel="noopener">
  <img src="https://toolindex.net/badge/dbdiagram/medium.svg" alt="dbdiagram.io - Listed on Tool Index" width="180" height="50" />
</a>

How to use the badge

  1. 1. Pick the style, size, and theme that fit your layout.
  2. 2. Copy the generated HTML from the code block.
  3. 3. Paste it into your footer, homepage, or press page.

Standard badge available

The standard listing badge is available now. Score and circle badges are limited to tools currently ranked in the top 10 of a category.

Badge clicks return visitors to this profile with a referral tag so the source remains identifiable.