Mermaid OnlineTools

Guide · Mermaid in Confluence

How to Embed Mermaid Diagrams in Confluence

Confluence has no built-in Mermaid rendering. Marketplace apps can add it, but they cost money per user and need a site admin to install — a blocker on most company wikis. The zero-permission alternative: render the Mermaid diagram in your browser, export a high-resolution PNG, and upload it to the page like any other image. It works in every Confluence plan, Cloud or Data Center.

No signup · No watermark · No Marketplace app · No admin approval needed

Does Confluence render Mermaid natively?

No — apps optional, images universal

Out of the box, Confluence Cloud and Data Center do not render Mermaid syntax. Paid Marketplace apps (such as Mermaid diagram macros) add live rendering, but they require admin installation, per-user licensing, and they keep the diagram locked to that app. An exported PNG needs none of that: anyone who can edit a page can add the diagram, and it displays for every viewer regardless of which apps the site has.

Add a Mermaid diagram to a Confluence page

  1. 1

    Paste your Mermaid code

    Drop your architecture flow, sequence diagram, or ERD code into the converter below. Rendering happens locally in your browser — internal system designs never leave your machine.

  2. 2

    Style it for the wiki

    Clean Docs on white matches Confluence's document look. For architecture pages that get screenshot into slides later, consider exporting a second transparent copy.

  3. 3

    Export a PNG at 2x

    A 2x PNG keeps node labels sharp when readers zoom or when the page is exported to PDF. PNG previews reliably inline in Confluence, unlike SVG attachments.

    Export settings for Confluence: Clean Docs style, 2x scale, PNG format
  4. 4

    Upload to the page

    Drag the PNG into the Confluence editor, or use the image/attachment insert. Add the Mermaid source in a code block below the image so teammates can regenerate it.

    Mermaid diagram PNG attached to a Confluence wiki page with its Mermaid source code block

Export your diagram here

Paste your Mermaid code below, pick a style, and download the image. Everything renders locally in your browser — no signup, no watermark.

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 READMEWarm EditorialWhiteboard SketchTransparent DocsGitHub DarkSlide DarkDeep Ocean
Scale
1x2x4x
Or exact width, e.g. 1200px wide
Output: White · comfortable padding
Size: calculated after render
Filename: mermaid-flowchart-white-2x.png

Which format works best in Confluence?

PNG at 2x — most reliable

PNG displays inline in every Confluence plan and PDF export. 2x scale keeps dense architecture diagrams readable without zooming.

SVG attachments are inconsistent

Confluence stores SVG uploads as attachments and inline preview varies by configuration. Stick to PNG unless you control the site settings.

Keep the source in a code block

Paste the Mermaid code in a code block under the image. Anyone can copy it back into the converter, update the diagram, and replace the PNG.

FAQ

Questions about this workflow

Can Confluence render Mermaid without a Marketplace app?+

No. Confluence has no built-in Mermaid engine. Either install a paid Marketplace app (requires a site admin) or insert the diagram as an exported PNG image, which works on every plan with no installation.

Why not just use a Mermaid Marketplace app?+

Apps add per-user cost, need admin approval that many teams cannot get, and tie your diagrams to that specific app. A PNG plus the Mermaid source in a code block is portable and free.

Do SVG files work in Confluence?+

SVG uploads become attachments and whether they preview inline depends on the site's configuration and security settings. PNG is the format that displays reliably for every viewer.

How do teammates edit a diagram that was inserted as an image?+

Keep the Mermaid source in a code block next to the image. A teammate copies the code into the converter, makes the change, exports a new PNG, and replaces the attachment on the page.