SQL to ER Diagram
Home › Mermaid

Mermaid to ER Diagram

Paste a Mermaid erDiagram and turn it into a fully interactive ER diagram you can drag, auto-arrange, and export — no Markdown renderer required.

Open the diagram tool →
No signup · nothing uploaded · export PNG / SVG / Mermaid / DBML · shareable link

How it works

  1. Copy your Mermaid erDiagram block.
  2. Paste it into the editor — Mermaid is auto-detected.
  3. Each entity becomes a table; relationships are drawn with the right cardinality.
  4. Arrange, hide tables, then export PNG/SVG or convert to DBML/PlantUML.

Example

A Mermaid erDiagram like this:

erDiagram
  USERS ||--o{ POSTS : writes
  USERS {
    int id PK
    string email
  }
  POSTS {
    int id PK
    int user_id FK
  }

…renders two tables with a relation between USERS and POSTS. Try it with your own →

Why use it

MermaidDBMLPlantUMLSQLPrisma

FAQ

Can I edit a Mermaid ER diagram visually?

Paste the Mermaid erDiagram to render it, then drag and arrange tables on the canvas. You can also convert it to SQL-style images or DBML via Export.

Does it support Mermaid cardinality?

Yes — one-to-one, one-to-many and many-to-many crow’s-foot notations are recognised and drawn.

Is my schema uploaded anywhere?

No. Everything runs locally in your browser — your schema is never uploaded to or stored on any server.

Is it free?

Yes. It is completely free and open source, with no account or sign-up required.

Related