ER Diagram Generator

SQL to Mermaid ER diagrams

Source Input
Processed Output

What is the ER Diagram Generator?

Understanding a database starts with seeing its shape. Paste your CREATE TABLE statements and this generator produces a Mermaid erDiagram: every table with typed columns, PK/FK markers, and cardinality labels on relationships (one-to-many, many-to-many) — renderable anywhere Mermaid runs, including GitHub.

Frequently Asked Questions (FAQ)

Q: Where can I render the diagram?

Paste the output into mermaid.live, a GitHub markdown block, Notion, or any docs site with Mermaid support.

How to Use the ER Diagram Generator

  1. 1Paste your input into the editor above — or start from the preloaded example.
  2. 2Adjust any options, then click Run to process instantly in your browser.
  3. 3Review the output panel, then copy, download, or save it as a reusable snippet.

Related database tools