Frequently Asked Questions

Quick answers about Mermaid syntax, export, privacy and the AI assistant

Is Mermaid Drawing free to use?

Yes. Editing, live preview, PNG, SVG and PDF export, share links and history are free and need no account. The optional AI assistant uses your own API key, so your AI provider may bill you for that usage.

What diagram types are supported?

Every diagram type in Mermaid 11: graph TD flowcharts, sequence, class, state and ER diagrams, Gantt and pie charts, mindmaps, timelines, git graphs, user journeys, quadrant, XY and Sankey charts, and block, C4, architecture, kanban, packet and radar diagrams. The Mermaid syntax guide has editable examples of the most common types.

What is the difference between graph TD and flowchart TD?

Both declare a top-down Mermaid flowchart and draw the same layout. flowchart is the keyword used in the current Mermaid documentation; graph is an older alias that still works, so existing graph TD code does not need to change.

How do I change the flowchart direction?

Change the direction after the keyword: TD or TB for top to bottom, BT for bottom to top, LR for left to right, and RL for right to left. For example, graph LR draws the flowchart from left to right.

Why is my Mermaid diagram not rendering?

Common causes include labels with unquoted punctuation, a missing diagram type (such as graph TD or sequenceDiagram), or a lowercase flowchart node named end. The editor accepts a Markdown fence around the whole diagram. Check the preview error for the relevant line.

How do I export PNG, SVG or PDF?

Choose Export Drawing above the preview, then pick PNG for slides and documents, SVG for a scalable vector image, or PDF for printing. The same menu sets the PNG resolution (1x to 4x) and a transparent background, and can copy the image straight to the clipboard.

How do I share a Mermaid diagram?

Click Share above the preview to copy a link. The diagram code is compressed into the URL fragment instead of being uploaded for sharing. Anyone with the link can view and edit the diagram, so treat the link as sensitive. Links in the mermaid.live #pako: format also open here after you replace the domain with mermaid-drawing.com.

Can I use my diagram in GitHub, GitLab, Notion or Markdown?

Yes. Paste the Mermaid code into a mermaid code block on GitHub, GitLab or Notion, which render Mermaid natively, or export a PNG or SVG for Word, slides and tools without Mermaid support.

Is my diagram uploaded to servers?

Ordinary diagram rendering happens in your browser without sending the code to our servers. Your latest diagram and saved history are stored in this browser; a share link carries the code in its URL. If you choose an AI feature, your browser sends the relevant description or code, and the error when fixing one, to your selected AI provider.

How does the AI assistant work?

The optional AI assistant generates a diagram from a description or optimizes your current Mermaid code. It uses your own OpenAI, Anthropic or DeepSeek API key, which is kept in this site’s browser session storage and sent directly to the provider you choose.

Is dark mode supported?

Yes. You can toggle the interface theme and choose a separate diagram theme for the preview.

Which languages does the interface support?

English, Chinese, Spanish, Portuguese, Indonesian, Russian, French and Thai.

Do you show ads?

We show ads via Google AdSense and only load them after you consent to cookies.

Do you track user behavior?

We use Google Analytics to analyze site usage, only after your cookie consent. See the Privacy Policy.

How can I contact you?

Visit the Contact page or email [email protected].