Recommended Free Tools
In a Mermaid flowchart, a node written with the lowercase identifier end can break parsing. The quick fix is to capitalize it as End or END. If the visible label must stay lowercase, use a different node ID and put end in the displayed text.
Why a node named end breaks a flowchart
Mermaid’s flowchart syntax documentation warns that typing end in all lowercase letters will break a flowchart. The word is significant to the flowchart grammar, so using it as a node identifier can be interpreted as syntax rather than an ordinary node name. Mermaid’s syntax reference also flags end in flowcharts and sequence diagrams; this guidance is specifically about flowcharts, and diagram types do not necessarily share identical parsing rules. A Mermaid issue opened on 2020-06-05 records a reproduction with state --> end, confirming that this has been reported historically, but not that every renderer or version behaves identically.
As an Amazon Associate I earn from qualifying purchases.
Sources: Mermaid flowchart syntax, Mermaid syntax reference, and Mermaid issue #1444.
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Choose a fix based on the label you need
| Fix | Example | Use it when |
|---|---|---|
| Capitalize the node ID | End or END |
You can also change the visible capitalization. Mermaid’s flowchart guide recommends capitalizing one or more letters. |
| Use a separate ID and label | endNode["end"] |
The displayed label must remain lowercase. Mermaid lets a node’s identifier differ from its displayed text, and its syntax reference advises quoting the problematic word. |
Sources: Mermaid flowchart syntax and Mermaid syntax reference.
#1 Best Overall
Fix the diagram step by step
-
Confirm the failing block is a Mermaid flowchart, then find where lowercase
endis used as a node ID or label. -
If changing the displayed case is fine, rename the node to
EndorEND. Update every edge and later reference that uses the old ID. -
If the displayed label must stay lowercase, replace the ID with a distinct name and quote the label. For example:
Free tools Windows power users keep installed
One-click scans. No signup required.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.flowchart LR start --> endNode["end"]Use
endNodein every edge or later reference to that node;endis now its visible text, not its ID. -
If the diagram still fails, inspect nearby syntax and confirm the diagram type. The reserved-word diagnosis explains a specific failure mode; it does not establish that every Mermaid parse error comes from
end.
Syntax guidance: Mermaid flowchart syntax and Mermaid syntax reference.
Quick Recap
Best Value
Rank #4
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Fix the driver behind crashes, sound loss and screen glitches3Clear out junk files and repair common Windows errors




