Common fix · Photos
Sort photos by date taken
By Suprabhat Updated How we write these
2 min read
What you’ll end up with
One folder of photos from every device, in the order they were taken, without the duplicates.
Photos from two phones and a camera never sort properly together. Each device names its files its own way — IMG_, PXL_, DSC_ — and the “date modified” your computer shows is usually when the photo was copied, not when it was taken. So the trip comes out in the wrong order.
The real capture time is stored inside every photo. Renaming each file by that date makes them sort correctly everywhere: in any folder, on any computer, in any cloud drive.
What to do
-
Rename every photo by the date it was taken
Drop all the photos in, pick a name format such as 2026-07-14 18.42.07.jpg, and save them to a new folder or as a ZIP. Photos without a date inside are named by their file date and marked, so you can check them.
Rename photos by date -
Drop the duplicates
Merged folders nearly always contain the same photo twice — once from the camera roll, once from a chat app. Find them, even when one copy has been resized or converted, and keep the best copy of each.
Find duplicate photos -
Convert the iPhone photos, if you need to
HEIC photos from iPhones sort correctly once renamed, but some Windows apps and websites still won’t open them. Convert them to JPG after renaming, and the names carry over.
Convert HEIC to JPG
Worth knowing
- On Windows, File Explorer can sort a folder by date taken without renaming anything: switch to Details view, right-click a column header, add Date taken, and sort by it. The order is lost again as soon as the photos are copied somewhere that sorts by name.
- The Mac’s Finder has no date-taken column, and the Photos app on iPhone and Mac sorts its own library by capture date but not your folders. Renaming works everywhere.
Questions
Why are my photos in the wrong order?
Because they’re being sorted by name or by file date. Different devices number photos differently, and the file date changes whenever a photo is copied or downloaded. Only the capture date stored inside the photo is reliable.
What if a photo has the wrong date?
The date is whatever the camera’s clock said, so a camera with its clock set wrong names its photos wrong too. The rename report shows every date, so a batch that’s off by an hour — or a year — is easy to spot.
Will renaming affect my photo library?
No. You get renamed copies; the originals and any photo library they’re in are left as they are.