# 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.

- URL: https://tools.crawlink.com/mermaid-diagram-editor
- Category: Developer Tools
- Price: Free, no account, no usage limits
- Privacy: Runs in your browser. The processing engine downloads once on first use, then the tool works offline. Your files never leave your device.

## What it does

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.

## 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

1. Pick a template (flowchart, sequence, ER, Gantt …) or start typing Mermaid code.
2. Watch the preview update; syntax errors show with the line where Mermaid got stuck.
3. Choose a theme and zoom to check the layout.
4. Download the diagram as SVG or PNG, or copy the SVG code. Your text is autosaved in this browser.

## FAQ

### 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.

Also searched as: flowchart maker, mermaid live editor, diagram maker, sequence diagram online, mermaid editor, er diagram online, gantt chart maker, text to diagram.

## Related tools

- [Markdown Editor](https://tools.crawlink.com/markdown-editor): Live preview and Markdown ⇄ HTML conversion
- [Chart Maker](https://tools.crawlink.com/chart-maker): Turn a table into a chart and export a sharp PNG
- [HTML, CSS & JS Playground](https://tools.crawlink.com/html-editor): Live HTML/CSS/JS editor with a sandboxed preview and console, saved on your device
- [JSON Formatter](https://tools.crawlink.com/json-formatter): Format, validate and minify JSON
- [Cron Expression Generator](https://tools.crawlink.com/cron-expression-generator): Build and explain cron schedules with next run times

---
Part of Tools by Crawlink — https://tools.crawlink.com/ · All tools: https://tools.crawlink.com/llms.txt
