esc
MMD → PNG

Mermaid to PNG:
Converter

Mermaid to PNG for the places that want an ordinary picture: chat, email, Word, Google Docs and slide decks.

Mermaid to SVG

How to convert Mermaid to PNG

  1. 01Add the diagram file.mmd, .mermaid, .txt, or a Markdown note with a mermaid block.
  2. 02Set scale and background2× is the default; 4× for printing; transparent for colored slides.
  3. 03Download the PNGPaste it into a message, a doc or a presentation.
Violet file character juggling brackets

A picture you can paste anywhere.

PNG is the safe choice when an app won’t take SVG. Choose how many pixels you need with the Scale menu and whether the background should be white or see-through.

MMDDiagram as text
PNGLossless · transparent

A Mermaid to PNG export gives you a normal image file that every app understands. WhatsApp, Slack, Teams, Gmail, Word, Google Docs and PowerPoint all take PNG without fuss, which is why most people sharing a diagram with colleagues end up here rather than with an SVG.

Choosing the scale

At 1× the PNG is as many pixels wide as the diagram’s own size. 2× doubles both sides and 4× multiplies them by four. As an example, a chart that Mermaid lays out at 800 × 600 becomes 1600 × 1200 pixels at 2× and 3200 × 2400 pixels at 4×.

  • 1×: small file, fine for a quick message where nobody will zoom in.
  • 2× (default): labels stay sharp on phones and laptop screens with dense displays. A good choice for docs and email.
  • 4×: for printing on paper or projecting on a large screen. Files get noticeably bigger.

White or transparent background

White is the default and looks right in documents and chat apps, which often show pictures on a gray or dark backdrop. Transparent leaves the empty parts of the picture see-through. Pick it when the diagram goes on a colored slide or a branded template.

The Dark theme is special. With a white background setting it gets a dark fill behind it so the light lines stay visible. Choose Transparent instead if your slide is already dark.

Getting a sharp diagram into slides and documents

  1. Export at 2× or 4×, not 1×. Office apps shrink the picture to fit the page, and extra pixels keep the text readable after that.
  2. Insert it as a picture rather than pasting a screenshot, which captures only what your screen shows.
  3. Resize from a corner handle so the proportions stay the same.
  4. If you need to edit text in the deck later, export an SVG with the Mermaid to SVG converter, since PNG text can’t be retyped.

Putting the PNG into common apps

  • Google Docs: Insert, Image, Upload from computer. Drag a corner to resize.
  • Word and PowerPoint: Insert, Pictures, This Device. A 2× file stays crisp at full slide width.
  • Slack, Teams and WhatsApp: attach the file like a photo. WhatsApp compresses pictures sent as photos, so send the PNG as a document if the labels must stay sharp.
  • Jira, Notion and GitHub issues: drag the PNG into the comment box.
  • Email: attach it, or paste it into the message body in Gmail and Outlook.

Very large diagrams

A long Gantt chart or a wide sequence diagram can grow past what a browser can draw in one canvas. To stay safe, the converter caps each side at 16,000 pixels and lowers the scale for that file if needed. If the result is still too small to read, split the chart into two diagrams or switch the flowchart direction from LR to TD so it grows downwards.

When a file won’t render

You will see the message from Mermaid itself, cut to the useful part. A missing diagram keyword on the first line (flowchart, sequenceDiagram, gantt and so on) is the most common cause. Next come unclosed brackets and labels that contain parentheses or a colon; put those labels in double quotes.

Why the PNG is made on your device

The diagram is drawn by the Mermaid library in your browser, painted onto a canvas at the scale you chose and saved as PNG. Diagrams often show internal systems or unreleased plans, and none of that code is sent to a server. Once a conversion has run, the page keeps working without an internet connection.

At a glance

Price
Free. No sign-up, no watermark.
Privacy
Files are processed in your browser and never uploaded.
Accepts
MMD, MERMAID, TXT, MD
You get
PNG
Batch
Convert many files at once and download them as a ZIP
Works in
Chrome, Edge, Firefox and Safari, on phones and computers
Offline
After the first conversion, it keeps working without internet

Questions

How do I export a Mermaid diagram to PNG?

Drop your diagram file on this page, pick a scale and a background, and press Download. Each file becomes one PNG.

Can I get a transparent PNG?

Yes. Set Background to Transparent and the area behind the boxes is left empty, so the picture sits cleanly on a colored slide.

Does it cost anything?

No. There is no sign-up, no watermark and no limit on how many diagrams you export.

Why is my Mermaid PNG blurry?

It was probably exported at 1× and then stretched. Export again at 2× or 4× and insert the new file at the same size.

Can I export several diagrams at once?

Yes. Add all the files together and download the PNGs in one ZIP.

Which size is best for printing?

Use 4×. At that scale a diagram that is 800 pixels wide becomes 3200 pixels wide, plenty for a printed A4 or Letter page.

Can I edit the text in the PNG afterwards?

Not as text. PNG stores pixels. Change the Mermaid code and export again, or use SVG when you need editable labels.