Mermaid Diagram Editor
Type Mermaid syntax and render a diagram on this device. The Mermaid library is loaded only when you render, with a strict security level that does not run HTML labels or click hooks.
Input
Result
Preview
How to use Mermaid
- Enter Mermaid sourcePaste a flowchart, sequence, class, or other supported diagram, or start from an example.
- Render the diagramMermaid loads in this tab and draws the preview. Nothing is sent to a server.
- Export or copyDownload SVG or PNG, or copy the source to use in documentation.
Limits and how it works
- The source stays on your device and is not uploaded.
- Diagrams that rely on HTML labels or click hooks will not behave the same as they would with a loose security level.
- Very large diagrams may be slow or may hit the character limit.
- This is not a substitute for mermaid.live accounts, versioned files, or a documentation site.
How Mermaid diagrams are rendered on this page
This page renders Mermaid diagrams in your browser with the MIT-licensed Mermaid 11 library. The library is loaded only when you render a diagram, so it is not part of the site's main script.
Rendering uses Mermaid's strict security level. HTML in node labels is encoded, and click or callback hooks are not executed. Icon packs are not fetched from the internet.
Your source and the rendered diagram stay in this tab. Closing or refreshing the page discards unsaved work unless you already copied or downloaded it.
Frequently asked questions
Is my diagram uploaded?
No. Rendering happens in your browser. Nothing is sent to a server.
Why are HTML labels disabled?
The editor uses Mermaid's strict security level so labels cannot run HTML or scripts. Type plain text labels instead.
Does the Markdown editor also render Mermaid?
No. The Markdown editor does not render Mermaid fences. Use this page for diagrams.
Which Mermaid version is this?
Mermaid 11.17.2, loaded on demand, with the MIT license.
Related tools
All toolsMarkdown Editor
Write Markdown and preview sanitized HTML, then download .md or .html.
SVG to PNG Converter
Render SVG vector graphics to transparent PNG at any size.
SVG Optimizer
Shrink SVG in your browser with SVGO, without running the file in the page.
HTML to Markdown
Convert HTML to Markdown in your browser. Nothing is uploaded.