Presentation slides
Place diagrams on branded Keynote, PowerPoint, or Google Slides backgrounds without a white rectangle.
Transparent background · slides and dark docs
Create Mermaid diagrams that sit cleanly on slides, dark documentation, branded cards, and custom page backgrounds. Preview on a checkerboard, then export a transparent PNG or WebP without a watermark.
No signup · No watermark · Transparent preview · Local browser rendering · Best for slides and branded layouts
Export controls activate after your diagram renders locally.
Transparent export removes the background around the Mermaid diagram while keeping nodes, labels, and connectors readable. It is best paired with a theme that has enough contrast for the destination background.
Place diagrams on branded Keynote, PowerPoint, or Google Slides backgrounds without a white rectangle.
Use transparent export with a readable theme when diagrams need to sit inside dark docs or product pages.
Create diagram assets that can be layered on editorial cards, hero sections, and visual explainers.
PNG is the safest transparent format for slide decks and documentation screenshots.
JPG cannot preserve transparency. It will flatten the diagram onto a solid background.
Transparent does not mean universally readable. Choose a theme that contrasts with the final slide or page background.
FAQ
PNG is the safest transparent format. WebP can also preserve transparency in modern browsers. JPG does not support transparency.
No. The checkerboard is only a preview aid so you can see transparent areas on the page.
The canvas is transparent, but a light style still draws dark lines and dark text meant for white pages. Switch to a dark style such as GitHub Dark, which is free, and keep Transparent background on.
Yes. Use transparent PNG at 2x or 4x for PowerPoint, Keynote, or Google Slides.
Use transparent when the diagram sits on a colored, branded, or dark background so there is no white box around it. Use a solid white background when the destination is already white and you want a predictable, self-contained image.
Yes. Choose GitHub Dark, a free style, to export on a dark canvas, or turn on Transparent background so your own dark slide shows through.
Yes. Mermaid SVG output has no background fill of its own, so it shows whatever sits behind it. That makes SVG a good transparent choice for web pages and Microsoft 365 documents; use PNG when the destination does not accept SVG.
Pass the background flag: mmdc -i diagram.mmd -o diagram.png -b transparent. If you do not want to install Node and Puppeteer for a one-off image, paste the code into the tool above and export a transparent PNG at 2x or 4x instead.
Yes. mermaid.ink returns transparent images by default and accepts a bgColor query parameter when you need a solid color. Use this editor when you want to preview the transparent result on a checkerboard and pick a theme that stays readable on your slide before you download.