How to organise photos into folders by date on Windows and Mac
30 November 2026
To organise photos into folders by date, sort them by the date taken that the phone or camera stored inside each photo, not by the file's own date, which often just shows when it was copied. Neither Windows nor macOS can do this to a folder already on your computer, but free apps can: digiKam with point and click, or ExifTool with one typed command.
Before you start: copy, don't move
- Work on copies. Every method below can copy rather than move. Keep the originals and a backup until you've checked the result.
- Count the files in the original folder, so you can check nothing went missing.
- Expect some photos with no date taken. Screenshots, WhatsApp downloads and scans often have none. Why photos show the wrong date explains why.
1. Windows' Import pictures and videos
Good for: photos still on a phone, camera, memory card or USB stick.
- Connect the phone or insert the card. In File Explorer, choose This PC.
- Right-click the device and choose Import pictures and videos. On Windows 11, choose Show more options first if you don't see it.
- Choose More options. Pick the folder to import to, set Folder name to Date Taken + Name (or Date Taken Range + Name), leave Delete files from device after importing unticked and choose OK.
- Choose Review, organize, and group items to import, then Next. Windows groups the photos by the time between them and saves each group to its own folder. The slider sets the gap that starts a new group, and you can name each group.
- Choose Import.
It only works on a device you're importing from, not a folder already on your computer. You get a folder per day or outing, named by date, rather than year folders with months inside.
2. Sort by Date taken in File Explorer
Good for: seeing a folder in date order, or filing a few hundred photos by hand.
- Open the folder and choose View > Details.
- Right-click a column heading and tick Date taken. If it isn't listed, choose More and find it there.
- Click the Date taken heading to sort by it.
Then make year and month folders, select each month's photos (click the first, Shift-click the last) and hold Ctrl as you drag them in, to copy rather than move.
Videos keep their date in a separate Media created column, and photos where Windows finds no date taken show a blank. Group by > Date taken uses broad bands such as Earlier this year and A long time ago, as one Windows user found, not one group per month.
3. Export from Apple Photos on a Mac
Good for: photos that are already in your Photos library.
- In Photos, select the photos to export.
- Choose File > Export > Export Unmodified Original. This exports the files as they came from the camera, with the date taken still inside.
- Open the Subfolder Format menu and choose a subfolder option rather than None, so each moment gets its own folder.
- Choose Export, pick a folder, then Export Originals.
Each folder holds a moment, usually one day or outing, named after its date and sometimes the place, so a year makes dozens of folders rather than twelve. Photos that aren't in the library have to be imported first, which copies them into it. Apple's export guide has more.
4. digiKam: free, point and click
Good for: a large collection on Windows, Mac or Linux, without typing commands.
digiKam is a free, open-source photo manager. It keeps a database of your collection, so expect some setting up. Then:
- Choose Import > Add Images and pick the folder of photos.
- In the import window's settings, tick Date-based sub-albums and choose a custom date format. A slash makes nested folders: the manual's example, yyyy/MM/dd, gives 1969/07/20, so yyyy/MM gives year folders with months inside.
- Download the photos into an album in your collection.
The manual's import settings page says the folders come from the date stored inside each photo.
5. ExifTool: free, one typed command
Good for: thousands of photos, if you're happy using Command Prompt or Terminal.
ExifTool is free for Windows, Mac and Linux; follow the install steps on its site. Open Command Prompt or Terminal in the folder that holds your photos folder (here called Photos) and run:
exiftool -o . -r -d "Sorted/%Y/%m/%%f%%-c.%%e" "-filename<filemodifydate" "-filename<createdate" "-filename<datetimeoriginal" Photos
-o .copies the photos instead of moving them, and-rincludes folders inside Photos.- The
-dpattern puts each copy in a new Sorted folder by year and month, such as Sorted/2024/07, under its own name, and%%-cadds a number if two would share a name. - ExifTool reads the three
-filename<parts left to right and the last one a photo has wins: the date taken, then the creation date stored inside the file (a video's recorded time), then the file's modified date.
That last fallback is the catch: a photo with no date taken is filed under its modified date, which may be the day it was copied. Check the summary ExifTool prints for files it couldn't copy. Its renaming and moving examples explain each part.
When a tool is quicker
With years of phone backups, camera cards and WhatsApp downloads in one folder, it helps to see where everything will go first.
That's why we made Sort Photos. Choose the folder and it reads the date taken inside each photo, including iPhone HEIC photos, the recorded time inside MP4 and MOV videos, or a date in the file name, as phones, WhatsApp and screenshots use. You see the plan first: the year and month folders, every new name, such as 2026-11-30 14.32.05.jpg, and where each date came from. Photos with no date go in a No date folder for you to check, exact copies are left where they are, and Live Photos, RAW and JPEG pairs and iPhone edit files stay together. Copying is the default, every copy is checked and nothing is overwritten.
It runs in your browser and your photos are never uploaded. Copying or moving into folders needs Chrome or Edge on a computer; Firefox and Safari give you the sorted copies in a .zip file instead, up to 2 GB. The plan is free for any number of photos and the free version copies or moves up to 50 at a time; Pro is £15 once. You can try it with a sample folder first.
Quick answers
How do I sort photos by date taken rather than date modified? Use something that reads the date stored inside each photo: File Explorer's Date taken column, digiKam, ExifTool or Sort Photos.
Can Windows sort photos into folders by date automatically? Only as you import them from a phone, camera or memory card with Import pictures and videos, and it makes a folder per day or outing rather than year and month folders.
Should I copy or move my photos? Copy. Keep the originals until you've checked that the sorted folders hold every photo.