Tips for File Renaming Success in Lightroom

0Comments

This article is about how to build a useable file renaming strategy, and how to implement it in Lightroom. Your standard camera names are generally pretty boring. IMG this or DSC that, or even P0235425653. If you’re not using continuous naming you might even end up with hundreds of IMG_0001 files. Don’t laugh, I was there once upon a time after reading some terrible advice on camera settings.

If you’re using Lightroom, renaming is really straightforward and accessible from quite a few places in the application.

File naming in lightroom 1

Before we talk about how to rename your files, let’s talk about what you should name them. First and foremost, each photo should have a unique name. There are two number sets that can pretty much ensure this. The first is the date the photo was taken, and the second is the sequence number the camera creates (assuming you do use a continuous camera naming system). Mixed together these give each file a unique name. You’d need to shoot 10,000 images in a day to get two identical names with this structure. You could just use this method and nothing else, but a series of numbers, while great for sorting, is generally meaningless to most people.

File naming in lightroom 2Some photographers use those number sets and their initials to get the filename. It’s enough to create that unique pattern. A string of numbers doesn’t tell you what’s in the file though, even with some initials. For this reason, I use a custom text field that I change with each shoot that I import. In Custom Text field I put a little description of the shoot. That way even outside Lightroom I can tell the contents of the file just from the name. It also gives me additional search terms I can use when looking for a file. Let’s look at how to set this up.

File naming template in Import

Renaming in Lightroom uses a mix of tokens and direct text in the box. The Dialog for creating File Naming Templates can be called up from a variety of places in Lightroom. The first place you see it is in the Import Dialog box when using one of the following settings: Move, Copy or Copy as DNG. It’s on the right hand side in the appropriately named File Renaming panel. As well as the type of File Naming, you can choose Custom Text/Shoot Name, a Start Number, and whether the file extension is upper or lower case.

File naming in lightroom 3

File naming in Lightroom depends on Templates, so click on the Template list and choose Edit from the bottom of the list (shown above). This opens the Filename Template Editor (below). At the top we see the current Template, or in a typically Lightroom fashion, it’s called a Preset here, versus being called a Template in Import. The contents of this list matches the one you saw in Import from the Template dropdown. Note that the Filename Template Editor is not exactly the same in each location you can use it in Lightroom. You’d think it would be, but nope, it’s not.

File naming in lightroom 4

Note this is the box you will see in the Import dialog popup. If you access rename files from the Library module it looks slightly different.

