About Mermaid Editor
Mermaid turns plain text into diagrams, which makes it a good fit for documentation that has to change with the code. This editor gives you a source box and a live preview: type a diagram and the SVG is re-rendered after a short pause so you can see the structure without switching tools.
Eight templates cover the diagram types people ask for most, from flowcharts and sequence diagrams to gantt and mindmaps, but the box accepts any Mermaid diagram type the library supports. Syntax errors show Mermaid's own message so you can fix the line, and the finished diagram exports as SVG, PNG, PDF or the original .mmd source.
What this tool does
Live preview with a debounce
The diagram re-renders 300 ms after typing stops, so editing a long source stays responsive.
Eight starting templates
Flowchart, sequence, class, ER, state, gantt, pie and mindmap templates show valid Mermaid 12 syntax.
Mermaid syntax errors
A failed render shows the library's error message instead of leaving a blank panel.
Any supported diagram type
The editor is not limited to the templates; any Mermaid diagram the bundled library supports can be pasted in.
SVG, PNG, PDF and .mmd export
Download the rendered SVG, a 2x PNG for slides, a one-page PDF, or the Mermaid source to keep in a repository.
200 KB and no upload
Sources up to 200 KB are accepted, and the editor never sends the diagram to a server.
How to use Mermaid Editor
- 01
Start from a template or blank source
Pick one of the eight templates to see valid syntax for a diagram type, or clear the box and type your own Mermaid source.
- 02
Watch the live preview
The diagram renders again 300 ms after you stop typing; the source size indicator shows how much of the 200 KB budget is used.
- 03
Fix syntax errors
If the render fails, read Mermaid's message in the preview panel, correct the line in the source, and wait for the next render.
- 04
Copy or download the source
Copy the source to the clipboard or download it as a .mmd file for version control and documentation pipelines.
- 05
Export an image
Download the rendered diagram as SVG for documents, a 2x PNG for slides and chat, or a one-page PDF for printing and handoff.
How this tool works
- Works with
- Mermaid source
- Processing
- Client-side, in your browser. Nothing is uploaded.
- Maximum size
- 200 KB source
- Requirements
- Chrome, Edge, Firefox or Safari with JavaScript enabled · No installation or account; diagrams render on your device
Limitations worth knowing
- Very large or complex diagrams render slowly and the source is capped at 200 KB, because layout runs in the browser.
- Mermaid chooses the layout automatically; there are no drag handles for placing individual nodes.
- PNG export is rasterized at a fixed 2x scale, so print use is better served by SVG.
- The editor does not store diagrams; download the .mmd or copy the source before closing the tab.
Privacy and file handling
Your Mermaid source is rendered and exported entirely in this browser tab. It is never uploaded, no copy is stored on a server, and no network request carries the diagram. The SVG, PNG, PDF and .mmd files are generated locally.
Read the full privacy policy
