_                            _     _
| |_ ___ _ __ _ __ ___   __ _(_) __| |
| __/ _ \ '__| '_ ` _ \ / _` | |/ _` |
| ||  __/ |  | | | | | | (_| | | (_| |
 \__\___|_|  |_| |_| |_|\__,_|_|\__,_|

Render Mermaid diagrams as Unicode

Examples
Options
?Horizontal padding inside node boxes
?Vertical padding inside node boxes
?Use ASCII instead of Unicode box-drawing
?Rounded corners on edge turns
Source
⌘ Enter
Output
⌘+Shift+C

What is termaid?

termaid is an open source Python package that renders Mermaid diagram syntax as Unicode text art. Run it directly with uvx termaid or install with pip install termaid to use it as a Python library.

This page runs termaid directly in your browser using Pyodide (Python compiled to WebAssembly). Click an example to see a pre-rendered preview, or hit Render to run your own Mermaid code live. The first render may take a few seconds to load the Python runtime.

Output is designed for monospace fonts.

Currently supports 9 of Mermaid's diagram types: flowcharts, sequence diagrams, class diagrams, ER diagrams, state diagrams, block diagrams, git graphs, pie charts, and treemaps. More coming soon.

$ pip install termaid fasouto/termaid PyPI Site source