Skip to content
FeaturesPricingBlogDownload

← All posts

Zettelkasten in Markdown: IDs, links and a note template

Build a Zettelkasten in Markdown with one idea per file, timestamp IDs, standard links and index notes. Note templates and a folder layout included.

A clean diagram card on a light background showing three small note files with timestamp IDs connected by arrows to an index note

A Zettelkasten in Markdown is a folder of small .md files, one idea per file, each with a unique ID in its file name and links to the notes it relates to. You write each note in your own words, link it to at least one existing note, and keep a few index notes that point into the web of ideas. Because the notes are plain files with standard Markdown links, the system works in any editor and does not depend on one app's plugin or database.

Below is the folder layout, an ID scheme, two note templates, and the linking rules that keep a Markdown slip-box useful after a few hundred notes.

What is a Zettelkasten?

A Zettelkasten ("slip box" in German) is a note system built from short, linked notes. The sociologist Niklas Luhmann kept one on paper index cards for decades and credited it with much of his writing. His cards are digitized at the Niklas Luhmann Archive.

Three ideas carry over to Markdown:

  • One idea per note. Each note makes a single point you could quote on its own. People call these atomic notes.
  • Every note has a fixed address. Luhmann numbered his cards, so a reference never broke when he added more. In a folder of files, the ID plays that role.
  • Notes link to notes. The value comes from the connections, not from the folder a note sits in.

Sönke Ahrens popularized a common workflow in How to Take Smart Notes (2017): quick fleeting notes while you read or think, literature notes that summarize a source in your words, and permanent notes that state an idea and link it into the collection. You do not need all three types to start, but the distinction helps you decide what belongs in the Zettelkasten proper.

How should you name Zettelkasten files?

Start each file name with a timestamp ID and follow it with a short title. The ID never changes, and the title keeps the folder readable.

Scheme Example file name Trade-off
Timestamp ID + title 202611261030 Notes decay without links.md Unique, sorts by creation time, readable
Timestamp ID only 202611261030.md Stable, but the folder is unreadable
Luhmann-style branch ID 21-3d7a Notes decay without links.md Shows where an idea branched, but you must pick the number by hand
Title only Notes decay without links.md Readable, but links break when you rename

A 12-digit timestamp (year, month, day, hour, minute) is unique enough if you write fewer than one note a minute. Some apps built for this method, such as Zettlr and The Archive, generate a timestamp ID for you. In any other editor, type it yourself or paste it from a text expander.

A folder layout that holds up:

zettelkasten/
  202611261030 Notes decay without links.md
  202611261042 Links beat folders for recall.md
  202611271515 Writing is the test of understanding.md
  index/
    Index - Note-taking.md
    Index - Writing.md
  sources/
    ahrens-2017-how-to-take-smart-notes.md
  inbox/
    fleeting.md

Keep the permanent notes in one flat folder. Subfolders by topic force you to decide where an idea "lives", and the whole point of a Zettelkasten is that one idea can belong to several topics through links.

How do you link notes in plain Markdown?

Use a standard Markdown link with a relative path to the other file. Put the ID in the link text or right after it, so the reference still makes sense if someone reads the note as plain text.

This builds on [202611261030 Notes decay without links](202611261030%20Notes%20decay%20without%20links.md).

Spaces in a link path must be written as %20, or the whole path wrapped in angle brackets:

See [Links beat folders](<202611261042 Links beat folders for recall.md>).

The Markdown links page covers relative paths in more detail.

Many PKM apps also support wikilinks, written [[202611261030]]. They are shorter to type and rename-safe inside those apps, but they are not standard Markdown, so other editors show them as plain text. A practical middle path is to write the ID in every link no matter which syntax you use. Then a plain text search for 202611261030 finds every note that points to that note, in any tool. That search is a backlink list you can build without plugins.

What goes in a permanent note?

A title that states the idea as a claim, a few paragraphs in your own words, where the idea came from, and links with a reason for each one. Copy this template:

# 202611261030 Notes decay without links

An isolated note is rarely found again. Without a link from a note you
already visit, your one route back is search, and you have to remember
the right word to search for.

Linking a new note to one existing note at the moment you write it costs
a minute and gives the note a path back into your thinking.

