Free tool

Mermaid syntax checker

Paste a diagram that won't render. The checker runs Mermaid's own parser in your browser, shows the line where it stops, explains the usual causes in plain words, and fixes the safe ones for you. The sample below has five mistakes typical of code written by a chatbot.

Checking…

Preview

Nothing drawn yet: the preview appears as soon as the code parses.

Tired of fixing generated code? Arrowly turns plain notes into a diagram whose Mermaid always parses.Draw a diagram from notes

Describe it in words instead

Paste notes about a process, a team or an exchange between systems. Arrowly draws the flowchart, org chart or sequence diagram and gives you Mermaid code that always parses. 3 free diagrams a day, no signup.

Draw from my notes

What it checks

Two layers. First, the real Mermaid parser: if it accepts the code, the diagram renders the same way in any tool that uses a recent Mermaid version. Second, a list of known mistakes, matched line by line, so the error message comes with a reason.

ProblemExampleAuto-fix
Markdown fence pasted with the codeA first line with three backticks and “mermaid”, and a last one with three backticksRemoves the fence lines
Parentheses or quotes in a labelA[Call API (v2)]Quotes the label: A["Call API (v2)"]
Special characters in a link label-->|Yes (fast)|-->|"Yes (fast)"|
Single-dash arrow in a flowchartA -> BA --> B
end as a node nameC --> endRenames it End
Typographic arrowA → BA --> B (flowchart), ->> (sequence)
No diagram type on topA --> B aloneAdds flowchart TD
Sequence message without a colonAlice->>Bob helloAlice->>Bob: hello
Semicolon in a sequence messageA->>B: one; twoTurns it into a comma
Space in a node idmy node --> BNo: explained, fix by hand
Subgraph without endsubgraph Team … (no end)No: only you know where it stops
Bracket not closedA[Start --> BNo: the line is pointed out

Auto-fixes never touch a line that already works, and every fix is a change you could make by hand. Click one problem at a time if you want to see each change.

Reading Mermaid's error message

Mermaid errors look cryptic but follow one pattern: the line number, a caret under the place where reading stopped, then what the parser expected and what it got. The last word, after got, is the clue.

The parser message for A[Call API (v2)]
Parse error on line 2:
...art TD  A[Call API (v2)] --> B[Done]
----------------------^
Expecting 'SQE', 'DOUBLECIRCLEEND', 'PE', ... got 'PS'

PS means “parenthesis start”: the parser saw ( inside a label and took it for the start of a round shape. The full list of messages and their causes is in Fix Mermaid from ChatGPT.

Privacy

Your code stays in the page. Parsing and drawing run in your browser with the same Mermaid renderer Arrowly uses; nothing is sent to a server, so internal architecture diagrams are safe to paste.

Questions

Why does my diagram work on GitHub but not here (or the reverse)?

Each platform ships its own Mermaid version. Newer versions add syntax (like the @{ shape: … } node shapes) that older ones reject. If a diagram must render everywhere, stick to the classic syntax shown in the cheat sheet.

Can it check sequence diagrams, Gantt charts or ER diagrams?

Yes for validity: the parser checks every diagram type Mermaid supports. The plain-language explanations and auto-fixes cover flowcharts and sequence diagrams, where most errors happen.

Does it change the meaning of my diagram?

No. Fixes only change syntax: quotes around a label, a missing colon, an arrow written the Mermaid way. Problems that need a decision, like where a subgraph ends, are explained but left to you.