ASCII Mermaid Diagram Tool

Create beautiful Mermaid diagrams and export them as images. Enter your Mermaid code on the left and see the preview on the right.

Mermaid Code Input

Preview

Enter Mermaid code to see preview

About ASCII Mermaid Diagrams

ASCII Mermaid diagrams are text-based representations of Mermaid diagrams, perfect for documentation, terminal output, and anywhere you need diagrams in plain text format. This tool uses the beautiful-mermaid library to convert Mermaid syntax into beautiful ASCII art.

Getting Started

Simply enter your Mermaid diagram code in the input area on the left. The preview on the right will update in real-time, showing you the ASCII representation of your diagram. Use the Copy Text button to copy the diagram with custom indentation, or Export as PNG to save it as an image.

Learn More

To master Mermaid diagrams, explore these resources:

Supported Diagram Types

Live previews of all 5 supported diagram types. Click "Load into editor" to try any example.

Flowchart

graph TD / flowchart LR — decision trees, process flows, pipelines

Rendering…
Sequence Diagram

sequenceDiagram — message passing between participants

Rendering…
State Diagram

stateDiagram-v2 — state machines and lifecycle transitions

Rendering…
Class Diagram

classDiagram — object-oriented class relationships and inheritance

Rendering…
ER Diagram

erDiagram — entity-relationship database schemas

Rendering…