
Legal File Naming Conventions: Templates for Law Firms
A legal file naming convention helps your team identify the matter, document type, date, and version without opening several similar files. Start with a pattern such as:
[Matter-ID]_[Document-Type]_[Document-Date]_[Version-or-Status].[extension]
For example: M1042_service-agreement_2026-10-21_v02.docx.
Use identifiers from your firm's existing matter system and define what each field means. These are organizational examples, not court filing rules or a substitute for your firm's confidentiality, preservation, and records policies.
A practical naming template
| Field | Purpose | Example |
|---|---|---|
| Matter ID | Connect the file to the matter | M1042 |
| Document type | Identify the kind of record | service-agreement |
| Document date | Identify a defined event or document date | 2026-10-21 |
| Version or status | Distinguish working revisions or checked status | v02, signed |
| Extension | Preserve the actual file format | .docx, .pdf |
Include a client ID as well if matter IDs are not unique across your system. Avoid unnecessary personal details in filenames: names can appear in notifications, exports, search results, and shared links.
Define dates precisely
Use a readable, consistent format such as YYYY-MM-DD. The compact YYYYMMDD format can also sort chronologically when the date is in the same position and preceding fields match.
Specify whether a date means the document date, received date, signed date, or filing date. Do not substitute the download date without making that choice explicit.
Use consistent separators and codes
One option is underscores between fields and hyphens within descriptive words. All-hyphen conventions can also work; choose the pattern your systems and team can apply consistently.
Document abbreviations. A short shared dictionary is more useful than a different code for each person's preferences.
| Label | Meaning |
|---|---|
| agreement | Agreement or contract |
| motion | Motion, with a distinguishing description |
| letter | Correspondence |
| transcript | Transcript |
| exhibit | Exhibit, preserving the relevant identifier |
| order | Court order |
| memo | Internal memorandum |
Preserve externally assigned identifiers and the correct extension. If a reference contains characters your filesystem cannot accept, define a replacement rule and retain the original identifier in the record system.
Version numbers and document status
Version and status answer different questions.
M1042_agreement_2026-10-21_v01.docx: first working revision.M1042_agreement_2026-10-21_v02.docx: revised working copy.M1042_agreement_2026-10-21_signed.pdf: a checked signed record.
Use zero-padded versions when simple alphabetical sorting matters. A status label must reflect a verified state; an AI suggestion or a filename containing “signed” does not establish that signatures are valid or complete.
Where a document management system maintains version history, keep a stable working name if that is the agreed workflow. Use explicit revision labels for exported copies when needed.
Practice-area examples
The following examples use fictional identifiers. Adapt them to your matter system and any requirements governing the records.
Litigation
A matter-first convention can group pleadings, correspondence, research, and orders:
M1042_motion-to-dismiss_2026-10-21_v02.docxM1042_scheduling-order_2026-10-21.pdfM1042_letter-to-counsel_2026-10-21.pdf
Discovery and evidence require a separate preservation decision. Do not bulk rename original productions, alter identifiers, or reorganize evidence merely to make it look consistent. Use an approved process and preserve original names and mappings where required.
Corporate transactions
Distinguish draft agreements, diligence materials, and closing records:
T2081_purchase-agreement_2026-10-21_v03.docxT2081_diligence_vendor-contract-list_2026-10-21.xlsxT2081_closing_01_purchase-agreement_signed.pdf
A closing index can provide the ordering and context that a filename cannot carry alone. Check each status label against the actual record.
Intellectual property
Use the established matter or application identifier and the document's role:
IP1042_office-action_2026-10-21.pdfIP1042_response_2026-10-21_v02.docxIP1042_filing-receipt_2026-10-21.pdf
Keep jurisdiction and application details in the authoritative matter system. Add them to filenames only where they help distinguish records and can be applied reliably.
Real estate
Use a stable property or transaction ID:
P1042_purchase-agreement_2026-10-21_v02.docxP1042_title-report_2026-10-21.pdfP1042_closing-statement_2026-10-21.pdf
See real estate document management for a related organizational workflow.
A matter folder structure
Choose folders that match the work and the relevant permissions.
| Path | Typical use |
|---|---|
Clients/Client-ID/Matter-ID/Working | Editable drafts |
Clients/Client-ID/Matter-ID/Correspondence | Relevant communications |
Clients/Client-ID/Matter-ID/Research | Working research materials |
Clients/Client-ID/Matter-ID/Filed-records | Verified filed copies |
Clients/Client-ID/Matter-ID/Signed-records | Verified executed records |
Clients/Client-ID/Matter-ID/Incoming-review | Unclassified or ambiguous incoming files |
Separate evidence or other protected collections according to your approved procedures. Folder names do not enforce access restrictions: test permissions, shared links, and inherited access.
Create the structure from a template when a matter opens. Name an owner for maintaining the template and handling exceptions.
Handle incoming files without losing context
- Identify the matter and document type.
- Check the complete file, including attachments or combined records.
- Decide whether the original name must be preserved.
- Apply the convention only within the approved scope.
- Keep an old-to-new mapping when traceability is needed.
- Check links and application dependencies after moving or renaming.
- Route uncertain dates, identifiers, and statuses to review.
Start with new working documents rather than changing an entire archive. Do not dispose of originals or overwrite existing records as part of a naming cleanup.
Using AI for legal file naming
Renamer.ai can read supported documents and suggest names using a template. It can assist with repetitive naming, but the output still needs review for parties, dates, matter IDs, and document types.
Choose the processing mode according to your firm's policy. Local models process on the device; cloud and BYOK modes involve external providers. Using your own API key does not make processing local.
Use fictional or approved samples first. Configure naming and folder organization, review the proposed results, and check destination permissions before expanding the workflow. Magic Folders can process new arrivals after you have validated the setup.
Do not use an inferred filename to determine privilege, legal significance, filing status, retention, or access rights. Renamer.ai does not replace the controls in a legal document management system.
The current Renamer.ai guides explain setup. For a broader naming policy, use file naming conventions and templates.
Frequently asked questions
Should client names or matter numbers come first?
Use the identifier your team retrieves by most often. Stable, unique matter IDs usually provide a useful connection to the matter system. Include client details only when necessary.
Should every file contain a date?
Include a date when it helps identify the record and its meaning is clear. Define how to handle undated documents instead of inventing a date.
Is a naming convention enough for compliant records management?
No. Naming supports retrieval. Your firm still needs appropriate access, preservation, retention, versioning, and filing procedures for the work it performs.
Should original discovery filenames be changed?
Only within a procedure approved for those records. Preservation requirements and traceability take priority over cosmetic consistency.
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