Basic release timeline
Start with timeline, add a title, then put each label before a colon and its event after it.
timeline
title Release milestones
January : Plan the release
February : Build the prototype
March : Launch the betaA timeline places events on labels you choose. Mermaid keeps the order you write; it does not sort dates or measure the gaps.
Browse timeline examples ↓Copy a complete example or open it in the editor to change the labels and events. These examples use horizontal timelines supported by this editor.
Start with timeline, add a title, then put each label before a colon and its event after it.
timeline
title Release milestones
January : Plan the release
February : Build the prototype
March : Launch the betaUse section to group phases. A line starting with a colon adds another event to the previous label; you can also separate events with colons on one line.
timeline
title Product launch
section Prepare
Week 1 : Interview customers
: Define the scope
Week 2 : Build prototype : Review feedback
section Launch
Week 3 : Open the beta
Week 4 : Public releaseLabels can be words, years, or ranges. Mermaid keeps the order you write: this example shows a future goal before a look back. Reorder the lines yourself for chronological order.
timeline
title Planning notes
Next year : Expand the product
Last year : Validate the idea
Today : Review progressA Mermaid timeline is a sequence of labels and events. Each label is text — a month, a year, or a word — followed by a colon and an event. A line that starts with a colon adds another event on the same label. section groups a run of labels into a phase. Spacing does not mean duration, and Mermaid will not reorder 'Next year' to the right of 'Last year'. Use a timeline for milestones and histories. Use a Gantt chart when a bar's length has to mean days of work.
Use a timeline for a release story, a company history, or an incident narrative. Use a Gantt chart for a schedule with durations and dependencies. Use a git graph when the events are commits and merges.
Edit this timeline diagram in the live editor, read the Mermaid cheat sheet, or compare it with Gantt Chart, Git Graph and Flowchart.
| Element | Syntax | Description |
|---|---|---|
| Start | timeline | Declare a timeline diagram |
| Title | title Timeline Title | Timeline heading |
| Event | 2024 : Event description | Text label followed by an event |
| Multiple events | : Second event | Additional event under the previous label |
| Section | section Period Name | Group events by period |
Expecting Mermaid to sort date labels into chronological order.
Write the labels in the order you want them drawn. The timeline does not parse dates.
Using a timeline to show how long a task took.
Bar length is not duration here. Move that schedule to a Gantt chart.
Forgetting the colon, so the event is part of the label.
Every event needs a colon: March : Launch the beta.
Timelines are often shared as images in a roadmap doc. SVG stays sharp, and PDF suits a printable plan. Free PNG exports include a watermark.
High-resolution images for documents and presentations.
Scalable vectors for web and further editing.
Print-ready format for professional documentation.
Got Mermaid code from ChatGPT? Paste it here to render and export instantly.
All 21 diagram types in one PDF reference.
Open the editor with this example pre-loaded and start customizing.