Mermaid Online

JPG export · legacy compatibility

Mermaid to JPG Converter

Export Mermaid diagrams as standard JPG images for Word documents, email builders, CMS uploads, help centers, and older tools that reject transparent PNG, WebP, or SVG.

No signup · No watermark · Local browser rendering · Solid background · Best fallback for strict upload forms

Paste or edit Mermaid code
Replace the sample below, or load another example.
Load example
Paste Mermaid code here. Preview and export load locally in your browser.
Live previewSample preview · Clean Docs

Write

Preview

Export

Docs Asset

Render & export

Export controls activate after your diagram renders locally.

Flowchart
Mode
Default renderNative MermaidOptimized exportStyled download
Export style
Clean DocsGitHub READMEGitHub DarkTransparent DocsWarm Editorial✦ ProWhiteboard Sketch✦ ProAurora Noir✦ ProBlueprint✦ ProChampagne✦ ProEmerald Suite✦ ProEditorial✦ Pro
Scale
1x2x4x
Or exact width, e.g. 1200px wide
Output: White · comfortable padding
Size: calculated after render
Filename: mermaid-flowchart-white-2x.jpg

When JPG is the right Mermaid format

JPG is not the highest-fidelity diagram format. It is the compatibility fallback: use it when the destination expects a normal photo-style image and rejects transparency, SVG, or modern web formats.

Word and email

Use JPG when the destination handles standard image attachments better than transparent PNG or vector SVG.

CMS uploads

Some CMS image fields reject SVG or WebP. JPG is a predictable fallback for article bodies and help centers.

Legacy workflows

JPG is useful for older presentation, ticketing, and document tools that only accept common raster files.

PNG, JPG, WebP, SVG or PDF: the same diagram in each format

One 16-line flowchart, exported from this editor in the Clean Docs style on a white background at 2x. Sizes change with the diagram, but the ratios between formats hold. Every format is free and has no watermark; the Mermaid to image converter exports all five from one preview.

FormatFile size at 2xTransparent backgroundResizingBest for
PNG178 KBYesFixed pixels — pick 2x or 4xDocs, slides, README files, anywhere
JPG85 KBNo — filled whiteFixed pixelsUpload forms and tools that only take JPG
WebP38 KB (54 KB transparent)YesFixed pixelsWebsites and blogs where page weight matters
SVG147 KB, fonts embeddedYesSharp at any sizeDocs sites and pages viewed in a browser
PDF129 KBNo — white pagePage sized to the diagram; 2x or 4x image insideAttaching, printing, and sending for review

What JPG does to a diagram

JPG has no transparency, so a transparent style is exported on a white background. It is also lossy: the exporter saves at 92% quality, which keeps labels readable but can leave faint halos along thin lines and small text. For the flowchart in the table above, the 2x JPG is 85 KB against 178 KB for PNG.

If the destination accepts it, WebP is smaller still at 38 KB and keeps edges cleaner, and PNG is lossless. Choose JPG when a form, CMS field or older tool only takes .jpg or .jpeg files.

Keep a JPG diagram sharp

Export at 2x for documents and 4x for slides or print, so labels survive compression and any resizing the destination applies. A white-background style such as Clean Docs suits JPG best, because nothing has to be flattened. For a Word document, the Word guide covers sizing the image once it is inserted.

JPG export rules

No transparency

JPG cannot preserve alpha. The exporter uses a solid background; use PNG for transparent slides.

White background by default

JPG diagrams should look like clean document images, not cutouts. Start with Clean Docs or GitHub README.

Use 2x or 4x

JPG compression can soften small labels. Higher scale keeps Mermaid text readable after resizing.

FAQ

Questions about this Mermaid export workflow

Does JPG support transparent Mermaid backgrounds?+

No. JPG does not support transparency. Use PNG or WebP if you need alpha; use JPG only when a destination needs a standard flattened image.

Why can JPG look softer than PNG?+

JPG is a lossy format. Export at 2x or 4x to keep Mermaid labels and connectors readable after compression and resizing.

When should I choose JPG over PNG?+

Choose JPG only for compatibility with Word, email builders, older CMS fields, or strict upload forms that reject PNG transparency, WebP, or SVG.

Will the JPG export add a watermark?+

No. The JPG exporter does not add a watermark.

How do I convert Mermaid to JPEG?+

Paste the Mermaid code into the converter on this page and click Download JPG. JPG and JPEG are the same format; the file is saved with a .jpg extension and works anywhere .jpeg is accepted.

What JPG quality does the exporter use?+

92%. That keeps labels and connectors readable while roughly halving the file size compared with PNG for a typical diagram. Export at 4x if the image will be printed or enlarged.