Mermaid

Mermaid Sequence Diagram Editor — Online, No Install

Paste a Mermaid sequenceDiagram block into Sketmi and edit it in your browser with a live preview. Export back to Mermaid, or convert to PlantUML, PNG, or SVG — no Java, no CLI, no sign up.

Open Editor PlantUML Editor

How import and export works

Sketmi does not edit raw Mermaid syntax directly. Instead, it works like this: you import a Mermaid diagram, the editor converts it to its native plain-text format, you edit it with a live preview, and then you export back. The native syntax is similar to Mermaid's, so the structure of a diagram (participants, messages, notes, fragments) survives the trip. Some details don't: arrowhead styles are normalised and activation lines are dropped, as listed under what is supported.

1

Open the editor at sketmi.com — no sign up needed.

2

Click Import → Mermaid in the toolbar and paste your block (the sequenceDiagram keyword is optional there). Pasting a block that starts with sequenceDiagram straight into the text panel converts it too.

3

Edit the diagram in the text panel. The diagram re-renders live as you type.

4

Export when done. Use Export → Mermaid for a .mmd file or Export → PlantUML for .puml, or Download → PNG or SVG for an image.

Mermaid syntax example

Here is a Mermaid sequence diagram for a REST API request with a cache check. You can paste this directly into the Import Mermaid dialog:

sequenceDiagram
    actor Client
    participant GW as API Gateway
    participant Backend
    participant Cache

    Client->>GW: GET /api/products
    GW->>Cache: Check cache key
    Cache-->>GW: Cache miss
    GW->>Backend: Forward request
    alt 200 OK
        Backend-->>GW: 200 + JSON payload
        GW->>Cache: Store response (TTL 5min)
        GW-->>Client: Return products
    else Error
        Backend-->>GW: 500 Internal Error
        GW-->>Client: 503 Try again later
    end

After importing, you can rename participants, add messages, reorder the flow, and export back.

What the Mermaid import supports, and what it doesn't

Sketmi handles Mermaid sequence diagrams only. Flowcharts, class diagrams, Gantt charts and other Mermaid diagram types are not supported.

Converted on import

Dropped or not converted

Exporting to Mermaid

Export adds the sequenceDiagram header and swaps participant aliases into Mermaid's order, putting a display name that contains spaces in quotes. Messages are written as they are, and in Mermaid plain -> and --> draw lines without arrowheads; use ->> and -->> in the editor if you want heads in the exported file.

Where Mermaid diagrams render natively

A .mmd file exported from Sketmi can be used anywhere Mermaid is supported:

PlatformHow to use it
GitHubWrap in a fenced code block tagged mermaid in any .md file or PR description
GitLabSame fenced code block syntax — renders in issues, MRs, and wikis
NotionInsert a code block, set language to Mermaid, paste the content
ObsidianFenced code block tagged mermaid in any note
VS CodeMarkdown Preview Mermaid Support extension
ConfluenceRequires a third-party Mermaid app from the Atlassian Marketplace

Converting Mermaid to PlantUML

If your diagram needs to end up in a JetBrains IDE, or in Confluence with a PlantUML app, you can convert it in two steps without any local tooling:

  1. Import your Mermaid diagram via Import → Mermaid
  2. Export via Export → PlantUML to download a .puml file

The resulting PlantUML file uses standard @startuml / @enduml notation and renders in any PlantUML-compatible tool. See the PlantUML editor guide for more on PlantUML workflows.

Try it now — free, no account

Open the editor, paste your Mermaid diagram, and export in seconds.

Open Editor

Frequently asked questions

Can I edit Mermaid sequence diagrams online?

Yes. Paste your Mermaid sequenceDiagram block into Sketmi and it converts it to the native editor format automatically. You can then edit it with a live preview and export back to Mermaid, PlantUML, PNG or SVG. No install required.

Does it export back to Mermaid?

Yes. After editing, use Export → Mermaid to download a .mmd file compatible with GitHub, GitLab, Notion, and Obsidian.

What Mermaid syntax does this support?

Sequence diagrams only: participants and actors with aliases, solid and dashed arrows, notes, title, and the loop, alt/else, opt, critical, break and par fragments. Activation lines, autonumber and box are not converted. The full list is above.

Can I convert a Mermaid diagram to PlantUML?

Yes. Import your Mermaid diagram via Import → Mermaid, then use Export → PlantUML to download a .puml file. This is the fastest way to convert between the two formats without any local tooling.

Is this a Mermaid live editor?

It is a live editor, but it does not edit raw Mermaid syntax — it converts Mermaid to its own plain-text format and renders that live. If you need to edit raw Mermaid syntax directly, the official Mermaid Live Editor at mermaid.live is the right tool. Sketmi is better suited for editing, sharing, and exporting diagrams without any workflow setup.

Related resources