Events and eras from a table or CSV · SVG, PNG and PDF

Timeline Maker

List events (one date) and eras (a start and an end), group them by category, and get a horizontal or vertical timeline whose labels are moved apart so none overlap.

Entries

Leave the end blank for an event. Dates: 1066, 500 BC, 2024-03, 2024-03-14 or 14 Mar 2024.

LabelStartEndCategoryRemove

Import

Drop a CSV or XLSX

Columns: label, start, end (optional), category (optional)

Look

Timeline

Add an entry with a label and a start date to draw the timeline.

The PDF holds the timeline as a 2× picture; the SVG keeps text selectable. A bare end year runs to 31 December and an end month to its last day.

Timeline Maker from a Table or CSV

Operator: Abdulla Al Fahad. How tools are built and checked

A timeline has to draw very different durations on one axis, a century-long war next to a five-year plague next to a single date, without the labels landing on each other. Rows with a start, an optional end and an optional category become eras (bars) and events (flags with a stem), and the page moves every label to a free lane.

Type the rows into the table, paste them, or load a CSV or XLSX with label, start, end and category columns. Choose horizontal or vertical, pick a day, month, year or decade scale or let the page pick, and export SVG, PNG or PDF.

Key features

  • Events (a start only) as flags with a stem and eras (a start and an end) as bars, up to 500 rows
  • Dates as 1066, 500 BC, 2024-03, 2024-03-14, Mar 2024 or 14 Mar 2024, with a day-first or month-first setting for slash dates
  • Horizontal or vertical layout, in four lengths from 800 to 2,600 px
  • Day, month, year and decade scales, chosen automatically from the span, with labels moved to free lanes above and below the axis and eras into free rows so none overlap
  • Categories with a legend and a colour picker each, an optional title and optional dates under events

Which dates are read, and how labels are kept apart

Dates are stored as day numbers in the proleptic Gregorian calendar, so years before 1000 and before year 0 plot correctly. A BC year is plotted as the negative of its number, so 500 BC is -500. Calendars have no year 0 (1 BC is followed by 1 AD), but the axis does, which stretches the BC/AD boundary by one year: 1 BC to 1 AD plots as 2 years and 100 BC to 100 AD as 200, where the real gap between those 1 January dates is 1 and 199 years. A bare year starts on 1 January; as an end date it runs to 31 December, and an end given as a month runs to that month's last day. The Hundred Years' War from 1337 to 1453 therefore spans 42,733 calendar days, counting both ends.

The automatic scale is days up to 75 days of span, months up to about three years, years up to 150 years and decades beyond that. Ticks are placed at multiples of a step chosen so that labels stay at least 74 px apart horizontally and 38 px vertically: for the 1337 to 1453 example at the standard 1,200 px length the year scale places a tick every 10 years, from 1340 to 1450.

How it works

Events are sorted by date and placed greedily. Each flag's label runs from its stem to the right, and the page picks the side and lane where the label overlaps nothing placed earlier and where its stem crosses no other label. If no such lane exists the stem is allowed to cross a label, which gets a white outline so it stays readable.

Typical uses

  • A history teacher loads 40 rows of medieval events from a spreadsheet and gets a vertical timeline that prints on one A4 page by choosing the compact length.
  • A product manager lists 25 milestones and 8 phases across 14 months, uses the month scale, and exports a PNG for the quarterly slide.
  • A museum designer plots the periods of ancient Egypt as eras from 3100 BC to 30 BC. The decade scale at the standard length labels a tick every 200 years over that span.
  • A novelist plots a character's life as an era, with births and deaths of the others as events, to keep a saga's ages consistent.

Building one

  1. Edit the table, or drop a CSV with label, start, end and category columns (other column names are guessed from common ones).
  2. Pick direction, scale and length, and give the categories colours.
  3. Check the notices for any row whose date could not be read, then export SVG, PNG or PDF.

Example

Rows (label, start, end, category)

Hundred Years' War, 1337, 1453, War
Black Death, 1347, 1351, Society
Printing press, 1440, , Tech

Timeline

Scale: years, with a tick every 10 years from 1340 to 1450. Two bars, the 117-year war and the 5-year plague, in separate rows below the axis; the printing press as a flag above it dated 1440; a legend with Society, Tech and War.

Things to check before you rely on it

A timeline PDF is a picture of the chart, so its labels cannot be searched or copied; the SVG keeps them as text.

  • Give related items one category name spelled the same way; a stray capital letter creates a second category and a second colour.
  • Use month precision for plan dates you only know roughly: 2025-06 draws at 1 June and an era ending 2025-06 covers all of June.

Common errors and how to fix them

"Row 4: "March 5th" is not a date I can read."
Spell out the year and drop the ordinal: 5 Mar 2025 or 2025-03-05. Rows with unreadable dates are left out of the chart until they are fixed.
"Row 7: the end is before the start, so the two were swapped."
Check which of the two dates is wrong. The chart draws the era between them either way, but the table keeps your original values.
"The file needs at least a label column and a start-date column."
Add a header row. Columns named label, title or event are read as labels, and start, date or from as starts; otherwise the first two columns are used.

Horizontal and vertical placement

In the horizontal layout events sit above and below the axis and eras fall into rows beneath everything else, so a long bar never crosses a flag. In the vertical layout events sit to the right of the axis in lanes whose width grows with their labels, and eras become columns to its left, with their names written to the left of each bar.

If a crowded stretch of the axis makes the chart tall or wide, shorten the labels or choose a longer axis; the font size is fixed.

BC dates and the common era

Tick labels for years before 1 AD read '500 BC', counted on the negative axis, so a span from 500 BC to 500 AD gets ticks every 100 years labelled 500 BC, 400 BC and so on up to 100 BC, then 0, 100, 200 and up to 500. The tick labelled 0 marks the BC/AD boundary on the axis, although no calendar has a year 0. Enter AD years as plain numbers or with AD or CE, and BC years with BC or BCE.

Frequently asked questions

Can an era have a label inside its bar and a date range?

The label goes inside the bar when it fits and after the bar when it does not. The date range is in the hover text of the bar, in the exported SVG as a title element, and in the entries CSV.

How are two events on the same day shown?

They get separate lanes with their own stems. Both dots sit on the same point of the axis, and the second label moves up or down a lane so the two do not collide.