How to Batch Rename Photos (by Date Taken) on Windows and Mac
Batch rename photos on Windows and Mac: File Explorer, Finder, PowerRename with the EXIF date taken, and ExifTool, plus a naming pattern that stays sorted.
Published by the team behind PicOrganizer.
Short answer: sort by the capture date stored inside each photo (the EXIF DateTimeOriginal field), not by the file's created or modified date. Put photos into Year/Month folders (for example 2024/07) and go down to day folders only for trips and events. You can automate it for free with ExifTool (one command) or PicOrganizer (in your browser, no upload). Before you start, check which photos have no capture date: we suggest setting them aside by hand.
| Date | Where it lives | Trust it? |
|---|---|---|
Date taken (DateTimeOriginal) | Inside the photo, written by the camera or phone | Yes, it's the moment of the shot |
| File created | In the file system | No: it can become the date of the copy |
| File modified | In the file system | No: editing or copying can change it |
When you copy photos from a card, a phone or a cloud export, the file dates may change, but the date taken travels inside the file. That is why sorting tools read EXIF.
Check these cases before you sort:
Check a few photos first. Our EXIF editor shows the date taken of any photo for free, in your browser, and can correct it in JPEG files (3 free edits with a free account, unlimited on the Standard plan).
Photos/
2023/
2023-01/
2023-02/
2024/
2024-07/
2024-08/
Few levels, and each month holds a manageable number of photos. Number the months (01 to 12, or 2024-07): with month names alone, your file manager sorts them alphabetically (April before February).
2024/
2024-07/
2024-07-14/
2024-07-15/
Best for trips, weddings and projects, where each day is a chapter. For everyday photos it creates hundreds of near-empty folders.
Good as a first pass on a huge backlog: it gets tens of thousands of photos out of one folder quickly. You can split by month later.
By season suits landscape and nature work; by time of day (morning, afternoon, evening, night) suits a wedding or a festival day. For event names and place folders, see our guide to photo folder structure and naming.
ExifTool's documentation shows how to move files into folders named from their capture date:
exiftool -d %Y/%m "-directory<DateTimeOriginal" DIR
This moves each photo in DIR into a Year/Month folder, creating folders as needed. Use %Y/%m/%d for day folders. Run it on a copy first.
PicOrganizer is our tool:
2024-07-14) or Year / Month (like 2024/07 - July).Good to know: a photo with no capture date is sorted by its file date, which is often the day it was copied. It is not flagged or put in a separate folder, so check your photos first with the EXIF editor, or take the undated ones out before sorting.
Sorting by date, by year and month, and by format is free (50 photos per sort, 5 sorts a month). Sorting by season and by hour or time of day is in the Standard plan (€19, paid once, 500 photos per sort), and stacking criteria such as Year > Month > City takes the custom sorter in Premium (€29, paid once). See pricing. It needs an internet connection and, after the first sort, a free account.
The photos are read and sorted in your browser and never uploaded. Sorting by location sends rounded GPS coordinates to our server to look up place names; the full list of what leaves your device is on our local processing page.
digiKam (free, open source) lets you search your library by date with a calendar. It is better for browsing than for rebuilding folders, and pairs well with a sorted folder tree. See our comparison of free photo organizers.
Undated, and go through them later.-TAG=VALUE syntax (exiftool -DateTimeOriginal="1998:12:25 12:00:00" photo.jpg; by default it keeps a copy of the original with _original added to its name), or use our EXIF editor for JPEG files.How do I sort photos by date taken instead of date modified?
Use a tool that reads EXIF: ExifTool's -directory<DateTimeOriginal command, PicOrganizer's date sorting, or PowerRename's $DATE_TAKEN patterns if you want dates in file names (see batch renaming photos).
What is the best folder structure for photos by date?
Year/Month for most collections; add day folders for trips and events.
Can I organize photos by date on a phone? To get real folders, transfer the photos to a computer and sort them there; see organizing iPhone and Android photos.
Is sorting by date free in PicOrganizer? Yes: by date, by year and month and by format, up to 50 photos per sort and 5 sorts a month on the free plan.
Batch rename photos on Windows and Mac: File Explorer, Finder, PowerRename with the EXIF date taken, and ExifTool, plus a naming pattern that stays sorted.
How to name photo folders so they sort correctly, and folder structures for events, places, trips and several cameras, with examples you can copy.
Turn thousands of iPhone or Android photos into real folders by date, place or subject: what to do on the phone, what to do on a computer, step by step.