Auto-detect and render Mermaid diagrams on any website. ChatGPT, GitHub, Stack Overflow, Confluence — everywhere you find code blocks.
Mermaid code blocks are automatically rendered into diagrams — no clicking, no copying, no extra steps.

Works on ChatGPT

Works on Stack Overflow
Built for developers who want Mermaid diagrams everywhere without any friction.
Finds Mermaid code blocks via CSS class selectors and keyword matching. No manual action needed.
Renders using Mermaid.js 11.x in an isolated offscreen document for maximum compatibility.
Shadow DOM prevents style leakage between the diagram and the host page. Zero conflicts.
MutationObserver catches dynamically loaded content. Works with single-page apps and infinite scroll.
Edit in Mermaid Editor, Copy SVG, Show/Hide Code — all from a floating toolbar on each diagram.
No analytics, no telemetry, no tracking. All rendering happens locally in your browser.
Any page with a Mermaid code block — the extension detects it automatically.
Three steps. No configuration.
Add from the Chrome Web Store. One click, no configuration.
Visit any page with Mermaid code — ChatGPT, GitHub, Stack Overflow, anywhere.
Code blocks are automatically replaced with rendered SVG diagrams. Like magic.
Mermaid Anywhere processes everything locally in your browser. No data leaves your machine — ever.
A robust architecture that works reliably across all websites — even those with strict CSP policies.
Scans the page for Mermaid code blocks using CSS selectors and keyword matching.
Routes rendering requests between the content script and offscreen document.
Runs Mermaid.js in isolation to render code into SVG without CSP conflicts.
Injects the SVG diagram back into the page, fully isolated from host styles.
The offscreen document pattern ensures Mermaid.js never executes in the host page's context. This avoids CSP violations, prevents style conflicts, and provides consistent rendering across all websites — from ChatGPT to corporate Confluence instances.
Install Mermaid Anywhere and never copy-paste Mermaid code again. Free, open source, and private by design.
Built by Mermaid Editor — the free online Mermaid diagram tool.
Paste Mermaid code from ChatGPT to render, edit, and export diagrams online.
Explore all 21 diagram types supported by Mermaid.js and Mermaid Editor.
Download diagrams as high-resolution PNG images up to 8x.
New to Mermaid? Learn the basics and create your first diagram.