Articles
Published · November 18, 2026

Keep a Trip Itinerary in a Single Plain-Text File

One Markdown file can hold your whole trip: a heading per day, ISO 8601 times, a bookings table and a checklist. Here is the structure, with a full example.

Also in: Español中文हिन्दी

A plain text travel itinerary is one file with a heading per day, a table for bookings, and a checklist for loose ends. It opens on any device, works with no signal, and doesn't depend on any one app staying around.

That works because Markdown was designed for it. Its creator wrote that a Markdown-formatted document should be publishable as-is, as plain text, without looking like it has been marked up. Your itinerary stays readable even in an editor that never renders a single heading.

Below is the structure we use, in the order you'd build it, then a complete example file you can copy.

Quick answer

Make one .md file for the trip. Put the trip name and dates at the top. Give each day its own ## heading. Write times on the 24-hour clock. Keep confirmation numbers in a table near the top, and keep tasks as - [ ] checkboxes. Paste in links and addresses as they are.

An itinerary is, at heart, a schedule of planned travel events: destinations, times, and how you get between them. A text file with one heading per day maps onto that directly. Nothing to sync, export, or log in to.

Step-by-step

Name the file and set the header

Start the file name with the first travel date, so trips sort in order in any file list. We cover the reasoning in date-first file names. A name like 2026-12-18-lisbon-trip.md works.

Inside, the first lines carry the trip title, the date range, and who is going. In your own file, open with a single # heading for the trip name, then use ## for each day.

One heading per day, with 24-hour times

Give each day an H2 and write dates as YYYY-MM-DD. ISO 8601 uses the 24-hour clock, writes times as hh:mm, and the same page notes that the compact YYYYMMDD form should be avoided in plain text.

Zones matter on travel days. A time with no designator is assumed to be local time, which is ambiguous when you cross zones. For a flight, add the offset (Z for UTC, or +hh:mm) so the arrival is unambiguous:

## 2026-12-18 Fri: Fly out

- 09:40 Depart, gate B12
- 21:15+00:00 Land

Pick one convention and keep it for the whole file. You'll scan a day at a glance.

Put bookings in a table

Confirmation numbers belong in one place, not scattered through the days. A GitHub Flavored Markdown table is a header row, a delimiter row, and one row per booking. Colons in the delimiter row set alignment. For more on the syntax, see Markdown tables.

| What     | Where / ref  | Dates             |
| -------- | ------------ | ----------------- |
| Flight   | Ref ABC123   | 2026-12-18        |
| Lodging  | Ref 998877   | 2026-12-18 to 22  |
| Rail     | Ref QWE456   | 2026-12-20        |

The pipes don't have to line up for the table to render. Aligning them makes the raw file easier to read, and that's the point of plain text.

Track to-dos with checkboxes

The same GFM spec defines task list items: a list item that begins with a bracket, a character, and a closing bracket. If the character between the brackets is a space, the box is unchecked. An x, lowercase or uppercase, marks it done. Task lists can also nest, so a parent task can hold its sub-steps.

- [ ] Check passport expiry
- [x] Book airport transfer
- [ ] Pack
  - [ ] Chargers
  - [ ] Adapter

If packing is its own project, keep it as a reusable packing list and link to it from the trip file.

Add addresses and links as they are

GFM turns a bare https:// or www. address into a link, so you can paste a map link or a booking page straight under the entry it belongs to. The original Markdown rules use angle brackets for the same job: <https://example.com/>. We go into the details in GFM autolinks. Copy the address you will need at the door as plain text too, in case you are offline.

The complete file

# Lisbon trip, 2026-12-18 to 2026-12-22

## Bookings

| What    | Where / ref | Dates            |
| ------- | ----------- | ---------------- |
| Flight  | Ref ABC123  | 2026-12-18       |
| Lodging | Ref 998877  | 2026-12-18 to 22 |

## 2026-12-18 Fri: Fly out

- 09:40 Depart
- 21:15+00:00 Land
- 22:30 Check in

## 2026-12-19 Sat

- 10:00 Walk the old town
- 13:00 Lunch

## To do

- [ ] Check passport expiry
- [ ] Download offline maps

Common problems and fixes

Headings that don't render

In CommonMark, an ATX heading is one to six # characters followed by at least one space or tab. #hashtag and #5 bolt are paragraphs, not headings. If a day heading shows up as plain text, check for the missing space.

Lines that run together

A single line break inside a paragraph is a soft break, so two lines can render as one. A backslash at the end of a line is a hard line break in CommonMark. Use it when an address needs to keep its lines. Our guide to line breaks that run together covers the other options.

Losing the only copy

One file is easy to carry and easy to lose. Keep a second copy where another device can reach it. A 3-2-1 backup plan takes an afternoon and covers it.

Doing this with Carets

Carets is a native notes and code editor for iPhone, iPad, and Mac. It opens Markdown and plain text files as files, with syntax highlighting, and organizes them into projects and tags. That suits an itinerary: the trip is one file you can tag with the trip name and open in seconds on whichever device is in your hand.

It's built for iOS and Mac rather than wrapped around a web page, so files open fast. And since your itinerary stays a plain file, you can move it to any other editor later. Get Carets on the App Store for iPhone, iPad, and Mac, and start your next trip file there.

Frequently Asked Questions

Should I use .txt or .md for an itinerary?

Either works. Use .md if you want headings, tables, and checkboxes to render in a Markdown editor. The file stays readable as plain text either way.

How do I make times unambiguous across time zones?

Write dates as YYYY-MM-DD and times on the 24-hour clock. A time with no zone designator is read as local time, so add an offset such as +09:00 on flights that cross zones.

Will the checkboxes be clickable?

The [ ] and [x] syntax is a GFM task list marker. Whether it is clickable depends on the app. In plain text you can edit the character by hand.

Where should I keep confirmation numbers?

In a bookings table near the top of the file, one row per booking, so you can find them without scrolling through the days.