5 Ways to Batch Rename Files in Windows - Make Tech Easier
May 30, 2025 am 01:28 AMAs of recent inspections, I have over 500,000 files in my document and photo folders. Since it is impossible to change so many file names one by one, I decided to adopt the method of batch renaming Windows files to speed up the process and stay sane.
Table of contents
- Batch rename using PowerToys
- Simple rename using File Explorer
- Rename the extension using the command prompt
- Using Windows PowerShell
- Advanced batch renaming with Bulk Rename Utility
Batch rename using PowerToys
PowerToys is a dedicated software that Microsoft provides for Windows power users, which I call my Windows toolbox. Among its many features is PowerRename, a more advanced and in-depth way to batch rename Windows files. I downloaded it from the Microsoft Store, but it is also available on GitHub.
What I like is that PowerRename is automatically integrated into the right-click context menu without additional action. Now I can select all the files I want to rename in batches, right-click on one of them, and select PowerRename . Of course, Windows 11 hides this option under Show More Options .
Quick tip: If you want to select all files in the folder, press Ctrl A to select all. If you select only some files, press and hold Ctrl and select files one by one.
Select any parameter, such as a specific word or number, and then select the text you want to replace. This is a very targeted way to rename files in batches.
For example, I'm changing the word Another in the file to First . PowerRename selects only these files and displays a preview of the final result before making changes. If you are satisfied, click Apply .
My favorite feature is changing the text format. It can easily switch between all lowercase, all uppercase, title case and first letter of each word.
Simple rename using File Explorer
If you don't need any fancy features, you can use File Explorer to rename files in Windows. It's both fast and easy.
Open the folder containing your files, select all files you want to change, and right-click the first file you want to rename (or press F2 ). Enter a new file name, press Enter , and all files will get the same name, with consecutive numbers attached.
I found this approach best suited to grouping files, such as a series of files. I changed the random name to all called important notes . This is also great for photos, such as changing the default name of your phone to something similar to a beach vacation .
While you can't change the file extension or the way Windows adds numbers, such as starting with different numbers, there are some more advanced methods.
If you have problems with File Explorer, learn how to fix the FAQ and restart it.
Rename the extension using the command prompt
Do I need to batch rename extensions and files? Press Win R , enter cmd, and then press OK to open the command prompt.
Change the directory to the folder where your files reside by entering the full path or opening a folder in File Explorer. Right-click on the path position above the file list and select Copy Address . You can even search for files using the command prompt.
Enter cd in the command prompt and copy the address from File Explorer. If you have copy and paste issues, you may need to change the settings to enable copy and paste functionality in the command prompt.
Enter the following command to use the file extension you want:
<code>ren *.fileext1 *.fileext2</code>
Here I am changing the .jpg extension to .png. Note that this does not actually change the file type, only changes the extension.
If you want to rename the file name in batches, the process is similar. However, if the file name has many common characters, you may encounter errors about duplicate files. To make sure this doesn't happen, use wildcards, i.e. question marks, keeping the unique part of the original name.
After changing the command prompt directory to a folder containing your files, enter the following:
<code>ren *.fileext ???name.fileext</code>
Enter the number of question marks you need. If you want a space in the file name, put the file name in quotes, such as "???File Name.jpg". If you want the new file name to start, use a wildcard after the file name, such as "FileName????". Here I am using:
<code>ren *.jpg ?????????January.jpg</code>
Honestly, this approach can get tricky. If all files have different original file names, only some files will change.
Using Windows PowerShell
Windows PowerShell is a bit like an enhanced command prompt, although the two are somewhat similar. To batch rename files with PowerShell in Windows, just a few simple commands are required.
Right-click on the folder containing your files and select Open in Terminal . Terminal is a Windows combinatorial tool for PowerShell, Command Prompt, and Azure Cloud Shell. By default, it should open to PowerShell.
Once PowerShell is opened, use the following command. When using the command, don't forget to change "TestName" to the file name you want and use the correct file extension.
<code>dir | %{$x=0} {Rename-Item $_ -NewName "TestName$x.jpg"; $x }</code>
The above command passes all files in the directory to the Rename-Item command, which renames all files to TestName* . * represents numbers, which are allocated by recursively using $x . This allows each file to have a unique name.
If you want to change the file extensions of all files in the directory, use the command below.
<code>Get-ChildItem *.jpg | Rename-Item -NewName { $_.Name -replace '.jpg','.png' }</code>
Press the button and any file with .jpg will change to .png.
I recommend checking Microsoft's documentation for more parameters that can be used with this command.
Advanced batch renaming with Bulk Rename Utility
Yes, the built-in tools work surprisingly well when batch renaming files in Windows. But if you want more powerful features, you can try Bulk Rename Utility. This free third-party tool far exceeded expectations. It's not for the faint of heart, but I know you'll love it after trying it.
Add/remove characters, append text, add dates, change extensions, use Windows properties, use EXIF ??metadata, and more. I can even use a CSV list for batch renaming. Just enter the parameters (you don't need to use each field), preview and rename. For changes I make often, I save the parameters for later use.
I've also tried FileRenamer and Advanced Renamer, but this tool is often the most complex.
Now you are a renaming expert and master file management. Check out these file explorers alternatives to get more control. If you are a Mac user, learn how to batch rename files.
Image source: Unsplash. All screenshots were taken by Crystal Crowder.
The above is the detailed content of 5 Ways to Batch Rename Files in Windows - Make Tech Easier. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

If you want to cancel the password login for Windows 11, there are three methods to choose: 1. Modify the automatic login settings, uncheck "To use this computer, users must enter their username and password", and then restart the automatic login after entering the password; 2. Switch to a passwordless login method, such as PIN, fingerprint or face recognition, configure it in "Settings>Account>Login Options" to improve convenience and security; 3. Delete the account password directly, but there are security risks and may lead to some functions being limited. It is recommended to choose a suitable solution based on actual needs.

Like many Windows users, I am always on the lookout for ways to boost my productivity. Command Palette quickly became an essential tool for me. This powerful utility has completely changed how I interact with Windows, giving me instant access to the

There are three main ways to uninstall programs on Windows 11: 1. Uninstall through "Settings", open the "Settings" > "Apps" > "Installed Applications", select the program and click "Uninstall", which is suitable for most users; 2. Use the control panel, search and enter "Control Panel" > "Programs and Functions", right-click the program and select "Uninstall", which is suitable for users who are accustomed to traditional interfaces; 3. Use third-party tools such as RevoUninstaller to clean up more thoroughly, but pay attention to the download source and operation risks, and novices can give priority to using the system's own methods.

To run programs as administrator, you can use Windows' own functions: 1. Right-click the menu to select "Run as administrator", which is suitable for temporary privilege hike scenarios; 2. Create a shortcut and check "Run as administrator" to achieve automatic privilege hike start; 3. Use the task scheduler to configure automated tasks, suitable for running programs that require permissions on a scheduled or background basis, pay attention to setting details such as path changes and permission checks.

Windows 10 KB5061087 is now rolling out as an optional preview update for those on version 22H2 with Start menu fixes.

This might not be at the top of the list of features people want to return from Windows 10, but it still offers some usefulness. If you'd like to view the current minutes and seconds without turning on that display in the main taskbar clock (where it

Microsoft confirmed that the DHCP server service might stop responding or refuse to connect after the June 2025 Update for Windows Server.

In the past, I always viewed the i5 lineup as anemic when it came to gaming. However, in 2025, a mid-range CPU is more than enough to start your gaming journey. Many games still don’t fully utilize multi-core performance as well as they could, so
