What it means to rename legal documents for law firms
To rename legal documents for law firms is to let AI read the content of each legal file in a matter and generate a descriptive filename from what it finds, in bulk, across a whole matter or a whole inbox. The "rename" is renaming the file on disk, not legally changing a person's name, not amending the terms of a contract, and not altering the legal effect of anything inside the document. The document's content stays exactly as it was. Only the filename changes.
This matters because the filename is the first thing a paralegal, attorney, or clerk sees when they open a folder. A file named Document(7).pdf tells you nothing. A file named 2026-118_will_cordelia-tremblay_executed_2026-02-14.pdf tells you the matter, the document type, the client, and the date before you open it. That is the entire job: turn opaque scanner names and vague manual names into filenames that read like a docket index, automatically, for every legal file in the matter.
The naming layer runs before your matter management software, not against it. Your matter management system tracks deadlines and holds the matter record. Renamer.ai makes sure the files you drop into that system are already named by matter and client, so nothing gets filed under a name no one will ever search for. Renaming legal files is the findability layer under how law firm document management fits together, it makes sure every contract and pleading lands already named by matter and client before it reaches your DMS.
The fields renamer.ai reads to name your legal documents
To build a filename that actually describes the legal file you are filing, renamer.ai reads the content of each document you import and extracts these fields. Not every document carries every field, so the AI reads what is in the file and names it from the fields that are actually there.
- Matter number - the internal reference your firm uses to group every document in the case, for example 2026-118
- Document type - whether the file is a contract, pleading, motion, brief, will, trust, engagement letter, demand letter, discovery request, discovery response, or correspondence
- Client or party names - the named parties on your side of the matter, pulled from captions and signature blocks
- Opposing party - the other side, pulled from the caption or the "v." line, so the filename shows the dispute at a glance
- Case number - the court-assigned number, distinct from your internal matter number, read from the caption block
- Filing date - the date the document was filed or served, read from the filing stamp, notice of service, or certificate of service
- Execution date - the date a document was signed or executed, read from signature blocks, useful for agreements, wills, and settlements
- Court - the court or tribunal the matter is in, read from the caption, so multi-jurisdiction firms can sort by venue
- Judge - the assigned judge or magistrate, read from the caption or notice pages, useful in jurisdictions with complex assignments
- Document subtype - the specific variant, such as motion for summary judgment versus motion to compel, read from the title line
- Document status - whether the file is a draft, filed, signed, or executed, read from watermarks, headers, and signature pages
- Version - the draft or revision number, read from the document header or footer, useful when a matter has multiple versions of the same brief
That is twelve fields, and not every document you handle carries every one. A scanned pleading has a caption, a filing date, and parties. A contract has execution date and parties but no case number. A piece of correspondence has a date and a sender but no court. Renamer.ai reads what is in the document and names the file from the fields that are actually there, so your filename reflects the real content instead of forcing every file into the same shape.
The legal-doc-type field matrix
Different legal document types are named from different fields, because the information that identifies a pleading is not the information that identifies a contract. The matrix below maps each major legal document type to the specific OCR-extracted fields that drive its filename. This is the structure renamer.ai uses to pick the right fields for the right document, and it is the part of the naming layer that cannot be copied to a generic file-renaming tool without rebuilding it for legal content.
| Document type | Fields used | Example filename |
|---|
| Pleading or motion | Matter number, document subtype, filing date, court | 2026-131_motion_modify-custody_margot-vandermeer_2026-03-05.pdf |
| Contract or agreement | Matter number, document type, parties, execution date, status | 2026-118_engagement_letter_ravensford-cole_2026-01-30_executed.pdf |
| Correspondence | Matter number, document type, sender or opposing party, date | 2026-131_correspondence_margot-vandermeer_leland-crowder_2026-03-10.docx |
| Will or trust | Matter number, document type, client, execution date, status | 2026-118_will_cordelia-tremblay_executed_2026-02-14.pdf |
| Discovery request or response | Matter number, document type, party, round, date | 2026-125_demand_letter_jalen-okonkwo_brixton-holdings_2026-03-01.pdf |
| Court order or subpoena | Matter number, document type, case number, court, date | 2026-125_subpoena_jalen-okonkwo_2026-125-cv-0488_2026-03-12.pdf |
A pleading is named by its filing date and court, because that is how you find it in a docket. A contract is named by its execution date and status, because that is how you tell a signed agreement from a draft. A will is named by its execution date and status, because that is how you tell the executed version from an earlier revision. The matrix is what makes the naming layer legal-aware instead of generic, and it is the reason a file named by renamer.ai reads like a docket entry instead of a random string.
How to rename legal documents for law firms automatically
The process is three steps, and the same steps apply whether you are renaming a single matter's files or a batch of scanned pleadings that came in from a process server.
Step 1 - Drop or import your legal files
Pull the legal files you want renamed into renamer.ai. You can import a whole matter folder, a batch from your scanner, or a set of files forwarded as email attachments. Mixed formats are fine: scanned PDFs, digital PDFs, JPGs of stamped pleadings, and Word briefs can all go in the same batch. There is no need to sort by document type first, because the next step reads the content of each file to figure out what it is.
Step 2 - AI reads each file's content with OCR
For every file in your batch, renamer.ai runs OCR to read the text, then content analysis to find the matter number, document type, parties, dates, and court. Scanned pleadings with no text layer get read the same way as digital PDFs, because the OCR reconstructs the text from the image first. The AI then matches the document to the right row in the legal-doc-type field matrix and builds a filename from the fields that document type is named by, using the naming template you set for the matter. You see the proposed name next to the original, so you know exactly what changed and why.
Step 3 - Review and apply the new matter-ready names
Look over the proposed names in the side-by-side review. You can accept the whole batch, edit a single name before applying, or set a different template for one matter and re-run just those files. When you apply, the files are renamed on disk with their new matter-ready names, ready to drop into your matter management system or shared drive already organized by matter, type, and date. Nothing is stored, your files leave with new names and nothing else.
Before and after
The table below shows what the naming layer does to real legal file names. The "before" column is the kind of name a scanner or a hurried paralegal produces. The "after" column is what renamer.ai writes from the content it read.
| Before | After |
|---|
| scan_20260214.pdf | 2026-118_will_cordelia-tremblay_executed_2026-02-14.pdf |
| Document(7).pdf | 2026-125_medical_records_jalen-okonkwo_2026-02-20.pdf |
| IMG_20260305_104422.jpg | 2026-131_motion_modify-custody_margot-vandermeer_2026-03-05.jpg |
| contract_final_v3.pdf | 2026-118_engagement_letter_ravensford-cole_2026-01-30_executed.pdf |
| email_attachment.pdf | 2026-125_demand_letter_jalen-okonkwo_brixton-holdings_2026-03-01.pdf |
| New Folder (3)/doc2.docx | 2026-131_correspondence_margot-vandermeer_leland-crowder_2026-03-10.docx |
The first row is an executed will for Cordelia Tremblay, matter 2026-118, executed on February 14. The scanner called it scan_20260214.pdf, which is indistinguishable from every other scan that came in that day. The named version tells you the matter, the document type, the client, the execution date, and the status before you open it. The third row is a photograph of a motion to modify custody, matter 2026-131, that arrived as a phone photo with a camera-roll filename. The OCR read the caption off the image and named it as a custody motion for Margot Vandermeer, dated March 5. The fifth row is a demand letter in the Okonkwo personal-injury matter, served on the opposing party Brixton Holdings, that came in as an unnamed email attachment and now carries the matter, the document type, the client, and the opposing party in its name.
Copy-ready naming templates for legal files
Two templates cover most legal files you handle. Set one as the default for a matter, and renamer.ai applies it to every file in that matter.
Template 1 - Matter, type, client, date
{matter#}_{doctype}_{client}_{date}.pdf. Example: 2026-118_will_cordelia-tremblay_executed_2026-02-14.pdf
This is the workhorse for single-party filings where your client is the named party. It puts the matter first, so every file in a matter sorts together, then the document type, then the client, then the date. Use it for wills, trusts, engagement letters, and motions where your client is the moving party.
Template 2 - Matter, type, opposing party, date
{matter#}_{doctype}_{opposing-party}_{date}.pdf. Example: 2026-125_demand_letter_jalen-okonkwo_brixton-holdings_2026-03-01.pdf
This one is built for disputes, where the opposing party is the detail that disambiguates one matter's filings from another's. It puts the matter first, then the document type, then the opposing party, then the date. Use it for litigation matters where you handle multiple disputes and need the other side's name in the filename to tell matters apart at a glance.
For matters that span multiple courts, add the court as a prefix: {court}_{matter#}_{doctype}_{date}.pdf, for example DC-2026-131_motion_modify-custody_2026-03-05.pdf. For correspondence that has no case number, drop the case-number field and lead with the matter, the document type, and the sender: {matter#}_{doctype}_{sender}_{date}.pdf.