A file naming convention for invoices and receipts
30 November 2026
A good file naming convention for invoices and receipts puts the date first, written year first, then who it's from and the invoice number, such as "2026-11-30 Kestrel IT Ltd - KIT-7781.pdf". Dates written that way sort into date order in any folder, and keeping to letters, numbers, spaces and hyphens avoids the characters Windows, Mac and OneDrive won't accept.
Why the date goes first, written 2026-11-30
Folders sort file names from the left, so whatever comes first decides the order. Write the date day first and the 1st of December comes before the 2nd of November:
01-12-2026 Brightwater Cleaning.pdf
02-11-2026 Kestrel IT Ltd.pdf
30-11-2026 Northgate Office Supplies.pdf
Written year, month, day, the same files sort into date order:
2026-11-02 Kestrel IT Ltd.pdf
2026-11-30 Northgate Office Supplies.pdf
2026-12-01 Brightwater Cleaning.pdf
That's the ISO 8601 date format, which, as ISO puts it, allows chronological sorting by simple text comparison. Use two digits for the month and day (2026-03-05, not 2026-3-5), and hyphens rather than slashes, which file names can't contain. It's clearer, too: 03/05/2026 is 3 May in the UK and 5 March in the US.
What to put in the name
Three parts cover most bookkeeping:
- The date. Pick one and use it every time. The invoice date is the usual choice; for a receipt, the date you paid.
- Who it's from. Use the same short form of the supplier's name every time, such as "Kestrel IT Ltd", so a search finds all of its files.
- The invoice number. It's what the supplier will ask for, and it tells apart two invoices from one supplier on the same day. For a receipt with no number, say what it was for, such as "train ticket".
Add the type when it isn't an invoice, such as "credit note" or "statement". The amount, written as 120.00, can help you match files to bank lines, at the cost of longer names. For invoices you send, put your own number first if you number them in order, with leading zeros (INV-0042) so they sort correctly.
| Document | File name |
|---|---|
| Supplier invoice | 2026-11-30 Kestrel IT Ltd - KIT-7781.pdf |
| Receipt | 2026-11-28 Northgate Office Supplies - receipt.pdf |
| Credit note | 2026-12-03 Kestrel IT Ltd - credit note CN-0112.pdf |
| Statement | 2026-11-30 Brightwater Cleaning - statement.pdf |
| Your own invoice | INV-0042 2026-11-30 Harbour Dental.pdf |
A folder for each year, or each financial year, keeps old records apart. HMRC asks the self-employed to keep records for at least 5 years after the 31 January deadline for that tax year, and limited companies for 6 years from the end of the financial year they relate to.
Characters to leave out
- Windows doesn't allow
\ / : * ? " < > |in file names, or a name ending in a space or full stop, and reserves names such as CON, PRN, AUX, NUL, COM1 and LPT1. - Mac: Finder doesn't allow a colon, and a name can't start with a full stop.
- OneDrive and SharePoint don't allow
" * : < > ? / \ |, spaces at the start or end of a name, or names such as .lock and desktop.ini, or any starting with ~$, as Microsoft's restrictions page explains.
Letters, numbers, spaces, hyphens and full stops between words are safe on all three. Swap a slash in an invoice number, such as KIT/7781, for a hyphen.
Keep names reasonably short, too. The limits count the whole path, folders included: Microsoft's figures are 260 characters in File Explorer, and 400 in OneDrive and SharePoint.
Putting it into practice
1. Name files as you save them
Good for: invoices from now on.
When you save an attachment or download an invoice, type the new name in the Save dialog, and save it straight into that year's folder. There's nothing to sort out later.
2. Rename existing files by hand
Good for: a short backlog.
Select a file and press F2 in File Explorer, or Return in Finder on a Mac, and type the new name. Copy the invoice number from the PDF rather than retyping it.
3. Rename them automatically
Good for: a folder of invoices with unhelpful names, if you're happy to set up an automation.
Power Automate for desktop on Windows, or a script, can read each PDF and rename it, as long as you write a rule for each supplier's layout. Here's how to rename invoice PDFs automatically, step by step.
When a tool is quicker
If you have a folder of invoices called invoice (3).pdf and document.pdf, Name Documents renames them to this convention. Click the date, the supplier and the invoice number on one PDF, and it finds the same values in the others, writes every date as 2026-11-30 and replaces characters file names can't contain. You check every new name before anything changes, then download renamed copies or, in Chrome and Edge, rename the PDFs in their folder. It needs PDFs with text it can read, so scans need OCR first.
It runs in your browser and your files never leave your computer. The free version renames up to 10 PDFs at a time; Pro is £19 once and renames any number. You can try it with sample invoices.
Quick answers
Should I use spaces or underscores in file names? Either works on Windows, Mac and OneDrive. Spaces are easier to read; whichever you choose, use it every time.
Why do my invoices sort in the wrong order? The dates are probably written day first, or without leading zeros. Year, month and day, with two digits each for month and day, sort correctly.
Should the amount go in the file name? Only if it helps you. It makes matching to bank statements easier but names longer, and the invoice number does more to tell files apart.