Next is the text box where the template is built. Any item you click from the list below will be added to the box, in the order you click them. You can also type directly into the box. Remember that text typed directly into the box will be added to all filenames, so use it sparingly (above there is only a hyphen added between tokens Custom Text and Sequence # to separate them).

File naming in lightroom 5

Below this are the tokens, split into sections of similar information. Image name has two options, Filename and Filename number suffix. The latter refers to the string of numbers at the end of the current filename (not necessarily the original file numbers). Note: When you use Edit in the Library version of renaming, you also get Folder Name as an option.

File naming in lightroom 6

Numbering has far more options. In each case you can choose an option with leading zeros. It’s good practice to include enough of these so your sorting looks okay. For example, Image1 is followed by Image10, then Image2 if you have no leading zero in the file name. For most things three leading zeros is enough.

File naming in lightroom 7

Import refers to the number of imports and can be set in the Catalog Settings dialog (under the Edit menu on PC, Lightroom menu on Mac), as can Image. Image itself refers to the number of images imported into Lightroom. Sequence creates a new sequence each time, with the start number set in the renaming panel (except on Export). Total refers to the number of images that are being imported at that time.

File naming in lightroom 8Next is the Additional Section. For the Date, you can opt for any combination of year, month, day, hour, minute or second. Personally I go for the YYYYMMDD version, though you could choose Year YY, Month MM and Date DD as as shorter year set. Using this at the start of the name puts all the photos in a dated chronological order when when sorting by name.

File naming in lightroom 9

The 2nd part of Additional is a metadata list (above). It contains things like the camera serial number and file dimensions.

Custom lets you add text that can change between imports. Shoot Name is available only in the Import menu. Shoot related naming is not available using Auto Import.

File naming in lightroom 10

When you’ve entered the tokens you can either click Done, to have the settings apply as Custom Settings or you can go back to the Presets menu, where you now have additional options. If you started off by editing an existing Preset (e.g. Filename) you can Save you settings as a new Preset, Update the Current Preset, or restore the default presets.

File naming in lightroom 11

If you select a Preset and don’t edit it, you get the options to Delete or Rename the preset (below) instead of the Update option. That covers the mechanics of creating a File Naming Template.

File naming in lightroom 12

My method:

My preferred renaming method is: {YYYYMMDD}_{Custom Text}_{Original Filename Suffix}. The items in {} are the tokens from the Date, Custom Text and Filename menus (see right). The underscores are written directly into the textbook between the tokens. You may prefer to use a dash instead. I use underscores, because the Web module changes dashes into underscores.

File naming in lightroom 13

This keeps files in order by set based on the Date and Custom text, the Suffix then keeps the sequence. You can use any naming system you like, of course. The important thing is that you use the same naming consistently. When I first started using this kind of renaming system, I had the Custom Text first, but it turned out to be a pain for sorting. Generally when I look through a shoot now, I visually ignore the date part of the name and look at the custom text if I’m just browsing. I don’t need to see it generally, but it helps the sort.

File naming in lightroom 15

This is how my file naming looks

Renaming inside the Library Module

As well as renaming on Import, you can batch rename inside Library by pressing the F2 key. This brings up a really basic dialog where you can select or edit a preset, change the Custom Text, or the Start Number if you’ve chosen a sequence. When you select Edit from the Preset list, the Filename Template Editor has a slightly different set of options to that of the editor inside of Import.

File naming in lightroom 14

We’ve looked at Image Name. The other main differences are the Sequence menu now has Date as well and the Additional section is now called Metadata with a 2nd set of Metadata, in this case IPTC metadata. Other than that, it works identically to in Import.

File naming in lightroom 16

Renaming on Export

You can also rename when Exporting. In the Export Dialog, File Naming is usually the second option. It’s similar to the other instances where you can select or edit a file naming preset, add Custom Text or choose a Start Number. In this case the Filename Template Editor is the same as the one available in the Library module.

File naming in lightroom 17

So that’s a look at how to choose a suitable naming system in Lightroom, and how to create a filename template to match it. How do you do your file names? What structure do you find works best for sorting and finding images later? Please share your thoughts in the comments below.

Read more from our Post Production category

Sean McCormack is a Fuji X Photographer and author based in the Galway in the west of Ireland. Even with 15 years of shooting under his belt, he still manages to have fun with photography. He shoots people, places and products.

  • Eric Ressner

    Not a pro photographer here, but frequent traveler. My wife and I both like taking photos and we are of course frequently framing the same sights at the same time. I like to import both sets of photos into the same folder so I can review and delete the extraneous (inferior) duplicates. So I need a system for two cameras.

    My template is
    yyyymmdd{a|p}hhmmnnnnn

    Leading off with the date just like Sean’s system. Then “a” or “p” for AM or PM, then the time, hours/minutes*, and finally the sequence number [nnnn(n)] from the camera’s filename. It just so happens that my wife’s camera uses a four-digit number and mine a five, so it’s easy to tell who shot what, and it’s an absolute guarantee against duplicate filenames. But it’s really not an essential feature. The likelihood that we’d both be on the same sequence number in the same minutes is infinitessimal enough that I’m comfortable with it.

    *In order to keep sequencing absolutely chronological, one last step is necessary. Whenever the hour is 12, have to change it to 00. Or use a 24-hour clock, 0000-2359. Oh, also — be sure the cameras’ internal clocks are synchronized at the beginning of the trip.

  • Hi Eric, just curious – why do you add the time into the file name? You can sort by “capture time” in LR and sort that way – then name them accordingly. You can also shift the time if you forget to adjust for travelling across time zones, or if your cameras are not synced (you can select all of hers for example and shift by one or two minutes to match yours).

  • Eric Ressner

    Sorry, Darlene, forgot to mention: not a Lightroom user — Corel PaintShop Pro X7. Time-shifting does sound like a useful feature because I usually remember to sync the camera clocks only after the first day of a trip 🙁 I use a utility called Total Commander to do my renaming for me, as the gallery management software doesn’t have the features I need.

    After all my editing/deleting/resaving, I typically will pick out the best and make a slideshow for family and friends, and for those to show (on a smart TV) in chronological order, the filenames need to follow that same order. Thus, the need for date AND time.

  • Well yes and no. I’m not sure about PPP but in LR you can sort by capture time, and make a slideshow right from there. But if you number more like this, based on being first sorted in order they were shot – they will go in order anywhere.

    Morocco-0001.jpg
    Morocco-0002.jpg

    Etc. By adding the leading zeros in front any program will sort in order of 1 and up and you’ve already sorted by capture time and numbered accordingly so shouldn’t be an issue.

  • Alastair Robertson

    Interesting article. I use a similar naming convention, [reverse date]_[sequential image number].extension. I use a single Powershell command to batch rename all the files at once. So at the end of the day I copy all the image files into an empty directory on the computer (both jpg and raw). You can open a Command Window in that directory with and select “Open command window here” from the menu. In the command window type in “Powershell”, to go into the Powershell command environment. Then enter the following command (my Sony cameras precede the filename with “DSC”, and you can see where the date is entered with the underscore):

    dir | rename-item -newname {$_.name -replace “DSC”,”160707_”}

    This replaces “DSC” with the reverse date and maintains the image numbers and file extensions.

    So the file name “DSC00001.ARW” becomes “160707_00001.ARW”.

    Powershell allows you to join commands together, so what this is really doing is listing the contents of the directory and piping that to a rename command. All files in the directory that contain “DSC” will be renamed accordingly.

  • Alex Bach Kristensen

    I use the time in the filename because i don’t think the image no. from the camera is of any use. So I import my Photos to this filename: 20160525-142756.jpg. Should there be more than one Photo from the same second the name would be: 20160525-142756-2.jpg.

  • I see. If it works for you that’s great. Just seems a bit complicated to me.

Join Our Email Newsletter

Thanks for subscribing!


DPS offers a free weekly newsletter with: 
1. new photography tutorials and tips
2. latest photography assignments
3. photo competitions and prizes

Enter your email below to subscribe.
Email:
 
 
Get DAILY free tips, news and reviews via our RSS feed