4 Ways to Batch Rename Files in Windows

It is very easy to batch rename files in Windows. Check it out now!

3 Ways To Batch Rename Files In Windows Featured

With our growing collections of digital files, it’s a nightmare when you want to rename a bunch of files to make them easier to find. Naming dozens or hundreds of similar files one at a time takes forever. Luckily, there are several significantly easier ways to batch rename files in Windows to save time and headaches.

You can mostly do batch-renaming using Windows’ in-built functionality, though there is one super-handy app (developed by Microsoft) that will give you that extra bit of control over your renaming.

1. Using PowerToys

PowerToys is Microsoft’s dedicated software for Windows power users. Among its many features is something called PowerRename, which offers a more advanced and in-depth way to batch-rename files on Windows 10 and Windows 11.

Batch Rename Files Windows Powerrename Powertoys

Once you’ve installed PowerToys, PowerRename will automatically integrate into your right-click context menu. So go select all the files you want to batch-rename, right-click one, then click PowerRename (or “Show more options” then PowerRename in Windows 11).

The PowerRename window will pop up. Here, you can search for specific letters, words or numbers within your selection, then choose to rename all the entries that contain those expressions (so in my case, I’m replacing all screenshots with the number “3” in them to “Jan.”

Batch Rename Files Windows Powerrename

This offers you a more targeted way of batch-renaming files, setting different rules for different files within one big selection that you made and even giving you previews of what the new file names will look like before you commit.

You can do all kinds of things here, like bulk-select the text formatting for the new filenames, choose whether to apply the changes to the filename and the extension, and more.

Batch Rename Files Windows Powerrename Formatting

Once you’re done, click Apply.

2. Using File Explorer

Using File Explorer to batch rename files in Windows is usually the easiest way, though it doesn’t give you quite as much control as PowerToys. To batch rename files, just select all the files you want to rename, press F2 (alternatively, right-click and select rename), then enter the name you want on the first file. Press Enter to change the names for all other selected files.

3 Ways To Batch Rename Files In Windows Explorer Pictures

For example, I had a list of images that I wanted to change from the default date-naming convention to something simpler to read. In this case, January 2021. This method adds sequential numbers in parentheses beside each file name. This is a great way to keep similar files together, such as a project, photos from a trip, or anything else.

3 Ways To Batch Rename Files In Windows Explorer Pictures Renamed

It’s that easy to rename files using File Explorer, but this method is just basic and is not so flexible, e.g., you cannot change the file extensions (.html) and cannot restrict or change Windows from adding numbers, etc. For more advanced functions, we need to use the command prompt and Windows PowerShell.

3. Using the Command Prompt

If you want to batch rename only the extensions in Windows, the command prompt is a great tool. You can also rename files. Let’s first tackle changing extensions.

1. Open command prompt by pressing Win + R, typing cmd and pressing OK.

3 Ways To Batch Rename Files In Windows Explorer Cmd

2. Once the command prompt window opens, you’ll need to change the directory to the folder where your files are located. You can type in the full path or open the folder in File Explorer. Right-click the path location above the file list and choose “Copy address.”

3 Ways To Batch Rename Files In Windows Explorer Cmd File Path

You can then copy this into the command prompt. Before you type or copy anything, type cd and then the path location.

If you’re having trouble with copy and paste, you may need to change the settings to enable the copy and paste function in command prompt.

3 Ways To Batch Rename Files In Windows Explorer Cmd Cd

Enter the following command using the file extensions you want:

In my case, I’m changing the .jpg extension to .png. Please note this doesn’t actually change the file type, just the extension.

3 Ways To Batch Rename Files In Windows Explorer Cmd Cd Extensions

If you want to batch rename the file names, it’s a similar process. However, if the file names share numerous characters, you may get an error concerning duplicate files. To make sure this doesn’t happen, use wildcards, which are question marks, to keep a unique portion of the original name.

In my example, my files all start with 01. Some files share as many ten characters.

After changing the command prompt directory to the folder with your files, enter the following:

Enter as many ? as you need for the characters. If you want a space in your file name, place the file name in quotes, such as “???File Name.jpg.” If you want your new file name at the beginning, use the wildcards after the file name, such as FileName????. In my case, I’d use:

3 Ways To Batch Rename Files In Windows Explorer Cmd Cd File Names

This method can be tricky. If all the files don’t have the same file name length originally, only part of the files will change.

4. Using Windows PowerShell

Windows PowerShell is far more powerful than the regular command prompt and is also easy to use, though the two are somewhat similar. To batch rename files in Windows using PowerShell, you only need a few simple commands.

Open the folder where your files are located in File Explorer. Open File and choose “Open Windows PowerShell.”

3 Ways To Batch Rename Files In Windows Explorer Powershell

Once PowerShell is open, use the below command. While using the command, don’t forget to change “TestName” to your desired file name and use the correct file extension.

3 Ways To Batch Rename Files In Windows Explorer Powershell Rename
3 Ways To Batch Rename Files In Windows Explorer Powershell Rename Close

The above command will take all the files in the directory and pass them to the Rename-Item command, which renames all the files to “TestName*.” Here * denotes numbers, and those numbers are allocated recursively using “$x.” This allows each file to have a unique name.

If you want to change the file extensions of all the files in a directory, use the below command.

3 Ways To Batch Rename Files In Windows Explorer Powershell Rename Extension

What the above command does is take all the files with the .jpg extension in a directory and changes them to .png.

3 Ways To Batch Rename Files In Windows Explorer Powershell Rename Extension Done

To know more about Rename-Item command, read the Microsoft documentation for more definitions and examples.

Which of the above three methods do your prefer?? Sure, PowerShell may be overwhelming for beginners, but it is fun to work with once you’ve gained some experience. You can even uninstall those pesky preinstalled apps.

Hopefully that helps, but do share your thoughts and other methods of manually batch-renaming files. You might also want to learn how to create symbolic links to files for quick access. Also, if you’re planning move files around in bulk in File Explorer, explore these easy ways to copy a large number of files quickly.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox