All diagram types Open editor

merIDK / Diagram types / Venn diagram

Mermaid Venn diagram: example and syntax

Venn diagrams show how sets overlap. Mermaid added them in version 11 to show shared skills, feature overlap or audience segments.

Open this example in the editor

Example code

venn-beta
  title "Team overlap"
  set Frontend
  set Backend
  set Design
  union Frontend,Backend["APIs"]
  union Frontend,Design["UI"]

Result

venn-beta
  title "Team overlap"
  set Frontend
  set Backend
  set Design
  union Frontend,Backend["APIs"]
  union Frontend,Design["UI"]

Syntax quick reference

How to use it

  1. Open the example in the editor, or paste your own Mermaid code.
  2. Edit the code on the left. The preview updates as you type, and errors point to the line.
  3. Export SVG or PNG, copy a Markdown block for GitHub or Notion, or copy a share link.

More diagram types