File naming conventions that stay sorted
A good file naming convention puts the date first in year-month-day order, uses one separator, leaves out spaces and illegal characters, and keeps the parts in the same order in every name.
Drop your files here
PDFs, scans, photos and Office files. Read in this browser, never uploaded.
Step by step
How it works
Choose your order
Decide which parts a name needs, for example date, type, company and number, and put them in the order you search by.
Write it as a pattern
Turn the order into tokens, such as {date}_{type}_{issuer}_{number}, and check the result on a few files above.
Apply it to the batch
Rename the whole batch, download a ZIP, or rename in place in Chrome, Edge or the desktop app.
The rules that matter
Start with the date in ISO order, 2026-03-12. Folders sort names alphabetically, and only year-month-day order makes alphabetical order the same as time order. Day-first and month-first dates scatter files across the folder.
Use one separator and one order for the parts. Avoid spaces, which turn into %20 in links and need quoting in scripts, and avoid the characters Windows does not allow in names: \ / : * ? " < > |. Keep the name short enough to read in a file list, and write company names in one style, such as AcmeCorp or acme-corp.
Examples with tokens
{date}_{type}_{issuer}_{number} gives 2026-03-12_Invoice_AcmeCorp_INV-0042.pdf, which sorts by time and is easy to search by company or number. {issuer}_{date}_{type} puts the company first, which suits a folder per client. {date:YYYYMMDD}_{title} gives a compact date followed by the title.
For photos, {date:YYYYMMDD}_{camera}_{original} keeps the capture date and the old name. For anything that must stay in a fixed order, add {counter}. Add {year} or {quarter} when you want to see the period at a glance.
Applying a convention to files you already have
Renaming old files by hand is where conventions fail. The renamer reads each file for its date, type, company and number, and fills your pattern with them, so the convention is applied from the content and not from the old name.
The same file and pattern always give the same name. Illegal characters are replaced for Windows, macOS and Linux, and duplicates get -2, -3. Rename in place in Chrome, Edge or the desktop app is undoable from History. Pro can also sort the renamed files into folders such as {type}/{year}.
Questions
Common questions
Why should the date come first in a file name?
Files sort alphabetically, so a name that starts with the date in year-month-day order sorts by time. Other date orders do not.
Should I use spaces, underscores or hyphens?
Avoid spaces, because they cause trouble in links and scripts. Underscores between the parts and hyphens inside a part, as in 2026-03-12_Invoice_AcmeCorp, make the parts easy to tell apart.
Which characters are not allowed in file names?
Windows does not allow \ / : * ? " < > |. The renamer replaces characters that are illegal on Windows, macOS or Linux, so one name works on all of them.
Can I change the convention later?
Yes. Choose a new pattern and apply it to the same files. The names are worked out from the content, so a convention change does not depend on the old names.
Does the tool keep a record of what it renamed?
An in-place rename is recorded in History, stored in your browser, so it can be undone. You can also export the old and new names as a CSV.
Keep going
Related pages
- Invoice
- Bank Statement
- Photo
Ready when you are
Choose a few files and see the new names before anything is saved.
Your files are read on your device and never uploaded