Skip to content
Mermaid templates

Flowchart

Classic flowchart with decisions, IO and processes.

Template previewMermaid
Rendering…

What this template contains

Diagram type
Flowchart
Source
8 lines

When to use it

Choose this for a small process with a yes/no decision. Its input-validation example keeps the successful and error paths visible, making it a useful starting point for a procedure or a short tutorial. Compare it in flowchart and workflow templates

A small workflow with two outcomes: valid input is processed and written to an output; invalid input shows an error and ends. The example source below makes both branches explicit. Read the guide: Turn text into a flowchart

Make it your own.

flowchart TD
    A([Start]) --> B[/Read input/]
    B --> C{Valid?}
    C -- yes --> D[Process]
    C -- no --> E[/Show error/]
    D --> F[/Write output/]
    F --> G([End])
    E --> G