Mermaid to JPEG converter
Paste Mermaid source above and export a JPEG for the systems and templates that will not take anything else.
JPEG is the fallback format. It cannot store transparency and it compresses fine detail, so prefer PNG or SVG unless the destination specifically requires JPEG.
How to convert Mermaid to JPEG
- Paste your Mermaid source above and confirm the preview renders.
- Open the export options and choose JPEG.
- Pick a scale and a background colour. JPEG has no transparency, so a colour is always written.
- Raise the quality if thin lines or small labels look soft, then download.
JPEG settings
| Quality | Result | Where it fits |
|---|---|---|
| 60 | Smallest file, visible softening around text. | Only where file size is strictly capped. |
| 80 | Small file, slight softening. | Quick previews and drafts. |
| 92 | Close to the original, moderate file size. A good default. | Most documents and uploads. |
| 100 | Largest file, no visible compression. | Archiving, or diagrams full of small text. |
Because JPEG compresses in blocks, thin diagram lines and small labels are what degrade first. If the result looks fuzzy, raise the quality, raise the scale, or switch to PNG.
Frequently asked questions
Can a JPEG have a transparent background?
No. JPEG has no transparency channel, so the export always writes a solid background colour. Use PNG when the diagram has to sit on an unknown colour.
Why does small text look soft in my JPEG?
JPEG compression discards fine detail first, and diagram labels are fine detail. Raise the quality, raise the scale, or export PNG instead.
Which format should I pick instead?
SVG when the destination supports vectors, PNG when it needs an image with sharp edges or transparency. JPEG is for the places that accept nothing else.
Keep reading
Export guide · the example loaded above · all guides
mermaid.tools is an independent editor not affiliated with the Mermaid.js project or Mermaid Chart / mermaid.ai. Conversion runs in your browser with Mermaid 11.17.2; nothing is uploaded.