Skip to content
FeaturesPricingBlogDownload

← All posts

File naming conventions for notes that people and AI can find

Good file naming conventions for notes use lowercase, hyphens, an ISO 8601 date first and no spaces, so files sort, link and turn up in search and AI tools.

Diagram card on a light background showing vague note filenames on the left renamed to dated, descriptive filenames on the right

Good file naming conventions for notes come down to four rules: lowercase words joined by hyphens, an ISO 8601 date (2026-11-27) at the front of anything dated, no spaces or special characters, and a name that says what the note is about in the words you would search for. Names built this way sort in date order, work as Markdown links without escaping, behave the same on Mac, Windows and Linux, and are what AI coding agents and command-line search match on before they open a single file.

How to organize Markdown notes covers folders, tags and index notes. This post goes further into the name itself: why each rule exists, where each one breaks things when it is ignored, and how to rename old notes safely.

What makes a good file name for a note?

A good name is readable to a person, safe on every operating system, and predictable enough that you can guess it before you search. These are the rules and the problem each one prevents.

Rule Example What it prevents
Date first, YYYY-MM-DD 2026-11-27-weekly-sync.md Dated notes sorting out of order
Lowercase only pricing-model.md Two files that differ only by case
Hyphens instead of spaces launch-checklist.md Escaping in links and shell commands
Letters, digits and hyphens only q4-plan.md, not Q4 Plan (final).md Characters some systems reject
The topic noun in the name invoice-template.md, not template-3.md Notes that no search term finds
Status out of the name pricing-model.md, not pricing-model-final-v2.md Renames every time the status changes

What matters most is using one pattern everywhere, so you can predict a name you have forgotten.

Why put the date first in YYYY-MM-DD form?

Because a file list sorts names character by character, and only year-month-day order puts that sort in date order. This is the ISO 8601 calendar date format, and it is the one date style that sorts correctly as plain text.

2026-02-09-weekly-sync.md
2026-10-14-weekly-sync.md
2026-11-03-weekly-sync.md

Compare names that start with US-style dates:

02-09-2026-weekly-sync.md
11-03-2025-weekly-sync.md
11-03-2026-weekly-sync.md

The 2025 note lands between two 2026 notes, and once a folder holds a few years, nothing is where you expect it. Leading zeros matter for the same reason: 2026-2-9 sorts after 2026-10-14.

If you keep more than one note per day, add the time with no colon: 2026-11-27-1430-call-with-design.md. Colons are not allowed in Windows file names, as the next section shows.

Put the date only on notes that belong to a date: meetings, daily notes, decisions, logs. A reference note such as vpn-setup.md should not carry the date it was written, because you will look for it by topic, not by when you wrote it.

Why avoid spaces and special characters in note names?

Spaces and symbols work inside a single app but cause friction everywhere else: in links, in the terminal, in URLs and on other operating systems.

  • Markdown links. The CommonMark specification (checked November 2026) says a link destination written without pointy brackets cannot contain a space. A link to Meeting Notes.md has to be written as [notes](<Meeting Notes.md>) or [notes](Meeting%20Notes.md). A link to meeting-notes.md needs neither. More on paths in Markdown links.
  • Shell commands. Every space needs quoting, and a missed quote turns one file name into two arguments.
  • Windows. Microsoft's file naming rules reserve < > : " / \ | ? and *, forbid names such as CON, PRN, AUX, NUL, COM1 and LPT1 (also with an extension, so nul.md is out), and say not to end a name with a space or a period. A note named Q&A: launch?.md made on a Mac will cause trouble the day the folder syncs to a Windows computer.
  • Published notes. If the folder ever becomes a website, file names become URLs, and %20 in a URL is nobody's favorite.

Letters, digits and hyphens are safe on every system. Underscores are also safe; pick hyphens or underscores and stay with one.

Why keep note names lowercase?

Because the operating systems disagree about whether Notes.md and notes.md are the same file. Git's own documentation for core.ignoreCase names APFS, HFS+, FAT and NTFS as file systems that are not case sensitive, which covers the defaults on most Macs and Windows computers. Linux file systems usually are case sensitive.

