Mermaid diagrams in Confluence, drawn the moment you paste them
Flowcharts, sequence diagrams, Gantt charts, ER diagrams, mindmaps and more, from plain Mermaid text. Sharp at any size, in light and dark, with zoom and full screen for every reader. Free, with no account to make and nothing leaving Atlassian.
flowchart TD
start([Request received]) --> check{Complete?}
check -- Yes --> approve[Approve]
check -- No --> ask[Ask for details]
Illustration, drawn in the app's own style
What it does
Mermaid is the text language for diagrams that AI tools and developers already write. This macro draws it on a Confluence page, properly: full width, sharp, in your theme, with the things readers ask for.
Paste anything and it draws
Text from ChatGPT, Claude, Copilot or a Markdown file arrives wrapped in code fences and chat lines. Paste the lot: the fences, the chat text, smart quotes and stray characters are removed, and only the diagram is drawn and saved.
Sharp and full width
Diagrams are drawn as vector graphics at the width of your page, crisp on any screen and at any zoom. A click opens the diagram over the whole window with zoom and pan, for readers who can't edit the page too.
Light and dark
The diagram follows Confluence's theme, even when a reader changes it with the page open, with Atlassian's colours so it looks at home. Pin a single diagram to light or dark if you prefer.
See it as you type
The settings window draws the diagram beside the text, a third of a second after you stop typing. A broken line gets a plain-words message naming the line, and the last good drawing stays while you fix it.
Edit on the diagram
In flowcharts, double-click a step or a label to rename it, drag a step onto another to connect them, press Delete to remove, add a step, undo. Every change is written into the Mermaid text, which stays the only source.
Templates and converters
Ten templates to start from, and four converters that turn plain text into Mermaid with no AI: an outline into a mindmap, arrows into a flowchart, Label: number lines into a pie, Task: start, duration lines into a Gantt.
PNG and SVG download
From the page or from full screen: the SVG as drawn, the PNG at twice the on-page size for slides and documents. Confluence's PDF and Word exports show the diagram as a picture.
Fast on busy pages
Each diagram takes its full height the moment Confluence starts its frame, and a drawing never moves the page again; the ones below the fold draw while the browser is idle. Twenty diagrams on one page is fine.
The current Mermaid
Mermaid 12.3.0 is bundled with the app and named in each diagram's footer. We update it monthly and test every diagram type, plus a set of deliberately hostile and oversized diagrams, against each new version.
Careful by design
Your diagrams are page content, and the app treats them that way.
- The text lives in the page. It's saved as the macro's settings, so it's versioned with the page, found by Confluence search, exported with the page, and covered by the page's permissions, backups and data residency.
- Nothing leaves Atlassian. Drawing happens in your browser, inside Confluence. The app runs on Atlassian Forge, makes no calls to outside services, and stores nothing about your diagrams or your people.
- No account, no AI. Nothing to sign in to. The converters are plain rules, not a model.
- Text and shapes only. Mermaid runs in its strict mode: HTML in labels is drawn as text, and click actions and links in diagram text are ignored, so a diagram can never run script or send a reader somewhere.
Price
Free. There is no licence to buy and no paid tier.
Requirements
- Confluence Cloud (the app is not available for Data Center)
- A Confluence admin to install it; anyone who can edit a page can add a diagram, and anyone who can see the page can read it
Help and FAQ
See also what's new in each release.
1. Adding a diagram
- In the page editor, type
/mermaidor open the macro browser and choose Mermaid by Kitefold. - The settings window opens: text on the left, the drawing on the right. Paste your Mermaid text, pick a template, or paste plain text and press one of the converters.
- Optional: a title (shown above the diagram), a theme (follow Confluence, light or dark) and a width (full width or fit to diagram).
- Press Save, then publish the page as usual.
To change a diagram later, select the macro in the editor and press its pencil (edit) icon. One thing to know: a click inside the drawn diagram doesn't select the macro, because Confluence doesn't pass clicks from an app's frame to the editor. Click the macro's border or its label instead.
2. Pasting from an AI tool
Ask ChatGPT, Claude, Copilot or any assistant for a Mermaid diagram and paste the whole reply if you like. Code fences (```mermaid), lines like “Here's your diagram:”, list numbering, smart quotes, non-breaking spaces and stray text after the diagram are removed, and only the diagram is drawn and saved. If the text isn't Mermaid at all but looks like an outline, a list of steps with arrows, Label: number lines or Task: start, duration lines, the window offers to convert it.
3. The settings window
- The drawing updates about a third of a second after you stop typing. Line numbers run down the left of the text; when a line is wrong, the message names it and its number turns red.
- Start from gives ten templates: flowchart, sequence, class, state, ER, Gantt, pie, mindmap, timeline and git graph.
- Convert from plain text holds the four converters. The result is ordinary Mermaid you can edit.
- Title is shown above the diagram. Theme follows Confluence unless you pin it. Width is full page width, or the diagram's own width if it's narrower.
- Nothing is saved until you press Save; closing the window keeps the page as it was.
4. Editing on the diagram
For flowcharts, the drawing in the settings window can be edited directly, and every change is written into the Mermaid text, which stays the only source of truth:
- Rename: double-click a step, or a label on a connection, type the new name and press Enter.
- Connect: drag a step onto another.
- Remove: click a step or a connection, then press Delete.
- Add: click a step, then press Add step after selected.
- Undo: Ctrl+Z (Cmd+Z on a Mac) while the drawing is focused, as many times as you like.
Shapes can't be dragged to new positions. Mermaid works out the layout from the text every time, so a dragged position would have nowhere to live. To shape the layout, use the direction keyword (flowchart LR for left to right) and the order of the lines. Lines the app doesn't understand are left exactly as they are.
5. Full screen, zoom and pan
Click a diagram, or focus it and press Enter, or use the ⤢ button that appears on hover. The diagram opens over the whole Confluence window with −, +, Fit, 100%, SVG, PNG and Close. Zoom with the mouse wheel, a pinch, the + and − keys or the buttons; drag to pan; the arrow keys nudge; 0 fits; Esc closes. The diagram stays vector at any zoom, and full screen works for anyone who can see the page.
6. Themes
By default a diagram follows Confluence's light or dark theme, using Atlassian's colours: blue steps, yellow decisions and green start and end shapes in flowcharts, and the same family of colours in sequence diagrams, Gantt charts, pies, mindmaps and git graphs. A reader who switches theme sees the diagram switch with it. To pin one diagram, set its Theme to Light or Dark. Theme directives inside the Mermaid text (%%{init: …}%%) are ignored so that every diagram on a site looks like it belongs.
7. Downloads and exports
- Hover a diagram for SVG and PNG, or use the buttons in full screen. Files are named after the diagram's title or type and the date, for example
flowchart-2026-11-22.png. The SVG is the drawing as shown; the PNG is drawn at twice the on-page size. - When you save a diagram, a picture of it is saved with the macro, and Confluence's Export to PDF and Export to Word use it. A diagram saved before this version exports as its text until it's opened and saved once more.
8. Limits and busy pages
- Size: up to about 500 steps or connections and 50,000 characters of text in one diagram. Above that the macro shows “Too large to draw here” instead of a drawing, with a suggestion to split it or group steps into subgraphs. A 300-step flowchart draws in about 3 seconds; a 300-task Gantt in under a second. Gantt task names inside short bars are drawn small by Mermaid, so keep them short.
- Busy pages: each macro on a page is its own small window (that's how Confluence runs apps), and each loads the Mermaid library. On our test page of 20 diagrams every diagram is drawn within about 15 seconds. Each diagram takes its full height the moment Confluence starts its window, and never moves again; the diagrams below the fold draw while the browser is idle.
- First load: the first diagram on a page typically appears within 4 seconds on a cold load; others of the same type follow in well under a second.
- Mobile: in a phone's browser the diagram draws and reads as on a desktop, and full screen works with pinch to zoom. We haven't checked the Confluence mobile apps, so we don't claim them.
9. Errors
A broken diagram never leaves a blank gap. In the settings window the message names the line and the likely fix (“Line 4: expected an arrow (-->) after 'B'”), the line number turns red, and the last good drawing stays until the text is right. On a published page a diagram that can't be drawn shows the message in place of the diagram.
10. Common questions
Does it work with the Mermaid I get from ChatGPT or Claude?
Yes. Paste the whole reply if you like; the code fences and chat text are removed and only the diagram is drawn. See pasting from an AI tool.
Can readers who can't edit the page use full screen and downloads?
Yes. Full screen, zoom and both downloads work for anyone who can see the page. Only people who can edit the page see the settings window.
Can I drag shapes around?
You can rename steps and labels, connect steps, and add and remove them on the drawing (flowcharts). Shapes can't be moved by hand, because Mermaid works out the layout from the text every time. Use the direction keyword and the order of lines to shape the layout.
Which diagram types work?
Everything Mermaid 12.3 draws: flowchart, sequence, class, state, ER, Gantt, pie, mindmap, timeline, git graph, quadrant, user journey, C4, requirement, Sankey, XY chart, block, packet, Kanban and architecture diagrams.
Does it send my diagrams anywhere?
No. Drawing happens in your browser, inside Confluence. The app runs on Atlassian Forge, makes no calls outside Atlassian, and stores nothing about your diagrams or your people. The only thing it keeps is one small record per site with the times a review note was shown or dismissed. See the privacy policy.
Why does a click on the diagram not select the macro in the editor?
Confluence doesn't pass clicks from an app's frame to the page editor. Click the macro's border or its label instead.
The Help link shows a box saying “Opening external page”
That box is Confluence's, shown for any link that leaves Atlassian, from any app. Press Continue to open the help page in a new tab.
The PDF shows my diagram as text
The picture used by exports is saved when a diagram is saved. Open the macro's settings, press Save once, publish, and export again.
Is the Mermaid text searchable?
Yes. Confluence indexes it with the page, so a search for a word inside a diagram finds the page.
What happens if we uninstall the app?
Your diagram text stays in your pages as the macro's settings; the macro shows Confluence's unknown-macro placeholder until the app is installed again, and then draws as before. The one record per site is deleted by Atlassian under its retention rules for Forge apps.
11. Contact support
Email support@kitefold.app. We reply within one working day (Monday to Friday, 9:00 to 17:00 UK time), and the same working day for urgent problems: see support hours and response times. It helps to include your Confluence site address and the diagram text if you can.
Please don't send passwords or API tokens. We'll never ask for them.