- Executors
-
Learn
Learn Python Runnable examples, NumPy, pandas, and more Learn AI / Machine LearningNeural networks, ML and LLMs from scratch Learn C & C++ Pointers, memory, STL, and modern C++ Learn C#C# basics, OOP, LINQ, async, and .NET exercises Learn MatplotlibLine, bar, scatter and pie charts with live visualizers Learn RustOwnership, traits, error handling, and threads Learn GoSlices, interfaces, goroutines, and channels Python Algorithms Search, sorting, recursion, and visualizers O(n) C & C++ Algorithms Compare algorithms implemented in C and C++ Coding for Kids Learn to code by playing!
- QuizzesNew
- ChallengesNew
- For TeachersNew
- Updates
- Buy me a coffee
Visualizers
Mermaid Diagrams in Markdown
Write a diagram here, check that it renders, then copy it as a Markdown block for your README, wiki or docs.
- Runs in your browser
- Instant results
- Free, no sign-up
Loading the tool…
How to use the Mermaid Live Editor
- Write or paste your Mermaid diagram and fix any error the preview shows.
- Choose "Copy Markdown" to copy it inside a ```mermaid code block.
- Paste the block into a .md file on GitHub, GitLab or any tool that renders Mermaid.
Frequently asked questions
Does GitHub render Mermaid in Markdown?
Yes. GitHub draws any ```mermaid code block in README files, issues, pull requests, discussions and wikis. GitLab, Bitbucket, Notion, Obsidian and many docs generators do too.
Why does my Mermaid block show as plain code?
The tool may not support Mermaid, the block may not start with ```mermaid, or the diagram has a syntax error. Paste it here first; the preview shows the line with the problem.
Which diagram types work in Markdown?
All of them, as long as the renderer's Mermaid version supports the type. Flowcharts, sequence, class, state, ER and Gantt diagrams work almost everywhere.
Can I preview Markdown with Mermaid diagrams?
Yes. Our Markdown Preview draws ```mermaid blocks next to the rest of your document.
Syntax cheat sheet
| Code | What it does |
|---|---|
```mermaid | Open a Mermaid code block in Markdown |
flowchart LR ... | The diagram, exactly as in the editor |
``` | Close the code block |
:::mermaid ... ::: | The block style some wikis use (Azure DevOps) |
Practice Python with coding challenges
Solve hands-on problems right in this editor: run the sample tests, submit, and get an AI code review.