MD Diagram guide

Draw a Mermaid diagram and export SVG or PNG with MD Diagram

Use this when you need a flowchart, a sequence diagram, or a timeline for a document or a slide, and you would rather type it than draw boxes by hand.

Two ways to start

Start from a template loads a ready example into the editor: Flowchart, Sequence, Class, State, Entity relationship, Gantt, Pie, Mind map, or Timeline. It replaces whatever source is in the editor.

Draft a diagram from text takes a Markdown outline, arrow lines such as A -> B, or a ```mermaid block, and writes the Mermaid source for you when you press Draft diagram. Each arrow line becomes one chain, and a name used twice becomes one box. Existing Mermaid source passes through unchanged.

Steps

  1. Open MD Diagram and start from a template or a text draft.
  2. Edit the Mermaid source on the left. The diagram redraws as you type; Ctrl+Enter redraws at once, and a syntax error marks its line.
  3. To rename a box without hunting through the code, double-click its label in the diagram, type, and the first place that label is written in the source is replaced.
  4. Use the toolbar to switch between Code, Split, and Diagram layouts, pick a theme (Default, Neutral, Forest, or Dark), zoom, or press Fit. Drag to pan, Ctrl+scroll to zoom, and use the full screen button for a large diagram.
  5. Download with .mmd (the Mermaid source), SVG, or PNG at the right of the toolbar.

Free or paid: templates, drafting, editing, and the live preview are free and need no account. Each download spends 1 credit and needs you to sign in, so an SVG and a PNG of the same diagram spend 2. Every account gets 3 free downloads a month. For more, a 25-credit pack is a one-time $3.00, or Pro covers 300 downloads a month, $5.00 for 30 days.

Good to know

Related

Just need an image? See export a Mermaid diagram as PNG or SVG. MD Converter also renders ```mermaid blocks inside a Markdown document, so you can keep the source in the document and export it to PDF in Markdown to PDF. Credits are shared across all nine tools; see pricing.

Try our other tools

One account and one credit pack work in all of them. Previews are free.

MD Converter Markdown to PDF, DOCX and HTML with a live preview. MD Chat A ChatGPT, Claude or Gemini answer as a clean Word file or PDF. MD Publisher Front matter, JSON-LD and social images for a post. MD Reverse HTML, DOCX, PDF or text back to Markdown. MD Slides An outline becomes a PDF, PowerPoint or HTML deck. MD Clip Save a web page, email or HTML as clean Markdown. MD Diagram Mermaid diagrams with a live editor and templates. MD Diff Compare two drafts, then accept or reject changes. Adoneinu SEO Analyzer A free audit of a public domain with a fix plan.