How to Sort Files into Folders by Date on Mac Automatically
Finder will happily show your files grouped by date. What it won't do is create a folder for each month and move files into it. To sort files into folders by date on a Mac automatically, you need something that watches a folder and acts on new arrivals: a Shortcuts automation, an old-school Folder Action, or an app.
Which one fits comes down to two questions. Do you want date folders on their own, or date folders inside type folders? And how much do you want to build yourself?
Pick the Date First
Every file on a Mac carries several dates, and they don't always agree.
Date Created is when the file came into existence on your disk. For a download, that's usually around the moment it arrived. Date Modified changes whenever the file is edited, and some downloads inherit it from the original, so it can be years old. Date Added is when the file entered its current folder. Finder shows it, but fewer automation tools can read it.
For downloads and screenshots, go with the creation date. Scripts and apps can read it, and it rarely surprises you. Check a couple of files with Get Info (Command-I) before you trust any rule, though.
If You Only Need to See Files by Date
Sometimes you don't need folders at all. Open the folder in Finder, switch to List view, then choose View > Use Groups and View > Group By > Date Added. Finder splits the list into groups like Today, Previous 7 Days and Previous 30 Days, with older files grouped by month.
It moves nothing and takes ten seconds. For "where's that thing I downloaded last week", that's plenty. If that's the whole problem, stop here.
Shortcuts on macOS Tahoe: Real Month Folders, No Code
macOS Tahoe brought personal automations to Shortcuts on the Mac, including a folder trigger that runs a Shortcut when files are added to a folder you pick. That's enough to build month folders:
- Open Shortcuts, go to Automation, click +, and choose the Folder trigger. Pick Downloads (or wherever) and the option for files being added. If there's a setting to ignore subfolders, turn it on, so files you move into month folders don't set the automation off again.
- In the Shortcut, take the added files and get each one's Creation Date.
- Use Format Date with a custom format of
yyyy-MMto turn that into a folder name like2026-12. - Create a folder with that name inside Downloads.
- Move the file into it.
Action names move around a little between releases, so expect to poke at the editor. Test with a few throwaway files before you point it at anything you care about, and run it twice to make sure it reuses the existing month folder instead of making a second one.
Also check that the automation still fires after a restart, and again after the next macOS update. Folder triggers are new, and new things break quietly.
Automator Folder Action: Works on Older macOS Too
Folder Actions have been around for years and still ship. In Automator, create a new Folder Action, set it to receive files added to your folder, add a Run Shell Script action, set "Pass input" to "as arguments", and paste this:
for f in "$@"; do
[ -f "$f" ] || continue
d=$(stat -f "%SB" -t "%Y-%m" "$f")
mkdir -p "$(dirname "$f")/$d"
mv -n "$f" "$(dirname "$f")/$d/"
done
It reads each file's creation date, makes a folder like 2026-12 next to it, and moves the file in. The -f check skips folders, so the month folders it creates don't get processed. mv -n refuses to overwrite a file with the same name. macOS may ask for permission to access Downloads the first time it runs.
The weakness of Folder Actions hasn't changed in a decade: they can stop after an update or a long sleep, and nothing tells you. If you rely on one, glance at the folder every week or two.
Type First, Then Date: Ornix
Pure date folders get awkward after a year. 2026-03 holds a contract, forty screenshots, an installer and a song, and you're back to scanning a long list.
Ornix, our Mac menu bar app, takes the other approach. By default it watches a folder and sorts each new file by type the moment it lands, into Image, Video, Audio, Document, Compressed, Installer and Other. Installer sorting starts off; switch it on under Category filters if you want it. The free version does this for one folder, and setup is picking the folder.
Date folders are a Pro option. In the folder's settings, set Date subfolders to Year or Year-Month, and each type folder gets its own date folders based on the file's creation date. A December screenshot ends up in Image/2026/12, an invoice PDF in Document/2026/12. You find things by what they are, then by when.
The limits, plainly. With date subfolders on, Ornix always puts the type folder first and the date inside it. If you want month folders at the top level with no split by type, build the Shortcut above instead. Ornix also doesn't read what's inside your files: it decides by file type, so the same kind of file always lands in the same place.
Moves are reversible. The history keeps the last 50 moves for 7 days, each with Undo, and Organize Preview shows where everything would go before you run a cleanup on files that are already sitting there. Pro is a one-time $4.99, not a subscription, and also lifts the one-folder limit. Ornix needs macOS Sonoma or later.
Naming Tips That Save You Later
Use numbers, year first. 2026-01 sorts correctly in Finder. January 2026 sorts alphabetically, which puts April first.
Go by year or month, never by day. Daily folders sound tidy and turn into hundreds of folders with two files each.
One level or two? 2026-12 is quicker to scan when you have a year or two of files. Nested 2026/12, which is what Ornix uses, keeps the top level short once several years pile up.
Don't date-sort folders you browse by project. Client work is easier to find by client. Dates suit inbox folders like Downloads, Desktop and wherever your screenshots go.
If you're still deciding between dates, types, projects or something else, the trade-offs are in Mac Folder Structure: 5 File Organization Systems.
Common Questions
Can Finder create date folders automatically?
No. Finder can group and sort by date in a window, but it never creates folders or moves files on its own.
Will this re-sort files I already have?
Shortcuts automations and Folder Actions only react to new files. For an existing pile, paste this version of the loop into Terminal once. It works through the files already sitting at the top of Downloads (subfolders are left alone):
for f in ~/Downloads/*; do
[ -f "$f" ] || continue
d=$(stat -f "%SB" -t "%Y-%m" "$f")
mkdir -p "$(dirname "$f")/$d"
mv -n "$f" "$(dirname "$f")/$d/"
done
Or use a tool with a one-time cleanup. In Ornix that's Organize Now, with Organize Preview first.
What date does a downloaded file get?
Usually a creation date close to when you downloaded it. Unzipped files are the common exception, since they can keep dates from inside the archive, so spot-check those.
Which One to Set Up
Use Finder's grouping if you only need to find recent files. Use the Shortcut or the Folder Action if you want plain month folders and don't mind checking now and then that they still run.
For Downloads, I'd sort by type first and date second. A month folder holding forty unrelated files isn't much better than no folder at all.
