Create Mermaid flowchart, sequence, and ER diagrams

Type Mermaid syntax and see the diagram update instantly. Create flowchart, sequence, and entity relationship diagrams, export crisp SVG or PNG, switch themes for readability, and save to the cloud when you're ready to share.

  • Free for files up to 300 KB
  • No account needed
  • Processed in your browser
1flowchart LR
2A[lucide:git-pull-request Open pull request]
3A --> B{Checks pass?}
4B -- yes --> C[lucide:eye Review]
5B -- no --> D[lucide:wrench Fix and push]
6D --> B
7C --> E[lucide:git-merge Merge]
Valid7 lines MMD
A flowchart of a pull request: checks, review, fix and merge
USED BY INDIVIDUALS AT
AmazonNetflixAtlassianDeloitteContentful
OTHER FORMATS
WHAT YOU CAN DO

Write Mermaid, see live preview

Type Mermaid flowchart, sequence, or erDiagram syntax and get an accurate, instant preview you can trust in docs and reviews.

Fast, accurate Mermaid editor

A tuned editor with smooth pan/zoom, keyboard-first editing and legible defaults for wikis and repos. No plugins or build steps required.

Live preview and themes

Switch themes and adjust styling for clarity in dark or light docs. Keep contrast and typography balanced for readability.

Export and share

Export crisp SVG/PNG for wikis and slide decks, or share a link for quick reviews. Assets stay sharp at any size.

Mermaid diagram editor for documentation and wikis

Mermaid is a text syntax for diagrams. ToDiagram supports Mermaid flowchart, sequence, and entity relationship diagrams, with live preview and one-click export to SVG or PNG. It works well for documentation, wikis, and version-controlled repos because the source stays easy to review and update.

Get Started
SEARCHdeploy2 results
A deploy pipeline flowchart searched for deploy: the two deploy steps are outlined
Type a word. The nodes whose labels match are outlined.
THE EDITOR

Why ToDiagram is the best Mermaid diagram editor

Every view of the same file

Graph, tree, table and charts, side by side.

Edit on the diagram

Double-click a key or a value. The file changes with it.

Search and collapse

Find any key or value and fold the rest away.

Compare two versions

See what changed between two files.

Validate and query

JSON Schema, jq and JSONPath built in.

Bring data from anywhere

Paste, drop a file, use a live URL or connect Supabase.

FREE AND PRO

Free for files up to 300 KB. Pro for everything larger.

See pricing
FREE
  • Create diagrams up to 300 KB
  • Store and share up to 3 diagrams
  • PNG, JPEG, SVG & MP4 export
PRO
  • No diagram size limit
  • Edit directly on the diagram
  • Save 200 diagrams (vs 3)
  • High-res image exports
What is Mermaid and how does it work?
Mermaid is a text syntax for diagrams. You write steps and connections as plain text, and the editor renders a visual diagram (for example flowchart, sequence, or entity relationship). It is ideal for docs, wikis, and repos because the source is easy to version control, review, and maintain.
Does ToDiagram show a live preview for Mermaid?
Yes. Type Mermaid syntax and see the diagram update instantly in the same window. ToDiagram supports flowchart, sequence, and entity relationship (erDiagram) diagrams.
How do I export Mermaid diagrams?
Use one click export to SVG or PNG. SVG is vector based and stays sharp at any size. PNG works well for screenshots, slide decks, and tools that prefer raster images. You can set background and scale for clean embeds.
Is my Mermaid diagram data private?
ToDiagram runs locally in your browser. Your text and diagrams are processed on the client and are not sent to servers unless you choose to save to your account or share a link. This keeps drafts and sensitive docs private by default.
Do I need to install anything?
No. Open ToDiagram in a modern browser and start typing. There are no extensions or build steps. This keeps setup simple for you and your teammates.
Can I collaborate and share diagrams?
Yes. Save to the cloud to create shareable links or use team workspaces. Teammates can open the same diagram, view it in the browser, and export assets for docs and wikis.
Can I import existing Mermaid code?
Yes. Paste your Mermaid text into the editor and it will render immediately. You can continue editing, change themes, and export new assets without changing your original source.
How large can my diagrams be?
There is no hard size limit. Performance depends on your device. ToDiagram is optimized for large documents and remains responsive with smooth pan and zoom in common cases.
Does ToDiagram support themes and dark mode?
Yes. Switch between light and dark themes and adjust styling for readability. The visual design aims for accessible typography and balanced contrast so diagrams remain clear on screen and in print.
Is ToDiagram free to use?
You can start in the browser for free. Advanced features like cloud save and team sharing are available on paid plans. You can create and export diagrams without installing anything.
FREE TO START

Try it on your own data

Paste a file or drop one in and read it as a diagram. No account needed.