Write diagrams as text, preview them live
Mermaid lets engineers describe architecture flows, API sequences, and state transitions in plain text that diffs cleanly in code reviews. Paste your Mermaid block here to verify syntax and layout before committing it to docs or pull requests.
Flowcharts, sequence diagrams, state machines & more
Use the quick presets above or paste any Mermaid v10 diagram—flowchart, sequenceDiagram, stateDiagram-v2, classDiagram, or erDiagram. The preview renders cleanly inside a responsive centered canvas.
Share diagrams with non-technical teammates
Not everyone has a Mermaid plugin in their browser or editor. Clicking Share turns your diagram into a link anyone can open on desktop or mobile to read the rendered chart.
Resilient rendering for legacy and complex labels
ShowYourCode preprocesses common unquoted subgraph label quirks automatically and falls back gracefully to readable source if a syntax typo occurs mid-edit.
Frequently Asked Questions
Which Mermaid diagram types are supported?
Flowcharts, sequence diagrams, state diagrams, class diagrams, entity-relationship diagrams, and other standard Mermaid v10 diagrams work out of the box.
Can I share a Mermaid diagram link without forcing people to install anything?
Yes. Click Share and send the generated /share/<id> link; anyone can view the rendered diagram directly in their browser.
Why does a node or subgraph fail to parse when it has parentheses?
In Mermaid syntax, unquoted parentheses can be read as node shapes. Wrapping labels in double quotes (e.g. A["Validate (strict)"]) keeps labels unambiguous.
Can I embed Mermaid inside a standalone HTML page instead?
Yes—switch to HTML mode or read our guide on embedding Mermaid diagrams in single-file HTML pages.