Mermaid Live Editor

Create diagrams from text — flowcharts, sequence diagrams, class diagrams and more using Mermaid syntax

How to Use the Mermaid Live Editor

  1. Write your diagram code using Mermaid syntax in the code editor — choose from flowchart, sequence, class, state, ER, Gantt, pie, or git graph templates
  2. View the rendered diagram in the live preview panel as you type — the diagram updates automatically as you edit
  3. Customize the theme (default, forest, dark, neutral), adjust the zoom level, and click Download SVG or Download PNG to export your diagram

Enable JavaScript to use these tools.