Naming photos

Your camera is great, but you shouldn’t let it decide what to call your photos. 

People often send me photographs, either as email attachments or through a site like WeTransfer. To use them in Wikipedia I need to know the photographer, copyright holder (often not the same person), date, and thing or event depicted. Too often though that information’s hidden deep in the metadata, or worn away by repeated handling, and the photo’s named something unhelpful like “DSC5553”.

We’re going to try to give this random assortment of files sensible names.

This blog post won’t help you organise your photos by date, topic, project, or location – you should be using photo management software or digital asset management tools for this already. I just want to help you come up with a meaningful filename. You’ll always have to share photos with media, collaborators, or future-you, so work out a schema for naming those files and put it on a Post It near your computer. Here are some tips to help you develop one.


Some letters are illegal in filenames. Backslash (\), forward slash (/), colon, comma, square brackets, asterisk, question mark, double quote (“), greater and less than (< >) and the pipe (|) are all going to cause problems.

Try to use separators rather than blank spaces; spaces in filenames used to be troublesome for computers, and still sometimes cause problems. Underscores (_) or hyphens (-) are easy separators; underscores are invisible when the text is underlined or part of a link, so they aren’t as good as a hyphen. I often use bullets • (option-8 on a Mac, Alt 0149 on Windows) and middle dots · (option-shift-9 on a Mac, Alt 0183 on Windows) as my separators.

Project code. When I was working as a graphic designer, every project in the company had a unique four letter code, and these four letters were used on every document, photo, spreadsheet, and graphic in that project. You could also use this when assembling photos for an ad or blog post. Put the project code first, because you usually want to sort by project name.

Project codes here are WCSO for West Coast Stories Online and WDL for Westland District Library. The number 242780 is a collection ID number.

Date. If you’re not dealing with several projects at once, just keep photos in a project folder and begin the name with the date in YYYY-MM-DD. You might think you don’t need to add a date to the filename, and can just sort photos by their metadata, but date information can get stripped away or changed through repeated sharing, duplicating, and tweaking. And of course metadata for scanned photos will have the date the scan was made, not the date the photo was actually taken. When using YYYY-MM-DD you’ll need to add zeroes to the day or month to pad out the places. If you don’t know the month or date a photo was taken, use xx.

This effort is worth it, because you’ll be able to sort all the photos within a project by date just by alphabetising the filename.

Three of the filenames now have year-month-day dates applied.

Description. What’s depicted, in the fewest words? People’s names should be written lastname firstname to help with sorting (and remember you can’t use commas in filenames).

Just assume the photo is going to be emailed from a random stranger to another random stranger at some point in the future with no explanation or context, and name accordingly.

Your name, or your company name, or the initials of whoever took the photo, just as a return-to-sender tag. This is not necessarily the same as whoever owns the copyright on the photograph, so clearly note the copyright holder, with a copyright symbol © (option-g on a Mac, Alt 0169 on Windows), especially if they’re not you or the photographer.

Lynn Adams is the photographer, but DOC as her employer owns the copyright.

If the image is available under a Creative Commons licence, you may want to include that as well. These licences can be encoded quite concisely: “Creative Commons Attribution Share-Alike 4.0” is usually represented as CC BY-SA 4.0, and you could use CCBYSA4.

Numbering. If you have a batch of photos of exactly the same thing in the same time and place, with the same author and licence, distinguish them with a number at the end. Start with 001, padding out the empty places with zeroes.

Edited versions of a photo should always be named – never change the original photo, always back up the originals, save a copy first, or use “Save As…” while you’re editing, and add something to the filename. V2, v3, cropped, web are good suffixes. You can use “Original” as the suffix to make sure you don’t change it. Using “Final” for the final version is not helpful, as it never turns out to be the final version. If you’re just resizing the photo, add pixel dimensions to the end (yes, they’re visible in the file information, but not when you’re skimming a list of email attachments).

All that makes for a loooooong filename. But don’t worry too much about filename length: it can be 255 characters – more than an entire tweet. Most operating systems display filenames with ellipses in the middle; this schema puts the most critical information (like project, date, number, and version) at either end. Some systems have limits to the total path length (the list of all directories and subdirectories the file’s inside, plus filename): for OneDrive that’s only 400 characters, and before Windows 10 it was just 260, but even if you use 100-character filenames you’ve got some breathing room.

None of the filenames we created were even 100 characters long.

A sensible filename schema is part of being a good digital archivist – and if you’ve ever taken a photo on your camera you want to keep, congratulations: you too are a digital archivist. Name your files accordingly. For more tips on all the other aspects of looking after digital collections, see the National Library of New Zealand’s Caring for Taonga guide.