Confluence · Diagrams
How do you add a Mermaid diagram to a Confluence Cloud page?
Confluence Cloud does not render Mermaid on its own: pasted Mermaid code stays a code block. You either render the diagram elsewhere and insert an image, or install a Marketplace app that draws the diagram from the code inside the page.
Updated
The short answer
Confluence Cloud has no built-in Mermaid renderer. If you paste Mermaid syntax into a page, or into a code block, you get the code, not the diagram. This is the experience reported on the Mermaid project's own discussion board and on the Atlassian Community.
That leaves two routes. You can render the diagram outside Confluence and insert it as an image, or you can install an app from the Atlassian Marketplace that turns Mermaid code into a diagram inside the page. The first costs nothing and needs nothing installed. The second keeps the diagram editable as text, which is the reason people choose Mermaid in the first place.
Route 1: render elsewhere, insert an image
Mermaid is an open-source library. Its documentation lists the diagram types it supports, among them flowcharts, sequence diagrams, class diagrams, state diagrams, entity-relationship diagrams, Gantt charts, pie charts and mindmaps. Any tool built on it can export a PNG or SVG that you then upload to the page.
The cost shows up later. The image no longer carries its source, so the next person who needs to change an arrow has to find the original code, edit it, export again and replace the attachment. On a page that documents a live system, that is the step that gets skipped, and the diagram drifts away from the text. If you go this way, keep the Mermaid source on the page too, for example in a collapsed code block under the image.
If the diagram comes from a README written in Markdown, the Confluence Cloud editor converts most of that Markdown when you paste it. For Confluence Data Center, or for anything that still reads wiki markup, our free Markdown to Jira and Confluence converter turns the README into wiki markup and keeps the Mermaid block as a code block.
Route 2: a Marketplace app
The Marketplace lists dozens of Mermaid apps for Confluence Cloud. Atlassian Labs publishes a free one, Mermaid diagrams viewer: you write the Mermaid code in a code block and add the app's macro, which renders it. Its listing notes that the source stays in the code block if the app stops working.
Before you pick one, check four things on the listing rather than on a blog post: whether it runs on Atlassian Forge, what data leaves your site and why, which Mermaid diagram types it renders, and what happens to existing pages if you uninstall it or a licence lapses.
What Mermaid Studio does
Mermaid Studio is our app for this. It adds a macro to the Confluence editor with a live editor and an instant preview, starter templates, five colour themes and dark mode. It renders flowcharts, sequence diagrams, Gantt charts, class and ER diagrams, state machines, pie charts and mindmaps, and you can copy the SVG for free. It is free for teams of up to 10 users.
The paid tier adds two things: describe a diagram in plain English and have AI write the Mermaid for you, and export any diagram to PNG or SVG. The app runs on Atlassian Forge. Only the optional AI feature sends your prompt outside Atlassian, to an AI provider, to generate the code. Because of that outbound call, it does not carry the Marketplace's Runs on Atlassian badge.
How to choose between the two routes
Use an image if the diagram is a one-off, for a page nobody will edit again. Use an app if the diagram describes something that changes, such as an architecture, a process or an on-call flow, because then the text is the diagram and the next edit is a few characters, not a redraw.
If your company does not allow any data to leave Atlassian, choose an app that does not call outside services, or keep the AI feature switched off. Read the data section of the listing, not only the feature list.
Limits
We checked the behaviour of Confluence Cloud and the Marketplace listings on 28 November 2026. Atlassian changes Confluence often, and native Mermaid support may arrive later. We did not compare the quality of other Mermaid apps, and this article makes no claim about them beyond what their own listings say.
Sources
Questions and answers
Does Confluence Cloud support Mermaid diagrams natively?
No. As of November 2026, Mermaid code pasted into a Confluence Cloud page, or into a code block, is shown as code. To see the diagram you need either an exported image or a Marketplace app that renders it.
What is the free way to show a Mermaid diagram in Confluence?
Render the diagram with any Mermaid tool, export it as PNG or SVG and insert the image, keeping the source code on the page. Atlassian Labs also publishes a free Marketplace app, Mermaid diagrams viewer, that renders Mermaid from a code block.
Does Mermaid Studio send my diagrams outside Atlassian?
No for rendering: it runs on Atlassian Forge. Only the optional AI feature sends the prompt you type to an AI provider to generate Mermaid code.
How to cite this
Going Stellar (2026). How do you add a Mermaid diagram to a Confluence Cloud page?. GOING STELLAR S.R.L..
https://goingstellar.ro/methods/mermaid-diagrams-in-confluence-cloud/