Mermaid online editor

A free Mermaid editor in the browser. No sign-up, a live preview beside the text, and a file or a link when you are done.

Mermaid online means writing a diagram as text in a browser and seeing the picture update beside it. You do not install a desktop app, you do not start a blank canvas of shapes, and you do not create an account before the first preview. Mermaid Drawing is that editor: the text is on the left, the picture is on the right, and both stay on this page until you export a file or copy a link.

People land on this phrase from a few different jobs. A developer pastes a flowchart out of a README to check that the arrows still match the code. A product manager turns a release checklist into boxes so a review meeting can see the order. A support lead sketches who hands a ticket to whom. In each case the useful part is the same. The source is a short text file you can diff, and the picture is something a person who does not read Mermaid can follow.

The editor on the homepage is the one this page sends you to. It already contains a sample. You can replace that sample with your own text, or open the example printed below, which is a small hand-off: describe the step, type it, read the preview, split a step when the picture is crowded, then export or share. Editing the box on this page and then using the button sends your edited copy across. Leaving the box alone opens the printed example.

Nothing on that path asks for a password. There is no workspace to name and no project quota to accept. The preview is the page itself. If you close the tab, the browser keeps a local draft so the same computer can restore it later. That draft is stored in the browser, not in an account on this site. Another computer does not see it unless you carry the text there yourself, either by pasting it or by opening a share link.

A share link is the online version of handing someone the source. Share compresses the current text into the URL fragment, after #pako:, and copies that URL. The fragment is not sent to this site as page content. The person who opens the link gets the text and the preview in their own browser. If the diagram is private, treat the link like the text: anyone who has the URL can read it, so send it only to the people who should see it.

Export is the other way out of the browser. PNG is the file you drop into a slide or a ticket. SVG stays sharp when the picture is scaled. PDF is the file you print or attach when the recipient asked for a document. You can also copy the picture to the clipboard. The export runs from the diagram already drawn on the page. It does not upload the source in exchange for a download.

The first line decides the picture more than any later styling. flowchart TD and graph TD both draw a top-down flowchart. flowchart is the keyword in the current Mermaid documentation. graph still renders, which is why older snippets keep working. Sequence, class, state, ER, Gantt and pie diagrams start with their own keywords instead of TD. This page does not repeat the token-by-token notes for those types. The syntax guide has an editable example of each, and the graph TD and flowchart TD pages exist for the first line alone.

A Mermaid file is easier to review than a pile of dragged boxes when the diagram is really a list of steps. You can put the source in a pull request, comment on one line, and regenerate the picture. You can also keep the source in the ticket and only attach a PNG for people who will not open the editor. The online editor is the place you check that regeneration before you commit the text. It is not a second source of truth. The text is the source. The preview is a reading of it.

There are limits worth knowing before you treat the tab as a drawing studio. The editor is one person in one browser. It does not show another person’s cursor, and it does not merge two people typing at once. Very large diagrams take longer to render and are harder to read as one picture; splitting them is usually clearer than shrinking the type. The optional AI assistant, if you turn it on, calls the provider you choose with your own API key. That call is separate from drawing. Leaving the assistant closed means the only work happening is Mermaid rendering locally.

If you arrived here looking for the official mermaid.live editor, or for a hosted workspace that saves diagrams to an account, read the comparison with mermaid.live, mermaid.ai and draw.io. Those products answer different questions. This page is only the free, no-signup path: open the editor, write Mermaid, read the live preview, and leave with a PNG, an SVG, a PDF, or a link.

Bring an existing snippet if you have one. Paste it over the sample, including the first line, and wait for the preview to settle. A syntax error stays next to the picture with the line that failed, which is usually a missing arrow, an unclosed bracket, or a label that needs quotes because it contains punctuation. Fix that line and the preview replaces the error. Starting from nothing is the same loop with a shorter file: one keyword, two nodes, one arrow, then names that a reader will recognise. Direction, when you need it, is the token after the keyword. TD and TB run top to bottom, LR runs left to right, and the syntax guide shows the rest. Changing direction does not require a new account or a new file. It is one word in the text you already have.

Try it in the editor

The source below is in this page. Change the text box if you want different labels, then open the editor. If you leave the box as printed, the link opens this same example.

flowchart TD
    A[Describe the hand-off] --> B[Type it as Mermaid]
    B --> C[Read the live preview]
    C --> D{Clear enough?}
    D -->|No| E[Split one step]
    E --> B
    D -->|Yes| F[Export PNG, SVG or PDF]
    D -->|Yes| G[Copy a share link]
Open this example in the free Mermaid online editor

How to use the Mermaid online editor

Write a diagram in the browser, check the live preview, and keep a PNG, SVG, PDF, or a share link.

  1. Open the editor. Go to the Mermaid Drawing homepage. The text panel and the live preview are already there. No account is required.
  2. Write the diagram in text. Start with flowchart TD or graph TD, or paste a sequence, class, state, ER, Gantt or pie diagram. The sample on this page is one flowchart you can edit first.
  3. Use the preview, then keep a copy. Read the preview and fix any syntax error it reports. Export PNG, SVG or PDF, or copy a share link. The source stays in the browser.

FAQ

Can I use a Mermaid editor online without paying?

Yes. Mermaid Drawing is free. Opening the editor, watching the live preview, exporting PNG, SVG or PDF, and copying a share link do not require a subscription.

Do I need to sign up before the preview appears?

No. The editor loads in the browser with no account. There is no email field and no trial countdown on the preview, the export, or the share link.

Is the diagram uploaded when I use the online editor?

The diagram source is rendered in your browser. Mermaid Drawing does not receive the text you type. A share link carries that text in the URL fragment, and export downloads a file to your device.

How do I send an online Mermaid diagram to someone else?

Use Share in the editor. The link contains the compressed source after #pako:. The other person opens it in a browser and sees the same diagram, without an account on this site.

Is this the mermaid.live site?

No. mermaid.live is the official Mermaid live editor. This site is Mermaid Drawing, a separate free editor for the same Mermaid language. The comparison page spells out the difference.