SQL to draw.io ER Diagram

Paste SQL CREATE TABLE statements (PostgreSQL, MySQL, SQLite, SQL Server) and generate a clean, editable draw.io ER diagram with keys and relations.

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