A file naming convention is an agreed format for naming files, such as 2026-11-25_Acme_Invoice_v02.pdf, so anyone on your team can tell what a file is, find it in search, and see it sort in the right order. Good file naming conventions put the same elements in the same order every time, usually a date, a client or project, a short description, and a version.
Most teams don’t have a naming problem because nobody cares. They have one because everyone has their own version of the rule. One person writes “Nov 25 Acme invoice FINAL,” another writes “acme_inv_11-25-26,” and six months later nobody can find either. If you manage a shared drive or a team’s files, here are the rules worth agreeing on, examples by team, a template you can copy, and a simple way to make sure people type the format the same way.
Key takeaways
- Pick one order and never change it. Put the element people sort or search by most first, which is usually the date.
- Write dates as YYYY-MM-DD. Year, month, and day in that order sort correctly in every file browser.
- Skip spaces and special characters. Use hyphens or underscores, and avoid characters Windows and cloud drives reserve.
- Track versions with numbers, not “final.” v01, v02, and v03 tell you which file is newest. “Final_final2” doesn’t.
- A convention only works if everyone types it the same way. Write it down, share a template, and make the correct format the easy one to use.
Start with what a convention is and why it pays off.
What is a file naming convention?
A file naming convention is a set of rules for how files are named. It covers which pieces of information go in the name, in what order, how they’re separated, and how dates and versions are written. It’s the same idea as a style guide, applied to file names.
The payoff is practical. A consistent name tells you what a file is before you open it, makes search work in shared drives like Google Drive, SharePoint, and Dropbox, and keeps related files together when you sort a folder by name. It also prevents the most common shared-drive mistake, which is working on the wrong version.
Conventions matter most where several people save into the same place. One person can remember their own system. A team of 10 can’t remember ten systems.
File naming best practices
These 10 rules cover most teams. You don’t need all of them on day one, but the first four do most of the work.
1. Use the same element order every time. Decide which pieces of information go in the name, such as date, client, document type, and version, and keep them in that order. Consistent order is what makes sorting and scanning work.
2. Put the most-used element first. If people look for files by date, start with the date. If they look by client or project, start with that. Most finance, legal, and project files work best date-first.
3. Write dates as YYYY-MM-DD. The ISO 8601 format puts year, month, and day in order, so files sort chronologically. 2026-11-25 always sorts after 2026-02-03. 11-25-2026 and 2-3-2026 don’t.
4. Keep names short and descriptive. Use the few words someone would search for, like “Invoice,” “Contract,” or “Q4-Report.” Long names get cut off in file lists and push the full path toward length limits.
5. Use hyphens or underscores instead of spaces. Spaces can break links and cause problems in some systems and scripts. A common pattern is underscores between elements and hyphens inside an element, as in 2026-11-25_Acme-Corp_Invoice_v02.pdf.
6. Avoid special characters. Some characters are reserved by operating systems and cloud drives, and files that use them won’t save or sync. See the list below.
7. Use leading zeros in numbers. Write 01, 02, and 10 instead of 1, 2, and 10, so file 10 doesn’t sort before file 2.
8. Track versions with numbers. Add v01, v02, and so on, and save each meaningful revision as a new version. Avoid “final,” “final-v2,” and “use-this-one.”
9. Use agreed abbreviations. Short codes like INV for invoice or SOW for statement of work save space, but only if everyone uses the same list. Keep it in the convention document.
10. Write the convention down and put an owner on it. A one-page document with the format, two or three examples, and the abbreviation list is enough. Name someone who updates it when the team’s needs change.
Characters to avoid in file names
Windows doesn’t allow these characters in file names, according to Microsoft’s file naming guidance:
| Character | Name |
|---|---|
| < > | Less than and greater than |
| : | Colon |
| “ | Double quote |
| / \ | Forward slash and backslash |
| | | Pipe |
| ? * | Question mark and asterisk |
Windows also reserves a few names, such as CON, PRN, AUX, NUL, COM1, and LPT1, and drops a space or period at the end of a name. OneDrive and SharePoint have their own restrictions on characters and names, plus a 400-character limit on the full file path when files sync, and some organizations still block # and %.
The simplest rule is to use only letters, numbers, hyphens, and underscores. That set works everywhere.
How to handle versions
Versions are where most conventions break down. A few habits keep them clear:
- Number every version. v01 for the first draft, then v02, v03, and so on.
- Change the number for meaningful edits, not every save. A new version should mean something changed that someone might need to compare.
- Mark the approved file in the name, not with “final.” If your team needs a signal, use a status word such as “signed” or “approved” at the end, or move the approved copy to an archive folder.
- Let the tool handle it where it can. Google Drive, SharePoint, and Dropbox keep version history, so you may only need version numbers in the name for files that leave the system, like PDFs sent to clients.
File naming convention examples
The best format depends on how each team searches for its files. These document naming conventions are starting points to adapt to your own systems and policies.
| Team | Format | Example |
|---|---|---|
| Finance | YYYY-MM-DD_Client_DocType_Status | 2026-11-25_Acme-Corp_Invoice_Paid.pdf |
| Legal | Client_Matter_DocType_vNN_YYYY-MM-DD | Acme-Corp_Lease-Renewal_Contract_v03_2026-11-25.docx |
| Marketing | Campaign_Asset_Size_vNN | Spring-Launch_Social-Banner_1200x628_v02.png |
| Sales | Account_Proposal_YYYY-MM-DD_vNN | Northwind_Proposal_2026-11-25_v01.pdf |
| HR | YYYY_Role_DocType_Status | 2026_Support-Lead_Job-Description_Approved.docx |
| Research | Project_Experiment_YYYY-MM-DD_Run-NN | Soil-Study_pH-Test_2026-11-25_Run-04.csv |
| Healthcare | RecordID_DocType_YYYY-MM-DD | MRN-004821_Referral-Letter_2026-11-25.pdf |
| Temporary files | TEMP_Description_DeleteAfter-YYYY-MM-DD | TEMP_Vendor-Quote_DeleteAfter-2026-12-25.pdf |
A few notes on these:
- Finance puts the date first because invoices are usually found by period, and a status word like “Paid” at the end tells people what’s done without opening the file.
- Legal puts the client and matter first because people search by matter, and the date comes after the version so revisions of one contract stay together.
- Healthcare uses a record or encounter ID instead of a patient’s name or date of birth. Keep identifying details out of file names and follow your organization’s records policy.
- Temporary files carry a delete-after date in the name, so cleanup is a quick search instead of a guessing game.
Folder naming conventions
Folder names follow the same rules as file names, with consistent order, no special characters, and dates written as YYYY-MM-DD. A few extra habits help:
- Keep the structure shallow. Three or four levels is usually enough. Deep folder trees make paths long and files hard to find.
- Name folders for how people look for things. By client, by year, or by project, but pick one top-level logic and stick to it.
- Use numbered prefixes to control order. 01_Admin, 02_Projects, and 03_Archive keep the most-used folders at the top.
- Add an archive folder. Moving finished work there keeps active folders short without deleting anything.
For a broader cleanup of your desktop, downloads, and inbox, see our guide to decluttering your digital life.
File naming convention template
Copy this template into a shared doc, fill in the blanks, and share it with your team.
| Element | Your rule | Example |
|---|---|---|
| Elements, in order | [Date] _ [Client or project] _ [Document type] _ [Version] | 2026-11-25_Acme-Corp_Invoice_v02 |
| Date format | YYYY-MM-DD | 2026-11-25 |
| Separators | Underscore between elements, hyphen inside an element | Acme-Corp_Invoice |
| Version rule | vNN, starting at v01; new number for meaningful edits | v01, v02 |
| Status words (optional) | [Approved, Signed, Paid] | Invoice_Paid |
| Abbreviations | [INV = invoice, SOW = statement of work, PO = purchase order] | INV |
| Characters allowed | Letters, numbers, hyphens, and underscores only | No spaces, no / \ : * ? ” < > or pipe |
| Owner | [Name or role] | Operations lead |
| Last reviewed | [YYYY-MM-DD] | 2026-11-25 |
Keep the finished version short enough to fit on one screen. If it needs a second page, it’s probably trying to cover too many cases.
Make the convention stick with a shared naming Snippet
Writing the convention down is the easy part. The hard part is that people still type file names by hand, from memory, in a Save dialog, at the end of a long task. That’s where the date gets written the old way, the client name gets abbreviated three different ways, and the version number gets skipped.
The fix is to make the correct format the fastest one to type. One way to do that is a shared Snippet in TextExpander. You save the naming format once, with today’s date inserted automatically and Fill-ins for the parts that change, and anyone on the team types a short abbreviation like ;fname in the file name field to get the full name in the agreed format.
A naming Snippet for the invoice example might include:
- Today’s date, inserted automatically in YYYY-MM-DD format.
- A drop-down Fill-in for the client, so names are spelled the same way every time.
- A drop-down for the document type, such as Invoice, Quote, or Receipt.
- A version field that defaults to v01.
- An optional “Paid” marker, checked only when it applies.
For temporary files, a second Snippet can add a delete-after date with date math, such as 30 days from today. On Mac and Windows, Snippets expand in the file name field of a Save or rename dialog, the same way they expand in email.
TextExpander types the name. It doesn’t rename, move, or organize files you already have, so use it for new files and clean up older folders separately.
The bigger benefit is for teams. Put the naming Snippets in a shared Snippet Group, and everyone uses the same format. When the convention changes, like a new client or a new document type, you update the Snippet once and the whole team gets the change. As Julia Ball, Director of Primary Care Services at Amaze Health, put it about shared Snippets more broadly, “We’re all working from the same standards, which makes a big difference when you’re scaling.”
Payroll specialist Kelly P. described what shared naming Snippets changed for her team in a G2 review:
TextExpander has made my life easier by allowing me to shorten long, often misspelled words and maintain consistency in naming. I love that you can share snippets with other users, which allows my colleague and I to use the same labeling of documents.
Kelly P., Payroll Specialist, HW & Associates, LLC
Give your team one naming format
Save your file naming convention as a shared Snippet, with today’s date filled in and drop-downs for clients and document types. Everyone types the same format in any Save dialog, and one update reaches the whole team.
See what changes when your file naming conventions are one shortcut away.
How to roll out a file naming convention
A convention only helps if people adopt it. Keep the rollout small:
1. Start with one shared folder. Pick the folder that causes the most confusion, like client invoices or contracts.
2. Agree on the format in 15 minutes. Use the template above, decide the element order, and write two examples.
3. Make it easy to type. Share the format as a template or Snippet so nobody has to remember it.
4. Rename only what’s active. Rename current files to the new format and leave old archives alone unless people search them often.
5. Check in after a month. Look at what people actually saved, fix the parts of the rule that didn’t work, and expand to the next folder.
Agree on the format once
File naming conventions aren’t about perfect folders. They’re about a teammate finding the right file in seconds, six months from now, without asking anyone. Pick an element order, write dates as YYYY-MM-DD, number your versions, and write the rule down.
Then make the right format the easy one. Share it as a template, or as a shared Snippet your team can type in any Save dialog. To try it yourself first, get TextExpander free.
TextExpander is free. Your time isn’t.
Create shortcuts for the things you type most and start saving time everywhere you type. Use it solo or build a shared library with your team.
Free forever, no credit card required.
Frequently asked questions
What is the best naming convention for files?
The best file naming convention is one standard format that everyone on your team follows. A common pattern is date, project name, document type, and version, such as 2026-11-25_Acme-Corp_Invoice_v02.pdf. Write dates as YYYY-MM-DD, keep each filename short and descriptive so people can easily understand what the file contains, and put the element most people search by first.
What characters should I avoid when naming files?
Avoid the special characters Windows reserves, which are less than, greater than, colon, double quote, forward slash, backslash, pipe, question mark, and asterisk. Some OneDrive and SharePoint setups also block # and %. It's also best to avoid spaces, especially at the beginning or end of a filename. Letters, numbers, hyphens, and underscores work in any location and operating system.
Should file names use uppercase or lowercase letters?
Either works, as long as everyone follows the same rule. Lowercase letters are the safest choice for files that end up on websites or in code, because some servers treat File.pdf and file.pdf as two different files. On shared drives, many teams capitalize each word in a part, like Acme-Corp, so names are easier to read. Pick one style and add it to your naming rules.
Should I use underscores or hyphens in file names?
Both work, and many teams use both, with underscores separating the main parts of a filename and hyphens joining words inside a part, as in 2026-11-25_Acme-Corp_Invoice_v02.pdf. What matters most is choosing one rule and using it every time. Avoid spaces, which can break links and cause problems in some software.
How should I name folders and set up a folder structure?
Keep your folder structure shallow, usually three or four levels, and name folders for how people look for files, such as by company, client, year, or project. Folder naming conventions follow the same naming rules as files. Add numbered prefixes like 01_Admin to control the order, and keep an archive folder so employees can locate active work without digging through finished projects.
Do I still need a naming convention if I use tags, metadata, or digital asset management software?
Yes. Tags, metadata, and digital asset management software help you search and filter, but the file name is what people see in every folder, email attachment, and download. A clear name still identifies the file after it leaves the system that holds its metadata. Use both, and keep names consistent so search works wherever your digital files are stored.
What does ~$ mean before a file name?
A file that starts with ~$ is a temporary "owner file" that Microsoft Word and other Office apps create while a document is open. It records who has the file open, so a second person gets a read-only copy. Office normally deletes it when you close the document. If one is left behind after a crash, you can delete it once the document is closed.
How do I get my team to follow a file naming convention?
Keep the convention to one page with clear examples, start with one shared folder, and make the correct format easy to type. Share it as a template, or as a shared TextExpander Snippet that fills in today's date and offers drop-downs for clients and document types, so employees in every department name documents the same way. Review what people saved after a month and adjust the rules that didn't work.