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.
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.
Open the editor at sketmi.com — no sign up needed.
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.
Edit the diagram in the text panel. The diagram re-renders live as you type.
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
- Participants and actors:
participant,actor, and Mermaid aliases (participant GW as API Gateway). - Messages:
->>,->,-x,-)become solid arrows;-->>,-->,--x,--)become dashed arrows. The arrowhead style (open, cross or async) is not kept. - Notes:
Note over,Note left of,Note right of. - Fragments:
loop,alt/else,opt,critical,break, andpar(the labels of itsandbranches are lost). Arecthighlight is removed but the messages inside it are kept. - Title:
title My Diagram, ortitle:in the front matter.
Dropped or not converted
activateanddeactivatelines, and the+/-activation shortcuts on messages, are dropped. Add activation bars afterwards with the editor's own syntax (see the syntax guide).autonumberand%%comments are ignored.- Other syntax, such as
boxorcreate/destroy, is not converted. Check the preview after importing.
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:
| Platform | How to use it |
|---|---|
| GitHub | Wrap in a fenced code block tagged mermaid in any .md file or PR description |
| GitLab | Same fenced code block syntax — renders in issues, MRs, and wikis |
| Notion | Insert a code block, set language to Mermaid, paste the content |
| Obsidian | Fenced code block tagged mermaid in any note |
| VS Code | Markdown Preview Mermaid Support extension |
| Confluence | Requires 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:
- Import your Mermaid diagram via Import → Mermaid
- Export via Export → PlantUML to download a
.pumlfile
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.
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.