Check a diagram for readability before you share it

Use Check diagram to find unlabelled decisions, unconnected nodes, duplicate or long labels, overlapping boxes, low contrast and small text, then fix or dismiss each finding.

Teams and reviews · Updated November 25, 2026 · 4 min read

A diagram can be correct and still hard to read: a decision with two unlabelled exits, two boxes both called "Service", white text on a pale fill. Check diagram looks for these problems in the open diagram and points at each one on the canvas. This guide lists every check, what it means, and how to fix or dismiss it.

Plan: Free, Pro and Pro Max. Checks work on flowcharts, state diagrams, ER diagrams and class diagrams.

Run the check

Open a diagram and choose Check diagram (the clipboard icon in the editor's top bar). A panel opens beside the canvas with a summary, such as 2 warnings · 1 suggestion, and a list of findings, warnings first.

Check diagram beside a flowchart, listing three warnings: two decisions with unlabelled branches and a node that isn’t connected to anything, each with Show and Dismiss

  • Warning: something that probably makes the diagram harder to read.
  • Suggestion: something worth a look, which may be fine as it is.

If the panel says Not available for this diagram, either it's another kind of diagram, or its code has an error. Fix the error first; the checks run on what the canvas draws.

A clean result shows Nothing to flag. That means readable, not right: the checks don't judge whether the design is correct, secure or complete.

What it checks

The checks come in two kinds. Some read the diagram's structure; others measure how it was drawn.

Finding Kind What triggers it
Unlabelled branches Warning A decision (diamond) splits into two or more paths, and some have no label
Not connected to anything Warning A node with no connections, in a diagram that has some
Separate parts Suggestion Groups of nodes that nothing joins together
Duplicate labels Warning Two or more nodes with the same label
Long label Suggestion A label over 50 characters
Shows its id Suggestion A node labelled only with an id such as A, B2 or N3
Overlap Warning Two boxes overlap by a tenth of the smaller one or more
Text doesn't fit Warning A label is bigger than its box
Low contrast Warning Text and fill have a contrast below 4.5:1
Small text Suggestion Labels drawn smaller than 12px

A few details make the results fairer:

  • Labels are compared as plain words, so icons, rich-node markup and line breaks don't count.
  • A node inside a group (a subgraph or composite state) that has connections counts as connected.
  • The start and end points of a state diagram aren't treated as nodes.

Find it on the canvas

Choose Show on a finding to outline the nodes and connections it's about. For Separate parts, the smaller parts are the ones highlighted. Choose Show again, or close the panel, to clear the outline.

Fix a finding

Most fixes are a change to the code, and the finding says what to do: label each branch (for example Yes and No), give a node a label that says what happens there, shorten a label and move the detail into a subtitle or a note, or change the colours in Style.

flowchart LR
  A[Receive order] --> B{In stock?}
  B -->|Yes| C[Ship]
  B -->|No| D[Back-order]

Here the decision's branches are labelled, and every node says what it does, so this diagram passes both checks that a version with B --> C and B --> D would fail.

Two findings offer a fix you can apply in one step:

  • Overlap, when the diagram has positions you set by hand: Switch to automatic layout removes the saved positions, so every node is placed again.
  • Text doesn't fit, when the node was given a size: Let the box fit its text removes that size, so the box grows to its label again.

Choosing the fix shows a preview first: the lines of code it removes and adds. Apply makes the change, and a bar at the top of the panel says Applied with an Undo button. Undo works until the diagram changes again; after that, use Undo in the editor.

Dismiss what you meant

Some findings are deliberate. A legend has no connections; a side-by-side comparison has two separate parts. Choose Dismiss to hide a finding for this diagram.

Dismissals are kept in the diagram's code, in one comment line:

%% flowgraph-checks: {"v":1,"dismissed":["isolated-node:legend"]}

Other Mermaid tools ignore that line, so it travels with the diagram (in exports, in the API, in a repository) without changing the drawing. Show dismissed at the bottom of the panel lists them, and Restore brings one back.

Make it part of your review

Checking takes seconds, so it's worth doing every time a diagram is about to be seen by others:

  1. Before you share a link or export for a document.
  2. Before you choose Mark as reviewed in a diagram's review status. See owners and review status.
  3. After a big change from AI or an import, which can add long or duplicate labels.

To check Mermaid in a pipeline instead, see validate Mermaid diagrams in CI. For keeping a whole set of diagrams readable, see organise a large set of diagrams. The feature is also described in the docs.

More guides