Flowchart & Diagram Maker (Mermaid)
Free flowchart and diagram maker using Mermaid. Write flowcharts, sequence, ER and Gantt diagrams as text, preview them live, and export SVG or PNG.
Mermaid is a text syntax for diagrams: you describe boxes and arrows in a few lines and it lays them out for you. This editor renders flowcharts, sequence diagrams, class and state diagrams, entity-relationship diagrams, Gantt charts, pie charts, mind maps, timelines and git graphs as you type, with starter templates for each. Export the result as SVG or PNG; the Mermaid library loads once from a CDN and your diagram text never leaves your browser.
Runs in your browser. The processing engine downloads once on first use, then the tool works offline. Your files never leave your device. Free, no sign-up.
Features
- Live preview with error messages
- 11 starter templates
- Five built-in themes
- SVG and high-resolution PNG export
- Zoom in, out and fit
- Autosaved on your device
How to use Flowchart & Diagram Maker (Mermaid)
- Pick a template (flowchart, sequence, ER, Gantt …) or start typing Mermaid code.
- Watch the preview update; syntax errors show with the line where Mermaid got stuck.
- Choose a theme and zoom to check the layout.
- Download the diagram as SVG or PNG, or copy the SVG code. Your text is autosaved in this browser.
Frequently asked questions
What is Mermaid?
Mermaid is an open-source JavaScript library that turns a Markdown-like text description into diagrams. GitHub, GitLab, Notion, Obsidian and many documentation tools render Mermaid code blocks, so a diagram written here can be pasted straight into a README inside a ```mermaid block.
How do I make a flowchart in Mermaid?
Start with "flowchart TD" (top-down) or "flowchart LR" (left-right), then write connections such as A[Start] --> B{Is it valid?}. Square brackets make a box, curly braces a decision diamond and round brackets a rounded box. Add text on an arrow with -->|yes| C.
Why does my diagram show a syntax error?
Common causes are a missing diagram type on the first line, special characters such as parentheses or quotes inside a label (wrap the label in double quotes), or a keyword like end used as a node name. The error message shows the line Mermaid could not parse.
SVG or PNG — which should I export?
SVG is a vector file: it stays sharp at any size and is best for web pages and documents that accept it. PNG is a bitmap that works everywhere, including slides and chat apps; the export renders at twice the screen size for sharpness.
Is my diagram uploaded?
No. Mermaid runs in your browser and the text is stored only in this browser's local storage so you do not lose it. Nothing is sent to a server.
Related tools
- Markdown Editor — Live preview and Markdown ⇄ HTML conversion
- Chart Maker — Turn a table into a chart and export a sharp PNG
- HTML, CSS & JS Playground — Live HTML/CSS/JS editor with a sandboxed preview and console, saved on your device
- JSON Formatter — Format, validate and minify JSON
- Cron Expression Generator — Build and explain cron schedules with next run times