
File Naming Conventions: Best Practices & Templates
A file naming convention is a repeatable pattern that tells people what a file contains and how it relates to other files. A useful starting point is:
project_YYYY-MM-DD_document-type_v01.ext
Choose the fields and their order around how your team finds documents. A project team may start with a project code; an accounting team may start with a supplier; HR may use an employee ID.
Copyable File Naming Templates
These are suggested patterns. Adapt them to your systems and avoid including information the filename does not need.
| Use case | Suggested pattern | Example |
|---|---|---|
| General project | project_date_type_version.ext | atlas_2026-10-05_proposal_v02.docx |
| Legal matter | matter_date_type_description_version.ext | M1042_2026-10-05_contract_services_v02.docx |
| Invoice | supplier_date_invoice-reference.ext | acme_2026-10-05_INV-1042.pdf |
| Monthly report | team_period_report-type.ext | finance_2026-09_cashflow.xlsx |
| Employee record | employee-id_date_type.ext | E1042_2026-10-05_offer.pdf |
| Photo library | date_project_subject_sequence.ext | 2026-10-05_atlas_blue-mug_001.jpg |
| Website image | subject-detail-view.ext | blue-ceramic-mug-side.jpg |
Use the actual file extension. The examples use invented identifiers and are not real customer records.
File Naming Best Practices
Put the Main Retrieval Field First
When sorting by name, the beginning of the filename determines the first grouping. Date-first names group by date; matter-first names group by matter.
Compare:
2026-10-05_atlas_proposal_v02.docxatlas_2026-10-05_proposal_v02.docx
Both are valid conventions. Choose the one that matches how colleagues search. Harvard's file naming guidance similarly recommends choosing fields and their order around retrieval needs.
A filename does not need to repeat every folder label. Include enough context that an exported or emailed copy remains identifiable.
Use a Consistent Date Format
YYYY-MM-DD, such as 2026-10-05, is readable and sorts chronologically when the date occupies the same position and preceding fields match. The compact YYYYMMDD form can also work.
Define what the date represents. An invoice date, scan date, payment date, and download date are different. Do not use whichever date is easiest for a tool to extract.
For monthly reports, use a period such as 2026-09. If a date is unknown, define a review process rather than inventing it.
Choose Separators and Capitalization
One practical system uses underscores between fields and hyphens inside multiword fields:
atlas_2026-10-05_meeting-notes_v01.docx
Lowercase is convenient for descriptive words. Preserve the required form of case numbers, product IDs, or other external identifiers. Consistency matters more than a universal capitalization rule.
For website images, use the separate image naming for SEO guide. Web asset conventions do not have to match internal records exactly.
Respect Filename and Path Limits
Windows prohibits certain characters in ordinary filenames, including < > : " / \ | ? *. It also has reserved names and other restrictions; see Microsoft's file naming rules.
Spaces and accented characters work in many modern systems. Avoiding them may simplify particular scripts or integrations, but they are not universally invalid. Test the convention with your actual storage and sharing tools.
Keep names readable and consider the entire folder path. There is no single filename length that guarantees compatibility everywhere.
Use Stable Identifiers and Documented Codes
A stable matter, project, or employee ID avoids ambiguity when names change or two people share the same name. Keep a small reference list:
| Code | Meaning |
|---|---|
| proposal | Commercial proposal |
| invoice | Supplier or customer invoice |
| contract | Agreement document |
| meeting-notes | Notes from a meeting |
| report | Defined reporting output |
Avoid abbreviations only one person understands. If your team uses short codes, document them.
Legal File Naming Conventions
A matter-first convention can keep related documents together:
M1042_2026-10-05_contract_services_v02.docx
The matter ID identifies the work; the date and document type narrow the search; the description distinguishes similar documents.
Keep working versions and signed records distinct. A status label such as signed should reflect a checked document, not a prediction from automation. Do not rename evidence or records whose original names must be preserved without an approved procedure.
Use the legal file naming guide for matter folders, version examples, and handling incoming files.
Accounting File Naming Conventions
For invoices, supplier, invoice date, and original reference usually provide more useful context than a generic sequence number.
| Before | After |
|---|---|
| scan001.pdf | acme_2026-10-05_INV-1042.pdf |
| invoice-copy.pdf | northwind_2026-10-06_NW-2081.pdf |
| september.xlsx | finance_2026-09_cashflow.xlsx |
Decide whether the supplier or date comes first. Preserve meaningful invoice references and distinguish credit notes from invoices. If the reference contains a slash that your filesystem cannot accept, define a consistent replacement and retain the original reference in the record system.
For accounting periods, 2026-09 describes the reporting month more clearly than a file's modification timestamp. See how to organize invoices for an intake-to-archive workflow.
HR File Naming Conventions
Prefer a stable employee ID where a person's name is not needed:
E1042_2026-10-05_training-certificate.pdf
A filename may be visible in search results, notifications, shared links, or logs. Avoid unnecessary health, identity, financial, or disciplinary details.
Keep records with different access requirements in appropriately restricted locations. A single folder containing every employee document is not a substitute for permissions. General personnel records, medical records, payroll, and employment eligibility documentation may need different handling.
Our HR document management guide provides a suggested folder structure and a retention-policy checklist.
File Naming by Document Type
PDFs and Scans
Name the document by its content, not by the scanning event alone. acme_2026-10-05_INV-1042.pdf is more informative than scan_005.pdf.
Check which date the document uses and whether several records have been combined into one PDF. A filename should describe the actual file, not only its first page.
Photos and Images
For an internal photo library, date, shoot, subject, and sequence can work together:
2026-10-05_atlas_blue-mug_001.jpg
Use zero-padded sequence numbers when useful: 001, 002, 010. Keep original captures and edited exports distinguishable.
Shared Business Documents
Use a project code and a clear document type:
atlas_2026-10-05_launch-brief_v03.docx
If the same document lives in a system with version history, keep one stable working name where possible. Exported copies may need a date or version to remain identifiable outside that system.
Document Versioning That Works
Use a version scheme the team can explain. For example:
| State | Filename |
|---|---|
| First working copy | atlas_proposal_v01_draft.docx |
| Revised for review | atlas_proposal_v02_review.docx |
| Approved export | atlas_proposal_v02_approved.pdf |
Version and status are different: v02 identifies a revision; approved describes a verified workflow state.
Do not repeatedly append final or overwrite a signed original with a later working draft. Define who can approve a document and where the authoritative copy lives.
A One-Page Naming Policy You Can Copy
Scope: New project documents in the shared project workspace.
Pattern: project_YYYY-MM-DD_document-type_vNN.ext.
Date meaning: The date of the document or meeting, not the download date.
Codes: Use the agreed project IDs and document-type list.
Separators: Underscores between fields; hyphens within descriptive phrases.
Versions: Use v01, v02, and so on for exported revisions. Use the workspace's version history for the live working document.
Exceptions: Missing dates, conflicting identifiers, and duplicate names go to a review folder. Do not guess.
Ownership: The project owner maintains the code list and approves exceptions.
This is a starting template, not a mandatory standard. Add only the rules your workflow needs. For a handoff-ready document, use our team naming policy guide. It covers ownership, exceptions, and how to explain the convention to a new colleague.
How to Roll Out the Convention
- Collect a small sample of real file types.
- Test the pattern with the people who will retrieve them.
- Agree on dates, codes, duplicates, and exceptions.
- Apply it to new files first.
- Back up and migrate older files in manageable batches.
- Check links, integrations, permissions, and search after renaming.
Start with one active folder. Renaming a large archive can break references, so preserve an old-to-new mapping when the workflow needs traceability.
For output patterns tailored to invoices, contracts, and employee records, see AI document naming templates.
Automating File Naming
Use a pattern-based renamer when the necessary information is already in the filename. Use content-aware processing when you need details from inside a document.
Renamer.ai can read supported documents and apply custom naming templates. Magic Folders can apply a configured workflow to new incoming files. Begin with a sample and check extracted dates, IDs, and missing fields before expanding the automation.
Read the Renamer.ai guides, explore AI document organization, or use the device-by-device renaming instructions for manual work.
Frequently Asked Questions
What is a good file naming convention?
One that identifies the file with a small set of consistent fields. Start with a project or entity ID, a defined date, a document type, and a version if needed.
Should the date go first or last?
Put it first if chronological grouping is the main need. Put the project, matter, or supplier first if that is the main retrieval route. Keep the order consistent within the file set.
Are underscores or hyphens better?
Either can be useful for internal files. Choose a documented pattern and test it with your tools. For web image names, lowercase words separated by hyphens are a practical default.
Should every old file be renamed?
No. Prioritize active records and new intake. Leave records with preservation requirements or fragile dependencies to an approved migration process.
About the author

Uros Gazvoda
Uroš is a technology enthusiast, digital creator, and open-source supporter who’s been building on the internet since it was still dial-up. With a strong belief in net neutrality and digital freedom, he combines his love for clean design, smart technology, and human-centered marketing to build tools and platforms that matter.
Founder of Renamer.ai