FileDial › Guides › Archives, folders and renaming

How to add a date to file names on a Mac

By Himanshu Ranjan · Updated 8 November 2026

Select the files in Finder, open FileDial and choose Rename › Add date prefix, which gives names like 2026-11-04 Name.ext from the creation date. For photos use Rename › Rename by date taken. Both rename the originals and have Undo.

Why date-first names

A name that starts with year, month and day sorts in time order in any file list. That is the reason ISO-style dates, such as 2026-11-04, are popular for invoices, scans and meeting notes.

FileDial's Rename › Add date prefix produces exactly that shape: 2026-11-04 Name.ext, using the creation date. The tool renames the originals, and Undo puts them back.

Steps

Files of any type work.

  1. Select the files in Finder.
  2. Open the dial with the right Option key and choose Rename, then Add date prefix.
  3. Check the names and use Undo on the result card if the date is not the one you wanted.

The date question

The creation date is not always the date that matters. A file copied from a camera card or downloaded last week has last week's creation date. For photos and videos, Rename › Rename by date taken uses the date taken, else the file's date, and gives names like 2024-07-04 14.22.10.jpg. For folders, it works on the photos and videos inside.

For documents named from their content, Convert › Rename by content… uses date, company and number, and Convert › Copy with name from content… makes a renamed copy leaving the original untouched.

Doing it with Finder

Finder's Rename on a selection has a Format mode that can put a date, an index or a counter before or after a custom name, as Apple documents. It is fine for adding the current date. It cannot reach into each file's own creation date the way FileDial's prefix does, so each file gets the same date rather than its own.

For a custom date and sequence in one go, Rename › Rename with pattern… combines date, sequence number and find/replace.

Undo and safety

Renaming originals is safer with a plan. Try a handful of files first, and keep the result card open. Undo is available on every FileDial result, including renames. For a full folder you cannot afford to scramble, copy it first.

Choosing a date format

The year-month-day order, written 2026-11-04, sorts correctly as text, so a folder of files in date order is also in name order. Other orders such as 04-11-2026 sort by day first and mix years together. That is the reason Rename › Add date prefix produces 2026-11-04 Name.ext and Rename › Rename by date taken produces names like 2024-07-04 14.22.10.jpg.

Note the time in the photo version: colons are avoided in file names because some platforms forbid them, so dots separate hours, minutes and seconds.

Common mistakes and when FileDial fits

Adding a date twice is the classic. Run the prefix tool on files that already start with a date and you get two dates. Check one file first. Another is trusting creation date for downloaded or copied files, where the creation date is when the file reached this Mac and not when it was written. For documents with a real date inside, such as invoices, Convert › Rename by content… uses date, company and number from the document itself.

If you want a date and a counter in one name, use Rename › Rename with pattern… so you do not apply two passes. And if you need to remove the date later, Rename › Regex rename… can strip a leading pattern.

Use it for bulk date prefixes, especially when each file needs its own date. Finder can add one date to a batch, which is fine for a single event, but not when files have different dates.

Remember that renaming originals is permanent apart from Undo, so try a few files first. If other documents link to these files by name, rename copies instead and update the links.

Adding a date to files that already carry one gives double dates, so check a sample. Using the creation date for copied files gives a misleading date. Renaming files that other documents link to breaks the links. Forgetting that macOS file systems are case-insensitive but case-preserving, so renaming only by case can behave oddly on other systems.

If you plan to use dates as the sort key, keep to one format throughout. Mixed formats such as 4-11-2026 and 2026-11-04 in the same folder will never sort correctly.

For ongoing work, think about whether a watched folder suits you. FileDial's Recipes chain tools, and watched folders run a recipe on anything dropped into a folder, so incoming scans can be dated automatically as they arrive. That is optional, and a one-off rename is still the right call for a single backlog.

Questions

Which date does Add date prefix use?

It uses the creation date, giving names like 2026-11-04 Name.ext, according to the tool's note. If the files were copied from another disk, the creation date may be the copy date, so for photos and videos consider Rename › Rename by date taken instead.

Can I use the date a photo was taken instead?

Yes. Rename › Rename by date taken uses the date taken, else the file's date, and produces names such as 2024-07-04 14.22.10.jpg. For folders, it works on the photos and videos inside the folder, so you can select a folder of a trip rather than every file.

Does Finder's rename add each file's own date?

Finder's Format option can add a date, a counter or an index before or after a custom name, but it does not read each file's own creation date the way Rename › Add date prefix does. Finder applies one value to the whole batch, which is often not what you want.

Sources

  1. Apple Support: Rename files, folders and disks on Mac
  2. Wikipedia: Filename

Related

Try FileDial free for 1 daySee the dialNo card, no account. Then $20 once, for 2 Macs. Runs offline on macOS 14+ (Apple silicon).