DBML to ER Diagram

Turn DBML schema definitions into proper ER diagrams. Paste your dbdiagram.io-style DBML and get an editable draw.io entity-relationship diagram with keys and relationships.

Try it now (free, no signup)

Edit or paste your own code below, then click Generate to open an editable draw.io diagram.

Run example directly

How it works

1. Paste your code or description above and click Generate (no signup needed).
2. draft1 parses the real services, tables, keys, and dependencies.
3. You get a native draw.io diagram: drag boxes, edit by chat, export XML, or embed in Notion and GitHub.

Why not screenshot a static renderer?

Static renderers lock you into an image. draft1 outputs native draw.io XML so you can rearrange any node, refine by chatting ("add a Redis cache between the API and DB"), or open it in diagrams.net anytime.

Supported formats

Mermaid · PlantUML · Terraform · docker-compose · Kubernetes · SQL DDL · DBML · Prisma · CloudFormation · OpenAPI · JSON · GraphQL · AWS CDK · Pulumi · Plain English