Frequently Asked Questions
Does this Mermaid editor send my diagram code to a server?
No. Diagrams are rendered in your browser by the Mermaid library (version 12), so architecture diagrams and internal designs stay on your device. A shared link stores the diagram in the URL itself, which anyone with the link can read.
Which diagram types can I draw?
Everything Mermaid 12 supports, including flowcharts, sequence, class, state, entity-relationship, Gantt, pie, Git graph, mindmap, timeline, user journey, XY chart, quadrant, Sankey, block, architecture, C4, requirement, kanban and packet diagrams. The template menu has starting points for common ones, including microservices, Kubernetes and CI/CD pipelines. Newer diagram types may need the latest Mermaid, so check the syntax reference if one does not render.
Why does my diagram render here but not in GitHub, GitLab or my docs site?
Each platform bundles its own Mermaid version, which is often older than the latest release, and may disable features. Diagram types and syntax added recently may show a syntax error there. If a diagram fails on the target platform, simplify to the older flowchart, sequence, class, state, ER and Gantt syntax, or render to SVG or PNG here and embed the image.
Why do I get a syntax error?
Common causes: the lowercase word end inside a flowchart node label (write End or wrap the label in quotes), special characters such as parentheses, brackets or quotes inside unquoted labels (wrap the label in double quotes), a missing diagram type on the first line, or inconsistent indentation in indentation-based diagrams such as mindmap. The error message under the editor names the line and token.
Is it safe to open a shared diagram link?
The editor renders diagrams with Mermaid's strict security level, which sanitizes HTML in labels and disables click callbacks, so a crafted link cannot run script in the page. Interactive click handlers and raw HTML labels therefore do not work here; they would not be safe to enable for diagrams that come from a link.
Can I export the diagram as an image or SVG?
Yes. Download SVG for documentation that scales without quality loss, or PNG for slides and chat tools. Export includes the theme you selected.
What is Mermaid?
Mermaid is a JavaScript-based diagramming tool that renders text definitions into diagrams. It is inspired by Markdown and widely supported in GitHub READMEs, Notion, GitLab, and documentation tools.
Supported Diagram Types
Flowchart (flowchart TD): nodes and directional edges. Sequence Diagram: actor interactions over time. Gantt Chart: project timelines. Class Diagram: OOP relationships. State Diagram: state machines. ER Diagram: database entity relationships. Pie Chart: proportional data.
Flowchart Basics
Nodes: A[Rectangle], B(Rounded), C{Diamond}, D((Circle)). Edges: A --> B (arrow), A --- B (line), A -->|label| B (labeled). Direction: TD (top-down), LR (left-right), BT, RL.
Export Options
Diagrams can be exported as SVG (scalable, best for web and print) or PNG (best for presentations). Rendering happens entirely in your browser — no data is sent to any server.
Personalised history, favourites & saved settings — coming soon for logged-in users