How to Organize Photos by Date Into Folders (Year, Month, Day)
Organize photos by date taken into year, month or day folders: which date to trust, which folder structure to pick, and how to automate it for free.
Published by the team behind PicOrganizer.
Short answer: for a simple "Holiday (1), Holiday (2)" rename, select the files and press F2 in Windows File Explorer, or use Rename in the macOS Finder. To rename photos by the date they were taken, use Microsoft's free PowerRename on Windows (it reads the EXIF date taken) or the free ExifTool command line on any system. Use a pattern like 2024-07-14_153012.jpg: it sorts chronologically everywhere.
A rename is only useful if the new names sort correctly and stay unique.
2024-07-14 or 20240714. Alphabetical order then equals chronological order, in any file manager._153012) so two photos from the same day don't collide.2024-07-14_153012_kyoto.jpg.DateTimeOriginal) is written by the camera inside the photo. See EXIF data explained.Kyoto, press Enter.Kyoto (1).jpg, Kyoto (2).jpg...Fast, but you can't put the capture date in the name. Ctrl+Z undoes the rename right after.
PowerRename is part of Microsoft PowerToys, a free, open source set of Windows utilities. After installing PowerToys, select files in File Explorer, right-click and choose Rename with PowerRename. You get a preview of every new name before anything changes, and an undo afterwards.
To rename by capture date:
.* and tick Use regular expressions (this matches the whole name).$DATE_TAKEN_YYYY, $DATE_TAKEN_MM, $DATE_TAKEN_DD, $DATE_TAKEN_HH, $DATE_TAKEN_mm, $DATE_TAKEN_SS, and others like $CAMERA_MODEL.$DATE_TAKEN_YYYY-$DATE_TAKEN_MM-$DATE_TAKEN_DD-$DATE_TAKEN_HH$DATE_TAKEN_mm$DATE_TAKEN_SSCareful: PowerRename's other date patterns ($YYYY, $MM, $DD without DATE_TAKEN) use the file's creation date, not the capture date. For photos, you almost always want the DATE_TAKEN ones.
The Finder also offers Replace Text (find and replace in names) and Add Text (before or after the name). Apple's guide doesn't describe using the photo's capture date, so for date-taken names use ExifTool below.
ExifTool is free software by Phil Harvey for Windows, macOS and Unix. Its documentation gives this pattern to rename files from a date tag; here it uses the capture date, DateTimeOriginal:
exiftool -d %Y%m%d_%H%M%%-c.%%e "-filename<DateTimeOriginal" DIR
%Y%m%d_%H%M builds names like 20240714_1530.%%-c adds a copy number (-1, -2) when two photos would get the same name; existing files are not overwritten.%%e keeps the original extension.DIR with your folder. In a Windows batch file, every % must be doubled again.Want seconds in the name? Use %Y%m%d_%H%M%S instead. If some files lack the tag you chose, ExifTool's documentation suggests trying another date tag, such as CreateDate or FileModifyDate (the file date, less reliable).
Renaming makes files sort in order inside one folder. With thousands of photos, folders do more of the work: 2024/07 - July/ is easier to browse than 4,000 files in one place. Two approaches combine well:
Year/Month or day folders using their capture date (or the file date when a photo has none), in your browser, without uploading them. Date and format sorting are free (50 photos per sort); location and camera folders are in the Standard plan (pricing). Its sorting options can also add a prefix to every file name (Kyoto_IMG_0421.jpg), which keeps the camera's original name. It does not build date-based file names; use PowerRename or ExifTool for that.Our guide to organizing photos by date covers the folder side in detail.
20240714_1530.CR3 still matches 20240714_1530.JPG.How do I rename photos by date taken on Windows?
Install Microsoft PowerToys and use PowerRename with the $DATE_TAKEN_... patterns, or use ExifTool. File Explorer's F2 rename can't use dates.
How do I batch rename photos on a Mac? Select them in the Finder, Control-click, choose Rename, then Format. For capture-date names, use ExifTool.
Will renaming change the photo's EXIF date? No. The name and the EXIF metadata are separate; renaming touches only the name.
Can I undo a batch rename? In File Explorer and PowerRename, Ctrl+Z right after the rename undoes it. With ExifTool, there is no undo, which is why you test on a copy.
Organize photos by date taken into year, month or day folders: which date to trust, which folder structure to pick, and how to automate it for free.
Organize and back up photos without Google Photos or iCloud: gather everything, sort it locally, keep three copies, and pick free tools that never upload.
How to name photo folders so they sort correctly, and folder structures for events, places, trips and several cameras, with examples you can copy.