How to Rename Photos by Date on Mac
IMG_4471.HEIC says nothing, and Finder's "Date Modified" often lies too. The actual date a photo was taken, and how to rename by it.
By Ram Velmurugan · Founder & Lead Developer, 1dot.ai
exiftool utility (brew install exiftool) and run exiftool "-FileName<DateTimeOriginal" -d "%Y-%m-%d_%H.%M.%S.%%e" . in the folder. It reads the date embedded in each photo, not the date on the file. For photos that also need naming by what they show, a photographed receipt or document mixed into your camera roll, Magic Rename reads the content itself, on-device.A phone camera roll exports as a folder of IMG_4471.HEIC, IMG_4472.HEIC, IMG_4473.HEIC, in whatever order they happened to come off the device. None of that tells you when a photo was taken without opening it, and the obvious fix, sort by date, runs into a problem most people don't expect: the date Finder shows you is very often not the date you think it is.
This guide covers why that happens, which native Mac tools actually solve it and which only look like they do, and the one free command-line tool that reads the real date. Then it covers the case a date-based rename can't handle on its own, photos that are really photographed documents, which is where Magic Rename fits.
- File date vs. photo date: why they don't match
- Does the Photos app have a rename-by-date option?
- Automator's "Add Date or Time" and its catch
- The Shortcuts app: same catch, different interface
- exiftool: renaming by the date actually embedded in the photo
- Good vs. bad photo filenames
- Renaming a photo folder with exiftool, step by step
- When date alone isn't enough
- Sources & further reading
- FAQ
File Date vs. Photo Date: Why They Don't Match
Every photo file carries two separate kinds of date. One lives in the Mac's filesystem: when this specific file was created or last modified on this specific drive. Finder shows you this one by default, in list view or Get Info. The other lives inside the file itself, in a block of EXIF metadata the camera or phone writes at the exact moment it captures the image, in a field called DateTimeOriginal.
These two dates start out identical, then drift apart the moment a file moves. AirDrop a photo to another Mac, and the receiving computer stamps a brand-new filesystem creation date on it, today, even though the picture is three years old. Download the same photo from iCloud, copy it to an external drive, or restore it from a backup, and the same thing happens. The EXIF date inside the file never changes through any of that. Only the filesystem date does, which is exactly backward from what most people assume when they see "Date Modified" in Finder.
This is the reason a rename method that reaches for the filesystem date, which several native options do, quietly gives you the wrong answer for any photo that has been moved even once.
Does the Photos App Have a Rename-by-Date Option?
No, and this surprises people who assume it must, since Photos already knows the exact capture date of everything in your library and sorts by it constantly. Open File > Export > Export X Photos, and the File Name dropdown gives you exactly three choices:
| Option | What it produces |
|---|---|
Use Title | Whatever title you manually gave the photo inside Photos, or a generic one if you never titled it. |
Use Filename | The name the photo already had when it was imported, usually the camera's own IMG_#### pattern. |
Sequential | A text prefix you choose, followed by a running number: Trip - 1, Trip - 2, and so on. |
None of the three touches the date. You can organize exported files into dated subfolders using the Subfolder Format setting in the same export dialog, which helps for browsing but still leaves every individual filename exactly as generic as before.
Automator's "Add Date or Time" and Its Catch
Automator's Rename Finder Items action, dropped onto a Quick Action or a standalone workflow, includes a rename mode called Add Date or Time, which looks like exactly what this problem needs. Point it at a folder, choose a format, and it prepends or appends a date to every filename.
The catch: that date comes from the file's creation date on your Mac, the same filesystem date covered above, not from the camera's EXIF timestamp. For photos still sitting exactly where they landed after import, this can be close enough. For anything that has been copied, AirDropped, or pulled off a backup, it will confidently rename files with the wrong date and give no indication that anything is off.
The Shortcuts App: Same Catch, Different Interface
Shortcuts, built into macOS since Monterey, can build the same kind of workflow: a Get Details of Files action pulls a property from each photo, Format Date turns it into a filename-friendly string, and Rename File applies it. It is more flexible than Automator's fixed dropdown, since you can combine the date with other text, and it runs well as a Quick Action from Finder's right-click menu.
The property most people reach for, Creation Date, is once again a filesystem property in most configurations, not the embedded EXIF capture date. It is a genuinely good tool for a quick batch where you know the files haven't moved since they were taken, but it is not the reliable answer once photos have traveled through AirDrop, cloud sync, or a backup drive.
exiftool: Renaming by the Date Actually Embedded in the Photo
ExifTool is a free, open-source command-line program that has been the standard tool for reading and writing photo and video metadata for over two decades. It is not made by Apple and does not come preinstalled, but it is a single Homebrew install away, and it reads DateTimeOriginal directly from inside the file, the same field the camera wrote the instant the shutter opened. That field survives every copy, transfer, and backup untouched, which is exactly what a filesystem date does not do.
exiftool "-FileName<DateTimeOriginal" -d "%Y-%m-%d_%H.%M.%S.%%e" .Run from inside the photo folder, this reads each file's DateTimeOriginal tag, formats it as 2026-06-14_15.32.08, and renames the file to that plus its original extension. Nothing about the image itself changes, only the name.Not every file has a DateTimeOriginal tag. Screenshots, images downloaded from the web, and some re-saved or edited files never had one written in the first place. Chaining a second tag catches most of the rest:
exiftool "-FileName<DateTimeOriginal" "-FileName<FileModifyDate" -d "%Y-%m-%d_%H.%M.%S.%%e" .ExifTool tries each source tag in order and uses the first one present in a given file, so genuine photos get their real capture date and anything missing that field falls back to its file modification date instead of being skipped outright.
Good vs. Bad Photo Filenames
| Bad | Why it fails | Good |
|---|---|---|
IMG_4471.HEIC | The camera's own counter. No date, no context, resets on some devices. | 2026-06-14_15.32.08.heic |
Trip - 47.jpg | Photos app's Sequential export option. Groups a trip together but not by date. | 2026-06-14_09.05.41.jpg |
4471 (2).heic | Auto-numbered duplicate from a second copy of the same import. | 2026-06-14_15.32.10.heic |
Photo Jun 14, 3 32 08 PM.jpg | Looks date-based, but was built from the filesystem date, which may not match the EXIF date if the file was ever copied. | 2026-06-14_15.32.08.jpg |
Renaming a Photo Folder with exiftool, Step by Step
Install Homebrew, if you don't already have it
SetupHomebrew is the package manager most Mac command-line tools install through. If brew already works in Terminal, skip to step 2; otherwise, run the install script from brew.sh.
Install exiftool
TerminalRun:
brew install exiftoolNavigate to your photo folder
TerminalIn Terminal, cd into the folder holding the photos you want renamed, or drag the folder onto the Terminal window after typing cd and a space to paste its path automatically.
Preview the dates before renaming anything
Check firstRun:
exiftool -DateTimeOriginal -FileName -T *.jpgThis prints each file's current name next to its recorded capture date, with nothing changed yet, so you can confirm the dates look right before committing.
Duplicate the folder as a safety copy
RecommendedExifTool has no built-in undo for a rename operation. Duplicate the folder first (Cmd-D in Finder) the first time you run this, until you are comfortable with the command.
Run the rename command
Applies the renameexiftool "-FileName<DateTimeOriginal" -d "%Y-%m-%d_%H.%M.%S.%%e" .Every photo with a DateTimeOriginal tag is renamed to its capture timestamp. ExifTool prints a summary of how many files it renamed and how many it left untouched.
Add a fallback for files with no capture date
Optional, second passFor anything exiftool skipped, screenshots, web downloads, re-saved images, run it again with a fallback tag so those get a usable name too instead of staying generic:
exiftool "-FileName<DateTimeOriginal" "-FileName<FileModifyDate" -d "%Y-%m-%d_%H.%M.%S.%%e" .Check Live Photo pairs
Worth a glanceIf any photos are Live Photos exported as an unmodified original, each one comes as a matching image-and-video pair sharing the same base filename. Confirm the pair still matches after renaming; a video timestamped a few seconds off from its image can end up with a different new name and break the pairing.
Hand content-heavy photos to Magic Rename separately
A different problemIf the folder also has photographed documents mixed in, a receipt, a whiteboard, a business card, pull those out and run them through Magic Rename instead, since a date alone won't tell you what any of them actually are.
When Date Alone Isn't Enough
A folder of straightforward personal photos, a beach trip, a birthday, a dog running around a yard, is exactly what exiftool is built for: fast, accurate, based on the real capture metadata, with no ambiguity about what "the date" even means. But a phone camera roll rarely stays that clean. It also picks up photographed documents along the way, a receipt snapped in a parking lot, a whiteboard from a meeting, a business card, a printed form, and for those, the date is the least useful thing you could name the file after.
This is a different job, reading what is actually in the picture rather than when it was taken, and it is what Magic Rename is built for. Its on-device OCR and vision read the visible content of an image, the text on a receipt, the handwriting on a whiteboard, the fields on a card, and generate a name from that, entirely on your Mac, with nothing uploaded. A photo that is mostly scenery with little or no readable text gets a shorter, more general name than one full of text, since there is simply less content for it to work from, which is also exactly why exiftool's date-based approach remains the better fit for ordinary photos.
Not every photo needs a date. Some need to be read.
Magic Rename reads what is actually in a photographed document and names it accordingly, entirely on your Mac. 7-day free trial, no credit card required.
Try Magic RenameExplore Files Magic AISources & Further Reading
Photos app export file-naming options (Use Title, Use Filename, Sequential): Apple Support, "Export photos, videos, slideshows, and memories on Mac". ExifTool documentation and the FileName-from-tag renaming pattern: exiftool.org. Live Photo unmodified-original export as a matching image-and-video pair: cross-referenced across Apple's own Photos export documentation and independent reporting on Live Photo exporting.
Magic Rename's on-device OCR, vision, and templates: Files Magic AI's Magic Rename product page. The same content-based approach applied to other file types: renaming screenshots, renaming scanned receipts, and renaming PDFs by content. How AI file renaming works more broadly: our AI file renaming guide.
Frequently Asked Questions
"IMG_4471" and a Finder date you can't quite trust are a bad combination for finding a photo later. The fix for ordinary photos is a free command-line tool that reads the date the camera actually recorded, not the one your Mac happened to stamp on the file during its last copy. The fix for photographed documents mixed into the same camera roll is different, and that's where Magic Rename comes in. For the same content-aware approach applied elsewhere, see how to rename screenshots automatically on Mac and how to rename scanned receipts on Mac. For a broader look at how this category of tool works, read How AI File Renaming Works on Mac. Once a photo library is named consistently, finding and clearing duplicate photos is a natural next step, and our bulk renaming guide covers the classic pattern-based tools if a full AI workflow is more than a given folder needs.
Published August 21, 2026 · More guides · Files Magic AI