Tool To Rename Files In Bulk

This post talks about how to batch rename file extensions from command line. No 3rd party tools are required. At the end of the post, you can find a download link for the batch file script.

Batch rename file extensions in bulk from CMD


If you have multiple files having an extension like jpeg and you want to batch rename them to `jpg` as extension you can do that with a single line of code: FOR /R%f IN (.jpeg) DO REN '%f'.jpg. In my case I wanted to batch rename all my template files from `.jade` to `.pug`, as there was an issue with trademarks, so the command would change to. Bulk Rename Utility: file renaming software for Windows. Bulk Rename Utility is free of charge for personal, private use, at home. To use Bulk Rename Utility within a business entity, company or for commercial purposes, a commercial license is required.

We can change the extension of files in batch using rename command. For example, let’s say you have set of files with extension .log and you want to rename them to .txt. You can do this with the below command

  1. Jan 02, 2021 So, if you are wondering what tools (and methods) to use to bulk rename images (or any other files) on your Windows computer, here’s a guide to help you with the same. Table of Contents: Method.
  2. The most user-friendly long path files problem fixer for Windows and Mac. Delete, copy, bulk rename long path files.
  3. Nov 28, 2018 This is how bulk rename looks like. Click the plus sign and choose the list of files you want to rename. Bulk rename can rename the name of the files, the suffix of the files or both the name and the suffix of the files. Thunar currently supports the following Bulk Renamers: Insert Date or Time.
Tool To Rename Files In Bulk

The drawback with this command is, we can’t use it to rename file extensions recursively in the sub folders. Next, we’ll look at a solution which allows us to do so.

Recursively batch rename file extensions

If you want to rename files from one extension to another, recursively in all sub folders, then you can use the below command.

For example, if you want to rename all xml files to txt files, the command would be as below

Remove file extensions in batch

Rename Files Windows 7

The below command would remove extension for the specified file types.

Bulk File Name Utility

If you want a batch file script, it can be downloaded from the below link:
Batch file script for renaming file extensions in bulk

Add prefix to file names in batch

If you want to add any prefix to file names, it can be done as in the below example. Here we try to add ‘photo’ to every jpg file in the current folder and subfolders.

Similarly, we can add a number to a file name.

Handling names with white spaces

Free Rename Files Program

If the new name you want to assign to the files has white space within it, it can be done by adding double quotes around the file name. So that forfiles does not misinterpret this doublequotes, you need to escape them with ‘’
For example to add ” – pic.jpg” to each of the jpg files, the command would be as below.