How to organize photos into year and month folders on Windows
Turn a folder of thousands of unsorted photos into a clean Year → Month structure on Windows. What the built-in tools do, why file dates lie, and how to automate it properly.
A phone backup, a camera card, and a decade of screenshots all end up the same way: one enormous folder with names like IMG_20240817_143022.jpg and no structure at all.
The structure almost everyone eventually wants is the same:
Photos/
2024/
01 January/
02 February/
2025/
03 March/
It sorts correctly, it is obvious to navigate, and it survives being copied to any other machine or drive. Here is how to get there on Windows, and the one trap that ruins it.
Two different dates, and why it matters
| Date | Where it comes from | Trustworthy? |
|---|---|---|
| Date taken (EXIF) | Written by the camera into the file itself | Yes, when present |
| Date modified | The file system | No — changes on copy, edit, sync |
| Date created | The file system | No — often newer than modified |
EXIF "Date taken" travels inside the image, so it survives copying. That is the one you want — when it exists.
It does not always exist. Screenshots have no EXIF. Images saved from a browser usually have none. WhatsApp and many messengers strip it deliberately. For those, the file date is genuinely all there is.
What Windows can do on its own
Photos app — an album, not a folder structure
The Windows Photos app groups your library by date beautifully. It also changes nothing on disk. Your files stay exactly where they are, and the moment you look at the folder outside the app you are back to the same mess.
That is fine if you only ever browse through Photos. It is useless if you want a structure you can back up, hand to someone, or open on another machine.
Group by in File Explorer
Sort → Group by → Date does the same thing at the folder level: a visual grouping that moves nothing and resets when you open the folder somewhere else.
Import from a camera
Plugging in a camera or phone and using Windows' import dialog does create dated folders. It works, and if you are pulling photos off a device it is a perfectly good option.
It does nothing for the twelve thousand files already sitting on your drive, which is the actual problem for most people.
Doing it properly
Work on a copy, at least the first time
Bulk file moves are reversible in theory and stressful in practice. Copy the folder first, run your sort on the copy, and delete the original once you are happy. This costs disk space for an afternoon and removes all the risk.
Decide the depth before you start
2024/03 March/is the sweet spot. Year alone gives you folders with two thousand photos in them. Year/Month/Day gives you hundreds of near-empty folders you have to click through. Two levels is almost always right.Number your months
03 March, notMarch. Without the number, alphabetical sorting gives you April, August, December, February — which is maddening every single time you open the folder.Sort, then check a sample
Before deleting the original copy, open three or four month folders and confirm the contents look like that month. This is where you catch a date field that was not what you assumed.
What to do with the undated files
There will be a pile with no reliable date at all — screenshots, saved images, things from messengers.
Do not fight them. Give them one folder called Undated and move on. Trying to reconstruct dates for a few hundred screenshots is hours of work for something you will never search by date anyway.
Automating it
Once the backlog is done, the same structure should apply to everything that arrives afterwards — otherwise you are back here in a year.
That means a watched folder: new images land, get read, and go to the right year and month without you doing anything.
Related reading
- How to organize your Downloads folder and keep it that way — the same approach applied to the folder that fills fastest
- Saving downloads to different folders by file type — why browsers cannot route by type, and what can
Part of a wider system for organizing files on Windows.