Convert MERMAID to PNG

Turn MERMAID files into PNG. The diagram drawn in the default theme at its natural size.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop MERMAID files on the dialor turn it to pick what to do

Your Mermaid diagram as a PNG image.The diagram is drawn in the default theme at its natural size.

  1. What you get

    One PNG file with your diagram drawn from the Mermaid code. It uses the default theme and the diagram's natural size.

    PNG is a lossless image format with an alpha channel, so the lines and text keep sharp edges.

  2. What you can change

    This conversion has no options. The theme and the size are fixed. To change the size of the image afterward, use resize PNG.

  3. When it fails

    If the Mermaid code cannot be parsed, the conversion stops with input_corrupted. The file needs to hold valid Mermaid code for a diagram to be drawn.

MERMAID and PNG.What each format is.

The formats

From · MERMAID

Mermaid Diagram

Diagram code in the Mermaid language: flowcharts, sequences, classes, Gantt charts.

Extensions
.mmd .mermaid
MIME type
text/x-mermaid
Kind
Text and data
To · PNG

PNG

Lossless raster images with an alpha channel. Screenshots, icons and graphics with sharp edges.

Extensions
.png
MIME type
image/png
Kind
Images

In your code.The same MERMAID to PNG conversion through the API, for your app or your agent.

terminal
$ cv convert report.mmd report.png
$ cv convert report.mmd report.png

Questions.What people ask about MERMAID to PNG.

01OF 04

No. The diagram is drawn in the default theme, and there are no options to change it.

The diagram is drawn at its natural size. To make it larger or smaller, you can resize the PNG afterward.

The file could not be parsed as Mermaid code. The conversion stops and no image is made.

One file, a single PNG for the diagram.

More conversions.Other ways in and out of MERMAID and PNG.