Word and email
Use JPG when the destination handles standard image attachments better than transparent PNG or vector SVG.
JPG export · legacy compatibility
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
Export controls activate after your diagram renders locally.
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.
Use JPG when the destination handles standard image attachments better than transparent PNG or vector SVG.
Some CMS image fields reject SVG or WebP. JPG is a predictable fallback for article bodies and help centers.
JPG is useful for older presentation, ticketing, and document tools that only accept common raster files.
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.
| Format | File size at 2x | Transparent background | Resizing | Best for |
|---|---|---|---|---|
| PNG | 178 KB | Yes | Fixed pixels — pick 2x or 4x | Docs, slides, README files, anywhere |
| JPG | 85 KB | No — filled white | Fixed pixels | Upload forms and tools that only take JPG |
| WebP | 38 KB (54 KB transparent) | Yes | Fixed pixels | Websites and blogs where page weight matters |
| SVG | 147 KB, fonts embedded | Yes | Sharp at any size | Docs sites and pages viewed in a browser |
| 129 KB | No — white page | Page sized to the diagram; 2x or 4x image inside | Attaching, printing, and sending for review |
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.
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 cannot preserve alpha. The exporter uses a solid background; use PNG for transparent slides.
JPG diagrams should look like clean document images, not cutouts. Start with Clean Docs or GitHub README.
JPG compression can soften small labels. Higher scale keeps Mermaid text readable after resizing.
FAQ
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.
JPG is a lossy format. Export at 2x or 4x to keep Mermaid labels and connectors readable after compression and resizing.
Choose JPG only for compatibility with Word, email builders, older CMS fields, or strict upload forms that reject PNG transparency, WebP, or SVG.
No. The JPG exporter does not add a watermark.
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.
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.