DevToolsmith

Mermaid User Journey Syntax

A user journey diagram scores how a user feels at each step of a task, from 1 (frustrated) to 5 (happy), and shows who is involved. Edit the example below and the diagram redraws as you type; every example on this page can be opened in the editor.

Runs 100% in your browser — nothing is uploaded

Mermaid code
Tip: drop a file here272 chars · 272 bytes · 10 lines
DiagramRendering…

Loading Mermaid…

What a Mermaid user journey is for

A user journey diagram scores how a user feels at each step of a task, from 1 (frustrated) to 5 (happy), and shows who is involved. It is a quick way to show where an experience hurts.

User Journey syntax

SyntaxMeaning
journey Start a user journey
title Text Title
section Name A stage of the journey
Step: 3: Actor Step with a score from 1 to 5 and who does it
Step: 4: Actor A, Actor B Several actors

Basic example

journey
    title Sign up for a trial
    section Discover
        Find the site: 4: User
        Read pricing: 3: User
    section Sign up
        Fill in form: 2: User
        Verify email: 1: User, Mail system
    section First use
        Create first project: 5: User

Open this example in the Mermaid editor

Common mistakes

  • Scores run from 1 (worst) to 5 (best); the face on each step follows the score.

Use it in Markdown

```mermaid
journey
    title Sign up for a trial
    section Discover
        Find the site: 4: User
        Read pricing: 3: User
    section Sign up
        Fill in form: 2: User
        Verify email: 1: User, Mail system
    section First use
        Create first project: 5: User
```

GitHub, GitLab, Azure DevOps, Obsidian, Notion and docs generators such as Docusaurus and MkDocs (with a plugin) draw fenced mermaid blocks. Check it locally in the Markdown preview.

Other Mermaid diagrams

Sources

Spotted a mistake? Email hello@devtoolsmith.com and we’ll fix it.

Frequently asked questions

How do I start a Mermaid user journey?

Begin the diagram with the keyword journey on its own line, then add one statement per line. In Markdown, wrap the whole diagram in a fenced code block with the language mermaid so GitHub, GitLab and most docs sites draw it.

How do I export a Mermaid user journey as an image?

Paste the diagram into the editor on this page and use SVG or PNG above the preview. SVG stays sharp at any size and can be edited further; PNG is exported at twice the screen resolution for slides and documents. Nothing is uploaded.