Mermaid · No signup · Nothing uploaded

CONSORT flow diagram generator

Draw the CONSORT 2025 participant flow diagram for your randomised trial as plain text — assessed, excluded, randomised, allocated, followed up and analysed, per arm, with counts at every box. It renders on your device, so unpublished trial numbers never leave it.

load example
Preview

Worked example: exported from this page, counts checked

The figure is the default two-arm example from the editor above, exported with the SVG and PNG buttons on 1 October 2026 and not edited afterwards. The table under it runs the same diagram text through the count check the editor shows below the preview.

CONSORT 2025 flow diagram exported from Diagramgen: 412 assessed for eligibility, 172 excluded, 240 randomised, 120 allocated to each arm, 113 and 112 analysed for the primary outcome.
Unedited export. SVG 807 × 1,214 px (24 KB) · PNG at 2× scale, 1,614 × 2,428 px (300 KB). Download SVG · Download PNG

Count check for this example

BoxCalculationResult
Randomised [R] 412 − 172 = 240 ✓ adds up
Randomised [R] 120 + 120 = 240 ✓ adds up
Analysed for primary outcome [D1] 120 − 5 − 2 = 113 ✓ adds up · usually equal
Analysed for primary outcome [D2] 120 − 7 − 1 = 112 ✓ adds up · usually equal
Excluded [X] 118 + 41 + 13 = 172 ✓ adds up
Allocated to intervention [B1] 116 + 4 = 120 ✓ adds up
Allocated to control [B2] 119 + 1 = 120 ✓ adds up

Each row is one rule of the participant flow. Totals with a breakdown (excluded, allocated) must equal their parts; a row marked “usually equal” is a convention check that can differ for a legitimate reason you explain in the text.

Version and sources

  • Reporting guideline: CONSORT 2025 — Hopewell S, Chan AW, Collins GS, et al. CONSORT 2025 statement: updated guideline for reporting randomised trials. BMJ 2025;389:e081123, published 14 April 2025. It consists of a 30-item checklist and a diagram for the flow of participants, and its authors recommend using it with the CONSORT 2025 explanation and elaboration paper. doi:10.1136/bmj-2024-081123
  • Box wording compared on 1 October 2026 with the CONSORT 2025 flow diagram template (a Word file) from the CONSORT and SPIRIT website. The template’s footer cites the article as volume 388; PubMed and Europe PMC list it as volume 389, which is what we cite above. consort-spirit.org

What the templates cover

  • Two-arm parallel-group trial — the default example and the blank template, with the four phases of the official diagram: enrolment, allocation, follow-up and analysis.
  • Three or more arms — one more box per phase for each arm; the count check reads arms B1 to B9.
  • Designs with their own CONSORT extension — for example cluster, crossover, factorial, non-inferiority or multi-arm trials — may need extra boxes or wording; the CONSORT 2025 statement lists those extensions. The templates here draw the standard diagram only.

What this page is not

  • Not affiliated with or endorsed by the CONSORT group. CONSORT 2025 is their guideline; this page only draws its flow diagram from your text.
  • Not a substitute for the 30-item CONSORT 2025 checklist.
  • The count check is arithmetic on the numbers you typed. It cannot tell whether those numbers are right, and it only runs while the boxes keep the template ids (A, X, R, B1, C1, D1 …).

Getting the figure into a manuscript

  • SVG keeps the diagram as vectors, with every label as real text. We opened the exported file in librsvg 2.62, a renderer that is not a web browser: all labels rendered inside their boxes.
  • For LaTeX, convert the SVG to PDF and include the PDF as the figure. We ran this command on 1 October 2026; the PDF kept the text selectable and every count could be read back out of it:
    rsvg-convert -f pdf -o consort.pdf consort-flow-diagram-generator.svg
  • PNG is rendered at twice the diagram size on a white background. In dark mode the export uses the dark theme and a dark background, so switch your system to light mode before exporting a journal figure.
  • Labels wrap at about 200 px, so long reasons make a box taller, not wider. The line breaks are written into the SVG, so a different fallback font (the file asks for IBM Plex Mono, then Menlo, Consolas, DejaVu Sans Mono or Courier New) does not re-wrap the text.
  • Not tested by us: inserting the figure into Microsoft Word or Overleaf, or uploading it to a particular journal system. Check your journal’s figure requirements before submitting.

The CONSORT 2025 flow diagram, briefly

CONSORT is the reporting guideline for randomised trials, and its flow diagram shows how participants moved through the four phases of a two-group trial: enrolment, intervention allocation, follow-up and data analysis. The updated CONSORT 2025 statement was published on 14 April 2025, with a 30-item checklist and the revised diagram.

In the 2025 diagram the follow-up boxes ask for participants who discontinued the intervention and for those lost to follow-up for the primary outcome, and the analysis boxes ask for the number analysed for the primary outcome and the number excluded from analysis, each with reasons. The templates on this page use that wording; the three-arm example shows how to extend the same structure to more groups.

Make the numbers reconcile

Editors and reviewers check the arithmetic first. Randomised must equal assessed for eligibility minus excluded, and the excluded reasons must add up to the excluded total. In each arm, allocated equals received plus did not receive. Participants who discontinue the intervention can still be followed up and analysed, so under an intention-to-treat analysis the number analysed for the primary outcome is usually allocated minus lost to follow-up for the primary outcome minus excluded from analysis — which is how every example here adds up.

The editor checks this as you type and names, under the preview, any box that does not add up. The analysed-for-primary-outcome line is flagged as “usually equal” only: if you imputed missing outcomes, analysed can legitimately equal allocated. Because the diagram is text, changing a count is a one-word edit and the chart re-renders, so the figure stays in step with your final dataset.

From trial database to journal figure

Start from the blank two-arm template while recruitment runs, fill in counts once the data are locked, and keep the Mermaid source with your statistical analysis plan so the figure can be regenerated. Export SVG for a vector figure that stays sharp in a PDF, or PNG if the journal wants a raster image.

Rendering happens in your browser: recruitment numbers and exclusion reasons from an unpublished trial are never uploaded. For systematic reviews rather than trials, use the PRISMA flow diagram generator instead.

Frequently asked questions

What is a CONSORT flow diagram?

It is the participant flow chart recommended by the CONSORT statement for reporting randomised trials. It shows how many people were assessed for eligibility, excluded, randomised, allocated to each group, lost to follow-up, and analysed, so readers can see who dropped out where and why.

Does this follow CONSORT 2025?

Yes. The templates use the box wording of the CONSORT 2025 flow diagram published in April 2025, compared with the official template on 1 October 2026: excluded with its three reasons, allocated with received and did not receive, discontinued intervention and lost to follow-up for the primary outcome, and analysed for the primary outcome with exclusions from analysis.

How do I draw a trial with three or more arms?

Add one box per phase for each extra arm and one more arrow from Randomised — the three-arm example shows the pattern. The phase bands stay the same.

Do the counts have to add up?

Yes. Randomised equals assessed minus excluded, the arms add up to randomised, each arm’s allocated equals received plus did not receive, and the analysed count usually follows from allocated, losses and exclusions. The editor checks these as you type and names the box that does not add up; it is arithmetic only and never blocks export.

Can I submit the exported figure to a journal?

Export SVG for a vector figure — its labels are real text, so it converts cleanly to PDF — or PNG where a raster image is required; there is no watermark. We have not tested specific journal submission systems, so check your journal’s figure requirements, and keep the text source so you can update the counts in one line if a reviewer asks.

Is my trial data uploaded?

No. The diagram renders entirely in your browser, so recruitment numbers and exclusion reasons from an unpublished trial stay on your device.