Guide

A Mac app that sorts photos into folders by the date they were taken

Archyv turns one enormous folder into a dated structure built from each photo's capture date — previewed first, with the undated ones set aside rather than misfiled.

Watch: File Transfer filing photos into a new folder structure — 43 seconds, no sound.

Most large photo folders were never designed — they accumulated. A card dumped here, a download there, an old drive merged in one afternoon, and eventually a single directory holding fifteen thousand files that no one wants to open.

Archyv is the Mac app for exactly this reorganisation. It reads the capture date inside each file and files a whole backlog into year, month or day folders in one run — as a copy or a move, previewed in the log before anything happens, with anything undated set aside rather than misfiled. Below: what “by date” should mean, how a transfer template does the sorting, the copy-or-move decision, what happens to undated photos, how to check a run before and after — and, at the end, what Finder, Photos, Automator and Hazel each get you if you would rather try them first.

What “by date” should mean

There is more than one date attached to every photo, and they disagree more often than you would expect.

The capture date is the one your camera wrote inside the file when the shutter fired. It never changes, no matter how many times the file is copied. The file dates — created and modified — describe this copy of this file on this disk, and they are rewritten by ordinary things: copying, syncing, a tool touching the file to write metadata.

Sort by file date and a folder called 2019/07 will fill up with photos taken in 2014 that happened to be copied in July 2019. It looks organised, and it is wrong in a way you may not notice for years. Everything below is about sorting by the capture date instead.

Sorting a folder by date with a transfer template

In Archyv the sorting is done by File Transfer, driven by a template that holds every decision about the transfer in one place. One of the four built-in templates, Organized by Date, does exactly this job with no configuration.

You select the files, pick a destination, choose the template, and run it. Archyv reads each file’s metadata and files it into a dated folder structure underneath the destination.

Date is not the only axis available. A template’s folder mode can Organize by Metadata on date, photographer, camera, location, rating, or keyword — so “by year, then by photographer” is the same mechanism, not a different feature. If the built-ins do not match how you work, you save your own on the Transfer Templates tab and it becomes a single choice on every future run.

The other two folder modes are worth knowing, because picking the wrong one is the easiest mistake here. Flatten puts everything in one directory. Preserve Structure mirrors the source hierarchy at the destination — the right answer when the existing folders already mean something and you are only relocating them.

Copy or move — decide before you run

Every template is either a Copy or a Move, and this is the single most consequential setting on this page.

Copy leaves the originals exactly where they are and builds the new structure alongside. Move relocates them, so the source is emptied as it goes — which is what you want when you are clearing a card or freeing a drive, and emphatically not what you want when you are experimenting.

The built-ins are named for their intent: Quick Copy and Full Archive copy; Photo Import and Organized by Date are import-shaped. Check the mode on the template before you press Start. If you are unsure at all, use a Copy template — you can delete a duplicate structure afterwards in seconds, and you cannot as easily reconstruct a source folder you have just emptied.

Photos with no usable date

Every real archive has files with no capture date: scans, exports that lost their metadata, files from a camera whose clock was never set.

Older versions of Archyv fell back to the file’s modification date for those — which is precisely the failure described at the top of this guide, quietly filing an undated photo under whatever month the file was last touched. That was changed in Archyv 1.3.4: files with no usable date are now put in a clearly-named Unknown Date folder instead.

That is a small thing that matters a lot for an archive. A folder called Unknown Date holding forty files is a to-do item. Forty photos scattered into the wrong months are a corruption you will never find.

Building the structure first, if you want a specific one

Sometimes the shape of the destination matters more than the dates — a project layout you use every time, with the same named folders inside each one.

Folder Generation builds that structure ahead of the files: you set how many levels deep it goes and name each level, and the names you give the lower levels repeat inside every parent. It can also read the names from the first column of a CSV, which turns a spreadsheet of clients, sites or photographers into a folder apiece. Then File Transfer moves the files into the structure you have already built.

Two limits to know: an existing top-level folder of the same name is never overwritten, and the total path is capped at 260 characters, so deep hierarchies with long names will complain.

Check it before, verify it after

Two things worth doing on a run this size.

Preview it. Turning on Simulation Mode in General Settings performs the whole run without changing anything and writes every intended move to the log. On a fifteen-thousand-file reorganisation, reading that log first is a few minutes well spent.

Verify it, if it is an archive. A template’s verification level controls how hard Archyv checks that what arrived matches what left — up to a SHA256 checksum of every file. It is slower, and for a working transfer you would leave it off. For the copy that becomes your archive of record, it is the difference between believing the files arrived intact and knowing it.

Two details make the run itself safer: file metadata is preserved through a move or copy, and each file is transferred whole, so an interrupted run leaves no half-written files behind.

Where Finder, Photos, Automator and Hazel stop

If you would rather try the tools you already have first, here is what each one covers.

Finder sorts, filters and groups by date beautifully, but it will not move files into dated folders for you, and the dates it knows are the file’s own. Apple Photos organises brilliantly by capture date — inside its library. The Moments and Years views are a database, not a folder structure; your Finder folders are unchanged, so if the archive lives on a drive rather than inside Photos, Photos cannot build it. This is the gap that sends people to Apple’s support forums, where the threads tend to end without a real answer.

Automator can move files, driven from a Shortcut or a folder action, but turning each file’s capture date into a folder name means scripting it — usually a shell step calling ExifTool. It works, and it is a program you now maintain, with no preview and no undo. Hazel is the serious answer in this category: a well-made Mac app that watches folders and files things by rules, capture date included. If you want an unattended rule that files photos forever as they arrive, Hazel is genuinely the right tool and this guide will not pretend otherwise. The difference is the shape of the job: Hazel is built for a standing rule that runs continuously, while sorting an existing fifteen-thousand-file backlog once, seeing exactly what is about to happen, and being able to undo it, is the job Archyv is built for.


Next: the File Transfer reference covers every template setting in full, and Transfer Templates walks through building your own. If the filenames need fixing too, rename them from the capture date before you sort — the names and the folders will then agree.

Questions people ask

Can Finder sort photos into folders by the date they were taken?

No. Finder can sort and group a folder by date, but it will not move files into dated folders for you, and the dates it knows are the file's own created and modified dates, not the capture date stored inside the photo.

Which date does Archyv use to build the folders?

The capture date the camera wrote inside the file. A file with no usable capture date goes into a folder named Unknown Date rather than being filed under whatever month the file was last touched.

Can I sort by year only, or by year and then month?

Yes. A transfer template's Organization setting offers year, month or day, so year-only and year-then-month are both a template choice. The built-in Organized by Date template covers the common case with no setup.

Does it work with RAW files?

Yes. The capture date is read from the RAW file's own metadata exactly as it is from a JPEG. Anything without a readable capture date lands in the Unknown Date folder rather than in the wrong month.

Will sorting change or damage my original files?

With a Copy template the originals are not touched at all; the dated structure is built alongside them. With a Move template the files are relocated, each one whole and with its file metadata preserved, and Simulation Mode lets you read every intended move in the log before anything happens.

Can the dated folders go on an external drive?

Yes. The destination is any folder you can write to, an external drive included. The one exception is cloud placeholders that have not been downloaded yet: make those files local first, then run the transfer.