N
NJHTools

Timeline Maker

Write time periods and events as Mermaid text and get a clean chronological timeline with live preview and SVG or PNG export. Free, no signup, and it runs in your browser.

Zoom
100%
Export
Mermaid code13 lines

Tab inserts spaces. Press Esc, then Tab, to move focus out. Autosaved in this browser.

PreviewLoading Mermaid…

Rendering…

Example timeline code

This is the Mermaid source loaded in the editor above. Copy it into a Markdown file inside a ```mermaid block and GitHub, GitLab, Notion or Obsidian will render it.

timeline
    title History of the Web
    section Early web
        1991 : First website goes live
        1993 : Mosaic browser
        1995 : JavaScript : PHP
    section Web 2.0
        2004 : Facebook
        2005 : YouTube : Google Maps API
    section Modern web
        2010 : Responsive design
        2015 : ES2015 modules
        2020 : Core Web Vitals

Timeline syntax cheat sheet

SyntaxWhat it does
timelineStart a timeline diagram.
title TextTimeline title.
2020 : EventA time period followed by an event.
2020 : Event A : Event BSeveral events in the same period.
section NameGroup periods under a coloured heading.

How to make a Mermaid timeline

  1. 1Start the code with timeline and an optional title line.
  2. 2Add one period per line followed by a colon and an event.
  3. 3Add more events to a period with extra colons.
  4. 4Group periods into sections such as eras or project phases.
  5. 5Export as SVG or PNG, or copy a share link.

Periods and events

Each line has the form period : event, for example 2024 : Beta launch. The period is free text, so it can be a year, a quarter such as Q3 2025, or a phase name.

Add several events to one period on the same line, as in 2025 : Series A : New office, or put each extra event on its own line starting with a colon.

Sections

Write section Early days to group the periods below it under a heading, until the next section starts. Sections are useful for eras, product versions or project phases.

Periods are drawn in the order you write them, not sorted by date, so list them chronologically yourself.

Frequently Asked Questions

How do I make a timeline in Mermaid?↓

Start with timeline, add title Your title, then write lines such as 2023 : Founded. Each line becomes a point on the timeline.

Can one period have several events?↓

Yes. Separate events with colons on the same line, or continue on the next line starting with a colon.

Does Mermaid sort the timeline by date?↓

No. Periods appear in the order you write them, so keep your lines in chronological order.

Will this diagram render on GitHub, GitLab or Notion?↓

Yes, all three render Mermaid. On GitHub and GitLab, put the code in a fenced code block that starts with ```mermaid. In Notion, add a code block and set its language to Mermaid. Hosted platforms may run an older Mermaid version, so very new syntax can fail there.

How do I export the diagram as PNG or SVG?↓

Use the export buttons above the preview. SVG stays sharp at any size and suits docs and slides; PNG is a raster image that works anywhere images are accepted. Both are created in your browser.

How does sharing work, and is my diagram private?↓

The share link stores your diagram code in the URL hash, the part after #, which browsers do not send to servers. Nothing is uploaded, and your work is autosaved in your own browser. Anyone with the link can see the diagram, so share it only with people you trust.

Last updated: