Skip to content

Name Templates

Zac Walker edited this page Nov 26, 2026 · 1 revision

Rename names files from a template, and Import builds the folders it copies into from one. A template is ordinary text with tokens in braces, which each file fills in from its own metadata. A file with no value for a token gets Unknown in its place. Tokens are not case-sensitive.

The website shows Rename and Import at work.

Rename

Template IMG_0042.JPG, taken 14 August 2023, becomes
photo-### photo-001.JPG
{created} Holiday ### 2023-08-14 Holiday 001.JPG
{year}-{month}-### 2023-08-001.JPG
travel-{country}-### travel-Italy-001.JPG
Holiday ???? Holiday 0042.JPG
  • # is a digit of the sequence number. Start at sets the first number, and the number is padded with zeros to the width the #s give: ### writes 001, and 1000 once it needs four digits.
  • ? copies a character of the file's current name, counted from its end: ???? keeps the last four characters of IMG_0042.
  • The extension is kept. Sidecars are renamed with their file.

Review shows every new name before anything changes, flags any that is not a valid file name, and states how each collision will be handled by the policy you choose.

Import folder structure

Import copies or moves each file into a folder under the destination, built from the template, with \ between folder levels. Files keep their own names; one that would collide is handled by the collision policy you choose.

Template A photo from 14 August 2023 whose metadata names Rome, Italy, goes to
{year}\{created} (the default) 2023\2023-08-14
{year}\{country} 2023\Italy
{year}\{month.text} 2023\August
{artist}\{album} For music: Artist\Album
{show}\Season {season} For TV: Show\Season 01

Tokens

Token Gives
{name}, {file}, {filename} The file's current name: without its extension in Rename, with it in Import
{created} When it was taken, as yyyy-mm-dd: its Original date, else Created, else Modified, else when the file was created
{year}, {month}, {day} Parts of that date: 2023, 08, 14. {year} prefers a year the file states, such as an album's or a film's
{month.text}, {month.short} The month's name, August or Aug, in the language Diffractor is shown in
{title}, {description}, {comment} Text the file holds
{rating}, {label} The stars given, and the label
{tags} The tags, separated by commas
{place}, {state}, {country} Where it was taken, as the file's metadata names it. A photo with GPS coordinates alone has no place text, so gets Unknown; Locate writes coordinates only
{camera}, {camera.manufacturer}, {lens} What took it
{artist}, {album}, {genre}, {composer}, {performer}, {publisher} Music. {artist} is the album's artist where there is one
{show}, {season}, {episode} Series; season and episode in two digits, 01
{album.artist}, {synopsis}, {encoder} Other text a recording holds
{bitrate}, {audio.codec}, {video.codec}, {pixel.format}, {color.profile} How a recording or picture is coded
{raw.file} The raw file a developed photo was made from
{copyright.creator}, {copyright.credit}, {copyright.notice}, {copyright.source}, {copyright.url} Rights and credits

Clone this wiki locally