File Naming Conventions: Best Practices That Keep Files Findable
Updated
A good file name tells you what is inside without opening the file, sorts in a useful order and works on every system it will ever be copied to. None of this needs special software, just a few agreed rules. Here are the rules that matter most, with the reasons behind them and examples you can copy.
1. Write dates as YYYY-MM-DD
The international standard ISO 8601 writes dates from the largest unit to the smallest: 2026-11-23. Because the year comes first and month and day always have two digits, alphabetical order is the same as chronological order. File managers, cloud storage and command lines all sort by name, so dated files line up automatically.
| Format | Sorts correctly? | Problem |
|---|---|---|
2026-11-23 | Yes | – |
20261123 | Yes | Harder to read |
23-11-2026 | No | Sorts by day, then by month |
11-23-2026 | No | Ambiguous outside the US |
Nov 23 2026 | No | Months sort alphabetically |
Put the date at the start of the name when the date is the main order (meeting notes, invoices, photos), and at the end when the subject matters more (budget_2026-11.xlsx). For times, use 24-hour format without colons, for example 2026-11-23_1430, because the colon is not allowed in Windows file names.
2. No spaces and no special characters
Spaces are allowed on all modern systems, but they cause trouble elsewhere: in web addresses a space becomes %20, on the command line every name with a space needs quotes, and some upload forms and older programs cut names at the first space. Use a hyphen or an underscore instead.
- Windows does not allow
\ / : * ? " < > |in file names, and names cannot end with a dot or a space. - macOS does not allow a colon in Finder names, and Linux does not allow
/. - Windows also reserves the names
CON,PRN,AUX,NUL,COM1toCOM9andLPT1toLPT9, even with an extension (con.txt). - Accented letters, umlauts and symbols like
&,#or%work on most systems, but can break in URLs, ZIP files from older programs and email attachments. Plain letters a–z, digits, hyphens and underscores are always safe.
A common convention: hyphens between words, underscores between parts of the name. 2026-11-23_acme_project-kickoff_notes.pdf reads as date, client, topic, document type.
3. Use leading zeros in numbers
Windows File Explorer and the macOS Finder sort numbers by value, so photo_2 comes before photo_10. Many other programs sort character by character: command lines, web servers, cloud storage listings, ZIP tools and scripts. There photo_10 comes before photo_2. Leading zeros fix this everywhere: photo_002, photo_010. Choose the width by the largest number you expect; three digits cover up to 999 files.
4. Version numbers instead of 'final'
report_final.docx is followed by report_final2.docx and report_final_really.docx. Number versions instead: report_v01.docx, report_v02.docx. Two-digit version numbers sort correctly up to v99. If you need to tell drafts from approved files, add a status word after the version (report_v03_approved.docx) or move the approved file into its own folder.
5. Keep names short and consistent
- Classic Windows programs limit the full path, folders included, to 260 characters. Deep folder structures with long names reach this quickly.
- Use the same order of elements for all files of a kind, for example always
date_client_topic_version. - Use lowercase throughout, or agree on one capitalisation. On Linux servers
Report.pdfandreport.pdfare two different files. - Leave out words that the folder already says. In a folder called
invoices-2026,2026-03_acme.pdfis enough. - Agree on abbreviations (
invfor invoice,mtgfor meeting) and write them down.
A template you can adapt
YYYY-MM-DD_project_description_vNN.ext
2026-11-23_website-relaunch_sitemap_v02.pdf
2026-11-23_acme_invoice-0457.pdf
2026-11-23_team-meeting_notes.docx
lisbon-2026_001.jpgWrite the convention in a short text file (for example README.txt) in the top folder of the project, so that everyone, including you a year from now, can follow it.
Fixing existing files
Rules only help if existing files follow them too. To bring a folder in line, add the files to the online bulk renamer on bulkrename.com and use a pattern such as 2026-11-23_acme_[name] or lisbon-2026_[num]; it pads numbers to three digits and keeps every extension. For system tools, see how to rename multiple files at once, or automate it with Python.