Loading mermaid.tools…

Gantt chart editor for dated tasks and dependencies

Turn dated tasks and dependencies into a maintainable project schedule without dragging bars across a canvas.

A Gantt chart earns its place once tasks have dates and depend on each other. For a roadmap without exact dates a timeline is lighter, and for branching decisions a flowchart is the right shape.

How to make a Gantt chart online

  1. Declare dateFormat once and keep every task date in that format; a mismatch is the most common reason a Gantt chart refuses to render.
  2. Group tasks into sections that match the phases you actually report on, such as design, build, and release.
  3. Give each task either a start date and a duration, or an after dependency on an earlier task identifier.
  4. Mark milestones and completed work, then export PNG for a status update or PDF for a printed plan.
Mermaid gantt chart: Release plan. Edit this dependent release schedule in Mermaid, inspect the rendered result, and adapt the working source for your own documentation.
Release plan — the starter this page opens with. See the full example.

Gantt chart syntax cheat sheet

What it doesSyntaxNotes
StartganttSelects the Gantt diagram type.
Titletitle Release planAdds a visible chart title.
Date formatdateFormat YYYY-MM-DDDefines how task dates are parsed.
Sectionsection ProductGroups related tasks under a heading.
DurationBuild :build, 2026-09-14, 10dSets an identifier, a start date, and a length.
DependencyReview :after build, 3dStarts a task when an earlier task finishes.

Editable Gantt chart examples

All Gantt chart examples · the whole example library

Frequently asked questions

Which date format should a Mermaid Gantt chart use?

Declare dateFormat explicitly and keep every task date consistent with it. Mixing formats inside one chart is what usually produces a parse error.

Can Mermaid Gantt tasks depend on each other?

Yes. Write after followed by the identifier of the earlier task, which is why every task that others depend on needs an identifier.

Can I print a Gantt chart?

Yes. Export PDF and choose paper size and orientation; landscape usually suits a schedule that runs across several months.

Keep reading

Export formats · Fix diagram errors · all guides

mermaid.tools is an independent editor not affiliated with the Mermaid.js project or Mermaid Chart / mermaid.ai. Diagrams render in your browser with Mermaid 11.17.2.