Examples

Mermaid diagram examples

Real, ready-to-use Mermaid for every common diagram type. Each one renders live below — open any in the editor to tweak it, or copy the source straight into your docs. Nothing is uploaded.

Turn any example into your own diagram

Every example here is plain Mermaid text — the same syntax GitHub, GitLab and Obsidian render natively. Open one in the Mermaid editor, rename the nodes to your own, and export. To drop a diagram into a repo, see how to embed Mermaid, or compare the syntax with Mermaid vs PlantUML and Graphviz.

Frequently asked questions

Are these Mermaid examples free to use?

Yes. Copy, edit and reuse any example freely — there is no signup, no account and no attribution required. The diagrams render in your browser, so nothing is uploaded.

How do I edit one of these examples?

Click “Open in editor” on any example. It loads the exact Mermaid source into the live editor, where you can change it, see it re-render instantly, and export an SVG or PNG.

Do these diagrams render on GitHub?

Yes. Copy the source and paste it into a fenced ```mermaid code block in a README, issue or pull request — GitHub and GitLab render Mermaid natively, no image needed.

Which diagram types are shown here?

Flowchart, sequence, ER (database), UML class, state, Gantt and mind map. They are all standard Mermaid diagram types, and each links to a dedicated generator with more examples and a syntax cheatsheet.

Can I export an example as an image?

Yes — open any example in the editor, then use the SVG or PNG export buttons. SVG stays crisp at any size; PNG is handy for slides and documents.