## Source
- Ahrens 2017 (see sources/ahrens-2017-how-to-take-smart-notes.md)

## Links
- Builds on: [202611261042 Links beat folders for recall](<202611261042 Links beat folders for recall.md>)
- Contrasts with: [202611271515 Writing is the test of understanding](<202611271515 Writing is the test of understanding.md>)

## Tags
#note-taking #memory

Rules that keep notes atomic:

  1. Title as a claim. "Notes decay without links" says something. "Links" does not.
  2. Under one screen. If the note needs subheadings, it is probably two notes.
  3. Own words. Quotes go in the source note. The permanent note says what you think.
  4. At least one link on day one. A note with no links is an orphan you will not see again.
  5. Say why you linked. "Builds on", "contrasts with" and "example of" are more useful later than a bare list of links.

What does a source note look like?

A source note holds what you took from one book or article: the reference, short summaries with page numbers, and pointers to the permanent notes it produced.

# Ahrens 2017, How to Take Smart Notes

- Author: Sönke Ahrens
- Year: 2017
- Read: 2026-11

## Notes
- Separate quick capture from the notes you keep.
- Write literature notes briefly, in your own words.
- Add page numbers to each line, so you can find the passage again.

## Permanent notes from this source
- 202611261030 Notes decay without links
- 202611261042 Links beat folders for recall

If you take reading notes for many books, Markdown book notes has a fuller template with highlights and front matter.

How do index notes work?

An index note is an entry point to a topic: a short list of the notes that start a line of thought, each with one line of context. You do not list every note on the topic, only the ones from which you can follow links.

# Index - Note-taking

- 202611261030 Notes decay without links: why every note needs one link
- 202611261042 Links beat folders for recall: the case against topic folders
- 202611271515 Writing is the test of understanding: why notes are written, not copied

Some people call these structure notes or maps of content. The idea overlaps with the index notes described in how to organize Markdown notes. In a Zettelkasten they are deliberately small, and you add a note to an index only when it opens a new path.

What is a sustainable daily routine?

A Zettelkasten grows by small, regular additions. A routine that takes 15 to 30 minutes:

  1. Empty inbox/fleeting.md. Delete what no longer interests you.
  2. For each remaining idea, search the folder to see whether a note already says it.
  3. If one does, add to it. If none does, create a new file with a fresh ID.
  4. Link the new note to at least one existing note, and say why.
  5. If the note starts a new topic, add it to an index note.

When you write an article or a report, start from an index note, follow the links, and copy the notes you need into a draft. The notes have already done the thinking, so the draft is mostly ordering and smoothing.

A Zettelkasten in Noteline

Noteline, which we make, is a general Markdown editor, not a Zettelkasten app, and it has gaps for this method. It does not resolve [[wikilinks]] or show backlinks: [[202611261030]] stays visible as plain text. What it does cover is the plain-file part. You open the folder with Open Folder (Cmd+O on a Mac, Ctrl+O on Windows and Linux), the sidebar lists notes by file name, and Find in Folder (Cmd+Shift+F or Ctrl+Shift+F) searches the titles and text of every note, so searching an ID lists the notes that mention it. If backlinks and a graph view are central to how you work, an app built around linking will serve you better, and it can open the same folder.

Start with one note. Keep the file.

Open a folder and write. Every note is a plain .md file, with no account to create.

Try desktop free for 14 days ↓Free on iPhone, iPad and Android →

Desktop: 14-day trial, then $9.99 once. Mobile apps: free. No account.

Keep reading

  • Markdown links
  • How to keep AI meeting notes as Markdown files you own
  • AI memory files: what your assistant should remember, kept in Markdown
  • An AI research workflow in Markdown: sources, summaries and claims

A Markdown note editor with everything you need

We’re listening

Tell us what you need or what gets in your way. If something isn’t working, write to us any time.

contact@noteline.io→

Product

  • Download
  • Pricing
  • Features
  • Changelog

Learn

  • Markdown syntax
  • Use cases
  • Blog

Compare

  • vs Obsidian
  • vs Notion

Support

  • Help
  • Support
  • Privacy
  • Terms

© 2026 Notelinecontact@noteline.io