Rename IrfanView Photos/ Files in Bulk

Manually renaming tens of thousands of photos is indeed a painful and time-consuming task.

Fortunately, third-party application developers have simplified this task by introducing easy to use tools with a well-designed graphical interface. We’re going to explore several methods to bulk rename your IrfanView photos and files.

To automatically rename your photos and files, consider using Easy File Renamer. It comes with 8+ renaming rules, and allows you to bulk copy/move files to your desired location. Download it from this link:

Rename IrfanView Photos Using Easy File Renamer

Easy File Renamer is Verified by Verisign

Using IrfanView

IrfanView, a free image viewing tool for Windows, offers a quick way to mass rename your photos.

  1. Double-click the IrfanView desktop icon.
  2. Click File, select Batch Conversion/Rename. Alternatively, you may use the keyboard shortcut B.

    Click on Batch Conversion/Rename from the File Menu
    Click on Batch Conversion/Rename from the File Menu
  3. You now have a new dialog with several options.
    image02
  4. Browse the directory that contains your images.

    Browsing for the images' directory
    Browsing for the images’ directory
  5. Select the images you wish to bulk rename. Click Add button to list them under the Input Files list box.
    image12
  6. You can add images from many other directories in a similar manner. You can export the files list by using the Save as TXT button.
  7. To remove a particular image added to the list box, select the file name and click Remove. To remove all the images, use the Remove all button.

    Choose between Remove / Remove all
    Choose between Remove / Remove all
  8. Select Batch Rename option under Work as.
    image24
  9. Now click the Options button.

    Click on Options
    Click on Options
  10. Specify a renaming pattern. Click Help to view support information.
    image37
  11. Specify values in the Starting counter and Increment text boxes respectively.

    image19
    Specify the desired values
  12. To replace text within filenames, specify desired values into the appropriate textboxes. IrfanView supports replacing three texts at a time. To replace more text, perform separate renaming operations.
    image11
  13. It is recommended to let IrfanView copy original files to the output directory. If you choose to move original input files to the destination directory (output folder), IrfanView won’t be able to reverse the action and it’ll rather change the original file names.
    image31
  14. Select an action to be taken in case a file already exists. Recommended: No rename.
    image27
  15. Click OK.
  16. In the Output directory for result files box, enter the full path where you want to store renamed files. You may, alternatively, click Browse and locate the desired directory.
    image07
  17. To display a preview, select the Show Preview image checkbox.
    image23
  18. To conduct a test rename operation, click Run test rename. (Optional).
  19. Test results will be displayed in Batch Conversion DoneRun Test Resume dialog box. To return to the previous screen, click Return to Batch. You can also copy the results to the Clipboard by clicking Copy to Clipboard.

    Results are out
    Results are out
  20. To rename all the files, click Start Batch.

 

Using Easy File Renamer

If you think renaming files through IrfanView isn’t easy enough, there’s a quick alternative. Simply install Easy File Renamer, specify the desired folder and renaming pattern, and perform the complex operation in one go. This small, yet powerful handy tool from Sorcim makes it easy to efficiently organize your files and improve organizational productivity.

  1. Download, install and run Easy File Renamer.
  2. Click the Rename tab, and then Files sub-tab.
  3. Select the desired rule from the Rules selection drop-down box. Specify a new name, remove/ replace text, use suffix/ prefix, add numbering, insert characters at desired positions, convert filename cases to UPPER or lower case.
  4. Ensure the Files tab is selected. Now, click Add Files.
  5. Browse the directory that contains the files you desire to rename. Select all files you intend to rename, and then click Open.
    image05
  6. Easy File Renamer lists out the selected files.

    Selected Files being displayed
    Selected Files being displayed
  7. To view the file previews, select Show Preview.
  8. Click on Rename to start the batch renaming process.

 

Using File Explorer

File Explorer can essentially do the same renaming task though it doesn’t match the behaviour of powerful commands in Command Prompt. This is where keyboard shortcuts become useful. Use this method only if your files are limited in number and stored in the same directory.

  1. Press Windows Key + X, select File Explorer from the list of options.
  2. Go to the directory that contains all of your files.
  3. Sort the files in an ascending manner. To do so, click the downward arrow icon on the upper right corner of your screen to expand the Ribbon. Click the View tab. Select the Details layout. Click Sort by | Ascending.
    image39
  4. Highlight the first file in the list, press F2 key. If File Explorer fails to initiate the rename feature, you might want to press Fn + F2 (For Lenovo laptops). Alternatively, select a file, click the Home tab, and then click the Rename icon.
  5. Type the desired name for your file.
  6. Press Tab key on your keyboard to jump over to the next file in an orderly manner.
  7. Type the new name for the next file, and follow the same procedure until you’ve renamed all the files.

 

Using Command Prompt

You can rename bulk files through a bit of string manipulation using Command Prompt, an antiquated command-line interpreter tool from Microsoft. Command Prompt is commonly abbreviated as CMD, supports several renaming patterns. Before you initiate the following commands, make sure that all the files are in the same folder.

Launching Command Prompt

Press Windows Key + X, select Command Prompt. If the files are located in the primary partition (C:\) or a folder that requires special permissions, choose Command Prompt (Admin). The renaming operation may deliver error due to insufficient administrative privileges.

 

Changing the Current Directory

CD <Directory>

Example:

The following command will change the current CMD directory to the folder of your choice:

  • CD C:\Users\Vikas\Pictures

Bulk Renaming All Files Extensions

ren *.* *.<NewExtension>

Example:

To rename all images to .bmp file type, use the following command:

  • ren *.* *.bmp
Example for renaming all file extensions in bulk qantities
Example for renaming all file extensions in bulk quantities

Bulk Renaming Specific Files Extensions

ren *.<OldExtension>*.<NewExtension>

Example:

To bulk rename all .bmp file extensions to .png, use below command:

  • ren *.bmp *.png

Preserving Only First 5 Characters in Each File Name

Rename *.<Extension> ?????.<Extension>

Example:

This command retains only the first 5 characters in each file and deletes the remaining ones:

  • Rename *.jpg ?????.jpg

Inserting New Character at the Beginning of Each File

for %i in (*.*) do (ren “%i” “<NewCharacter> %i”)

Example:

This command will insert the word album at the beginning of each image file:

  • for %i in (*.*) do (ren “%i” “album %i”)

Inserting New Character at the Beginning of Only Specific File Types

for %i in (*.<extension>) do (ren “%i” “<NewChar> %i”)

Example:

Inserts the word selfie at the beginning of only JPG files.

  • for %i in (*.jpg) do (ren “%i” “selfie %i”)

Inserting New Character at the Beginning of Each Sub Folder

for /D %i in (*.*) do (ren “%i” “<NewChar> %i”)

Example:

Inserts the word collection at the beginning of each subfolder in the current directory.

  • for /D %i in (*.*) do (ren “%i” “collection %i”)

 

Using a Batch File

If you’ve amassed tens of hundreds of files named as Img001NewYork.png, Img002NewYork.png, …, Img100NewYork.png, or any other pattern ending with the word NewYork, the following Batch File (.bat) will delete the word NewYork from all file names.

  1. Click the Start icon.
  2. Type Notepad and open it from the Search Results.
  3. Insert the following commands with appropriate modifications. Replace UserName with your actual username and the word NewYork with the common word at the end of each file.
    image38
  4. Click File, select Save As.
  5. Specify the following arguments:
    File Name: BulkRename.bat
    File Type: All Files
    File Location: C:\Users\UserName\Pictures
  6. Exit the Notepad.
  7. Go to the parent directory, double click the newly created BulkRename.bat file to execute commands of your choice.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top