About the Mermaid compiler
Diagram and flowchart generator from text. Runs in your browser. Run Mermaid code in your browser with no install and no signup — the editor, the input and the output share one screen. Mermaid compiles and runs on your own device through WebAssembly, so once the page has loaded it keeps working without a network connection.
Press Run to execute the program, edit it and press Run again, or paste your own code over it. Everything you type stays in the page; the editor caches your work locally so a reload does not lose it.
A Mermaid example
This is the program the Mermaid editor opens with — run it as it is, then change it.
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.min.js"></script>
<style>body { font-family: sans-serif; padding: 2rem; max-width: 800px; margin: auto; }</style>
</head>
<body>
<h1>Mermaid Diagrams</h1>
<pre class="mermaid">
graph TD
A[Start] --> B{Decision}
B -->|Yes| C[Action 1]
B -->|No| D[Action 2]
C --> E[End]
D --> E
</pre>
<pre class="mermaid">
sequenceDiagram
Alice->>Bob: Hello Bob
Bob-->>Alice: Hi Alice
Alice->>Bob: How are you?
</pre>
<script>mermaid.initialize({ startOnLoad: true, theme: 'default' });</script>
</body>
The editor opens with the full program.
More Web UI Frameworks compilers
Browse all 109 languages — the same editor runs each of them, in the browser or on a shared runner.