Family Photo Archive Tagger

Turn a folder of IMG_4021 files into a family archive: dates come from the photos themselves, you add who and where, and you get a safe rename script plus an index page.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Choose the folder

    Pick it or open it read only in Chrome or Edge.

  2. 2
    Check the dates

    EXIF, file name, typed or file date per photo.

  3. 3
    Add your people

    Names once, then toggle them with keys 1-9.

  4. 4
    Tag people and places

    One photo or a whole selection at a time.

  5. 5
    Review the plan

    Old and new names side by side, with options.

  6. 6
    Export and run

    Script, undo script, CSV, index page and JSON.

About this tool

Family photos tend to live in folders called "Phone backup 2", "Camera" and "Scans", full of names like IMG_4021 and DSC01234. Nobody can find Gran's 80th or the Lake District trip without scrolling through thousands of thumbnails. The fix that lasts longest is boring and reliable: file names that start with the date, then say where and who, so any computer, cloud drive or future app sorts them correctly. This tagger builds those names for you without touching or uploading a single file. Choose a folder (Chrome and Edge can also open it through the File System Access API, read only) and the tool reads the first part of each JPEG to find the date the photo was taken, the camera model and any GPS position. When a photo has no EXIF date, it looks for a date in the file name, as WhatsApp and most phones write one. When neither exists, it falls back to the file's modified date and marks it clearly, because that is often the day the file was copied or scanned. Then you tag. Add the people in your family once, and toggle them on a photo or on a whole selection with a click or the number keys. Type a place, or pick one you used before. Scanned prints can be given a date by hand from the writing on the back. The rename plan shows every old and new name side by side. You download it as a shell or PowerShell script with a matching undo script, a CSV for a spreadsheet, a standalone index page that groups the photos by year, and a JSON sidecar that keeps the tags with the archive.

How names are built

| Part | Rule | |---|---| | Date | EXIF DateTimeOriginal, else a date in the file name, else the date you type, else the file's modified date; "undated" if none | | Place | the place tag with accents removed and spaces turned into hyphens (Kraków becomes Krakow) | | People | up to three names joined with hyphens, then "and-2-more" for the rest | | Same name twice | _01, _02 and so on in the order the photos were taken | | Extension | kept, in lower case | | Folders | kept as they are, or moved into one folder per year if you tick the option |

The script renames in two passes through temporary names, so a chain such as A to B and B to C can never overwrite a photo, and it uses mv -n, which refuses to replace an existing file.

Worked example

The sample archive has ten photos. Six have EXIF dates, one WhatsApp image takes its date from the name IMG-20210821-WA0003, one scanned print was dated by hand as 1987-06-01, one HEIC photo falls back to its file date and one scan has no date at all. Two shots from 14 July 2019 show Gran and Tom in the Lake District, so they become 2019-07-14_Lake-District_Gran-Tom_01.jpg and _02.jpg in time order. Christmas dinner with five people becomes 2020-12-25_Home_Gran-Grandad-Tom-and-2-more.jpg. The undated scan of Uncle Raj becomes undated_Uncle-Raj.jpg. All ten files change name, the shell script holds 20 move commands (two passes of ten), and Tom is the most photographed person with five photos.

Limits

The built-in EXIF reader handles JPEG files; HEIC, PNG and RAW photos take their date from the file name or file date instead, so check those rows. It does not recognise faces: every person tag is added by hand, which is slower but private. Nothing on your disk changes until you run the script yourself, and you should keep a backup before any bulk rename.

Worked example

Two Lake District shots of Gran and Tom on 14 July 2019 become 2019-07-14_Lake-District_Gran-Tom_01.jpg and _02.jpg.

Quick facts

Frequently asked questions

Are my photos uploaded anywhere?

No. The browser reads the files on your computer and only the first 192 KB of each JPEG are read for the date. Tags and the plan are saved in this browser. The thumbnails disappear after a reload until you pick the folder again; your tags stay.

How do I run the rename script?

Save rename-photos.sh into the folder you picked, open a terminal there and run "sh rename-photos.sh" on macOS or Linux. On Windows use rename-photos.ps1 in PowerShell. Read the script first, keep the undo script, and back up the folder before you start.

Why does a photo show "file" as its date source?

It had no EXIF date and no date in its name, so the tool used the file's modified date. That is often when it was copied, downloaded or scanned rather than when it was taken. Set the right date with the date box before renaming.

Can I tag many photos at once?

Yes. Select photos by clicking them or with Space, or use "Select all shown" with a filter, then toggle a person or set a place. Number keys 1 to 9 toggle the first nine people, which makes a long session much quicker.

What is the JSON sidecar for?

It records every file's new name, original name, date, date source, people, place, camera and GPS. Keep it with the archive so the tags survive even if a photo app strips metadata, and so another program can read them later.

Does it handle thousands of photos?

It reads the folder in batches and shows sixty thumbnails at a time with a button for more. Very large folders are fine for the plan and exports; the limit is mainly how long you want to spend tagging.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages