Batch renaming

{{multiple issues|{{original research|date=April 2016}}

{{more citations needed|date=June 2013}}}}

Batch renaming is a form of batch processing used to rename multiple computer files and folders in an automated fashion, in order to save time and reduce the amount of work involved. Some sort of software is required to do this. Such software can be more or less advanced, but most have the same basic functions.

Batch renaming can also be referred to as 'mass file renaming', rename 'en masse' and 'bulk renaming'.

Common functions

Most batch renamers share a basic set of functions to manipulate the filenames:

  • Find a string within the filename and replace it with another, or remove it.
  • Setting the capitalization of the letters in the filenames.
  • Extracting information from the files, such as Mp3 ID3 tags, and putting it in the filename.
  • Add a number sequence (001,002,003,...) to a list of files.
  • Use a text file as a source for new file names.

Some batch rename software can do more than just renaming filenames. Features include changing the dates of files and changing the file attributes (such as the write protected attribute).

Common uses

There are many situations where batch renaming software can be useful. Here is a list of some common uses:

  • Many digital cameras store images using a base filename, such as DCSN0001 or IMG0001. Using a batch renamer the photographer can easily give the pictures meaningful names.
  • When downloading files from the Internet such as mp3 music, the files often have crude names. A batch renamer can be used to quickly change the filenames to a style that suits the person who downloaded them.
  • When managing large amount of files, such as a picture database, a batch renamer is more or less essential for the task of maintaining filenames without too much manual labour.
  • When authoring music files onto a CD/DVD or transferring the files to a digital audio player, a batch renamer can be used to listen to songs in desired order.
  • When uploading files to a web server or transferring the files to an environment that does not support space or non-English characters in filenames, a batch renamer can be used to substitute such characters with acceptable ones.

Problems

There are a few problems to take in consideration when renaming a file list.

(→ means: renamed to)

  • Detecting that the target filename already exist.

file01 → file02 (file02 already exists in file-system)

  • Detecting that the target filename is already used.

file01 → file03

file02 → file03 (file03 is already used)

  • Detecting cycle renaming (Solved by a two-pass renaming).

file01file02 (file02 already exists in file-system)

file02file03 (file03 already exists in file-system)

file03file01 (file01 already exists in file-system)

Two-pass renaming

Two-pass renaming uses a temporary filename (that doesn't exist in file-system) as shown below.

(→ means: renamed to)

  • First pass

file01 → file01_AAAAA

file02 → file02_AAAAB

file03 → file03_AAAAC

  • Second pass

file01_AAAAA → file02

file02_AAAAB → file03

file03_AAAAC → file01

It solves the cycle renaming problem.

If this approach is to be used care should be taken not to exceed any filename length limits during the rename, and also that the temporary names do not clash with any existing files.

List of software

This is a list of notable batch renaming programs in the form of a comparison table.

class="wikitable sortable" style="text-align: center; width: auto;"
style="text-align:left;" | Name

! License

! Windows

! Mac OS X

! Linux

! BSD/FreeBSD

! Unix-like

style="text-align:left;" | Advanced Renamer

| Free for non-commercial use

| {{Yes}}

| {{No}}

| {{No}}

| {{No}}

| {{No}}

style="text-align:left;" | Ant Renamer{{cite web|url=http://antp.be/software/renamer/|title=Ant Renamer|website=antp.be}}

|Free GNU General Public License v3

| {{Yes}}

| {{No}}

| {{No}}

| {{No}}

| {{No}}

style="text-align:left;" | Aperture

| Commercial

| {{No}}

| {{Yes}}

| {{No}}

| {{No}}

| {{No}}

style="text-align:left;" | Automator

| Free with OS X

| {{No}}

| {{Yes}}

| {{No}}

| {{No}}

| {{No}}

style="text-align:left;" | File Rename Utility{{cite web|url=http://www.filerenameutility.co.uk/|title=Introduction – File Rename Utility|website=www.filerenameutility.co.uk|access-date=2018-09-01|archive-date=2020-08-03|archive-url=https://web.archive.org/web/20200803115314/http://filerenameutility.co.uk/|url-status=dead}}

| Free

| {{Yes}}

| {{No}}

| {{No}}

| {{No}}

| {{No}}

style="text-align:left;" | Bulk Rename Utility{{cite web|url=http://www.bulkrenameutility.co.uk/|title=Introduction – Bulk Rename Utility|website=www.bulkrenameutility.co.uk}}

| Free for non-commercial use

| {{Yes}}

| {{No}}

| {{No}}

| {{No}}

| {{No}}

style="text-align:left;" | Bulky{{cite web|url=https://github.com/tplecko/bulky|title=Introduction – Bulky|website=www.github.com|date=15 May 2021}}

| AGPL3

| {{Yes}}

| {{Yes}}

| {{Yes}}

| {{Yes}}

| {{Yes}}

style="text-align:left;" | Chrono Namer{{Cite web |title=Chrono Namer |url=https://chrononamer.com/overview.php |access-date=2024-04-17 |website=chrononamer.com}}

| Free

| {{Yes}}

| {{No}}

| {{No}}

| {{No}}

| {{No}}

style="text-align:left;" | CRAX Commander{{cite web|url=http://crax.soft4u2.com/|title=CRAX Commander|website=crax.soft4u2.com}}

| Commercial

| {{No}}

| {{Yes}}

| {{No}}

| {{No}}

| {{No}}

style="text-align:left;" | Easy File Renamer{{Cite web |title=Easy File Renamer Official. Easiest File Renamer, Mover & Copier. |url=https://easyfilerenamer.com/ |access-date=2024-12-17 |website=easyfilerenamer.com}}

| Commercial

| {{Yes}}

| {{No}}

| {{No}}

| {{No}}

| {{No}}

style="text-align:left;" | ExifRenamer{{cite web|url=http://www.qdev.de/?location=mac/exifrenamer/|title=qdev.de – ExifRenamer|first=Stefan|last=Robl|website=www.qdev.de}}

| Free

| {{No}}

| {{Yes}}

| {{No}}

| {{No}}

| {{No}}

style="text-align:left;" | GNOME Commander

| Free, GNU General Public License

| {{Yes}}
(via Cygwin)

| {{No}}

| {{Yes}}

| {{Yes}}

| {{Yes}}

style="text-align:left;" | GPRename

| Free, GNU General Public License v3

| {{No}}

| {{No}}

| {{Yes}}

| {{Yes}}

| {{Yes}}

style="text-align:left;" | KRename

| Free, GNU General Public License v2

| {{No}}

| {{No}}

| {{Yes}}

| {{Yes}}

| {{Yes}}

style="text-align:left;" | Métamorphose

| Free, GNU General Public License v3

| {{Yes}}

| {{Yes}}

| {{Yes}}

| {{Yes}}

| {{Yes}}

style="text-align:left;" | AlgoLogic Batch File Renamer

| Commercial

| {{Yes}}

| {{No}}

| {{No}}

| {{No}}

| {{No}}

style="text-align:left;" | ImBatch{{cite web|url=http://www.highmotionsoftware.com/products/imbatch|title=ImBatch – The Best in Batch Image Processing – High Motion Software|website=www.highmotionsoftware.com}}

| Free for non-commercial use

| {{Yes}}

| {{No}}

| {{No}}

| {{No}}

| {{No}}

style="text-align:left;" | ReNamer Lite(den4b)

| Free for non-commercial use

| {{Yes}}

| {{No}}

| {{No}}

| {{No}}

| {{No}}

style="text-align:left;" | Thunar (bulk renamer){{cite web|url=http://docs.xfce.org/xfce/thunar/bulk-renamer/start|title=xfce:thunar:bulk-renamer:start [Xfce Docs]|website=docs.xfce.org}}

| Free, GNU General Public License v2+

| {{No}}

| {{No}}

| {{Yes}}

| {{Yes}}

| {{Yes}}

style="text-align:left;" | Unreal Commander

| Free

| {{Yes}}

| {{No}}

| {{No}}

| {{No}}

| {{No}}

style="text-align:left;" | Vi move (vimv){{cite web|url=https://github.com/ivanmaeder/vimv|title=vimv: Rename a list of files using a text editor|first=Ivan|last=Maeder|date=26 April 2017|publisher=|via=GitHub}}

| Free, GNU General Public License v3+

| {{Yes}}
(via Cygwin)

| {{Yes}}

| {{Yes}}

| {{Yes}}

| {{Yes}}

style="text-align:left;" | Vifm{{Cite web |title=Vifm Wiki |url=https://wiki.vifm.info/index.php/Main_Page |access-date=2024-04-17 |website=wiki.vifm.info}}

| Free, GNU General Public License v2+

| {{Yes}}

| {{Yes}}

| {{Yes}}

| {{Yes}}

| {{Yes}}

style="text-align:left;" | Namagic{{cite web|url=http://www.namagicapp.com|title=Namagic – Batch renaming reloaded for Mac OS X|website=www.namagicapp.com}}

| Commercial

| {{No}}

| {{Yes}}

| {{No}}

| {{No}}

| {{No}}

style="text-align:left;" | Quick File Rename{{cite web|url=https://www.skyjuicesoftware.com|title=Quick File Rename – Powerful Batch Renamer for Windows|website=www.skyjuicesoftware.com}}

| Commercial

| {{Yes}}

| {{No}}

| {{No}}

| {{No}}

| {{No}}

style="text-align:left;" | rename{{cite web|url=https://linux.die.net/man/1/rename|title=rename(1): Rename files – Linux man page|website=linux.die.net}}

| Free, GPL

| {{No}}

| {{Yes}}

| {{Yes}}

| {{--}}

| {{Yes}}

style="text-align:left;" | rnm{{cite web|url=https://github.com/neurobin/rnm|title=rnm: Unix tool: Bulk Rename Utility|first=Md Jahidul|last=Hamid|date=15 June 2017|publisher=|via=GitHub}}

| Free, GPL-3+

| {{No}}

| {{Yes}}

| {{Yes}}

| {{--}}

| {{Yes}}

See also

Footnotes