Two things go wrong when case is mixed:

  1. A link to Pricing.md works on your Mac, where the file is really pricing.md, and fails on a Linux server that builds your published site.
  2. Renaming Pricing.md to pricing.md on a case-insensitive disk can look like no change to the file system or to sync tools. In a Git repository, git mv Pricing.md pricing.md records the rename properly.

All-lowercase names avoid both problems, because there is only one way to write each name.

How do file names help AI agents and search tools find notes?

Search tools and AI agents usually find a file by its name or path first and read it second. A descriptive name means the file turns up for the first query rather than the fifth.

Claude Code's tools reference (checked November 2026) describes it this way: on macOS, Linux and WSL it searches with find and grep, and where its Grep tool is used, the default output is file paths only. A list of paths is what the agent looks at to decide which notes to open, so 2026-11-03-pricing-decision.md tells it far more than untitled-7.md. The same is true when you search yourself:

# Every note with "pricing" in its name, in any folder
find . -iname '*pricing*.md'

# Every meeting from November 2026, in date order
ls meetings/**/2026-11-*.md

The second command needs ** support, which zsh has by default; in bash, run shopt -s globstar first.

A few habits make names more useful to anything that searches:

  • Use the words people search for. If the team says "pricing", do not name the file monetization-thoughts.md.
  • Avoid generic names repeated in many folders. Ten files called notes.md or index.md look identical in a list of search results. onboarding/index.md is fine as a folder's front page, but give content notes their own names.
  • One topic per file. A name can only describe one thing. A file named misc.md cannot be found by any topic it contains.

When you give an AI tool a folder as context, the file names act as a table of contents it reads before anything else. AI agents that read and write your files covers the rest of that setup.

Should you rename notes, and how do you do it safely?

Rename rarely. A note's name is its address: links from other notes, bookmarks and scripts all point to it. That is the reason status belongs in front matter rather than in the name:

---
status: final
reviewed: 2026-11-20
---

pricing-model.md with status: final can change status ten times without breaking a single link. pricing-model-final-v2.md breaks links each time.

When a set of old notes does need fixing, do it in three steps.

  1. Print the renames first. This lists Markdown files with spaces in their names and the lowercase, hyphenated name each would get. It changes nothing.

    find . -name '*.md' -name '* *' | while IFS= read -r f; do
      dir=$(dirname "$f"); base=$(basename "$f" .md)
      slug=$(printf '%s' "$base" | tr '[:upper:]' '[:lower:]' | sed -E 's/[^a-z0-9]+/-/g; s/^-+|-+$//g')
      echo "mv \"$f\" \"$dir/$slug.md\""
    done
    

    Read the output before running any of it. The pattern drops accented and non-Latin letters, so Café Ideas.md would become caf-ideas.md; fix those by hand.

  2. Rename, then search for the old names. Search the folder for each old file name and update every link in the same sitting.

  3. Commit the change on its own if the folder is in Git, so the renames sit in one commit you can review. git log --follow keeps a note's history across the rename. Git for notes has the other commands.

A naming scheme you can copy

notes/
  daily/2026-11-27.md
  meetings/weekly-sync/2026-11-24-weekly-sync.md
  decisions/2026-11-03-move-billing-to-annual.md
  projects/website-redesign/plan.md
  reference/vpn-setup.md
  people/mia-chen.md

Dated notes start with the date and end with the topic. Reference and project notes are named by topic alone. The folder carries the category, so the name does not repeat it: meetings/weekly-sync/2026-11-24-weekly-sync.md keeps the series name because those files are often copied or attached on their own, where the folder is lost.

For meeting notes produced with an AI summary, the same scheme holds: AI meeting notes as Markdown files keeps the transcript and the summary side by side under one dated name.

Naming and renaming notes in Noteline

Noteline, which we make, works on the files in a folder you open with File > Open Folder… (Cmd+O on a Mac, Ctrl+O on Windows and Linux), so the names you choose are the names on disk. With a folder open, click the active tab once more to rename the note's file. Find in Folder (Cmd+Shift+F, or Ctrl+Shift+F) searches every note, which is how you find links that still point to an old name after a rename. If a script or a Git command renames files while the app is open, the desktop app watches the folder and picks up the new and changed notes. Noteline does not update links for you when a file is renamed, so the search step above still applies.

Give your next idea a Markdown file.

Write a note, copy it into your prompt, and keep the original as a plain .md file.

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
  • Markdown front matter
  • 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