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)

If you're having trouble reading your desktop icons' text or simply want to personalize your desktop look, you may be looking for a way to change the font color on desktop icons in Windows 11. Unfortunately, Windows 11 doesn't offer an easy built-in

Fixed Windows 11 Google Chrome not opening Google Chrome is the most popular browser right now, but even it sometimes requires help to open on Windows. Then follow the on-screen instructions to complete the process. After completing the above steps, launch Google Chrome again to see if it works properly now. 5. Delete Chrome User Profile If you are still having problems, it may be time to delete Chrome User Profile. This will delete all your personal information, so be sure to back up all relevant data. Typically, you delete the Chrome user profile through the browser itself. But given that you can't open it, here's another way: Turn on Windo

When Windows cannot detect a second monitor, first check whether the physical connection is normal, including power supply, cable plug-in and interface compatibility, and try to replace the cable or adapter; secondly, update or reinstall the graphics card driver through the Device Manager, and roll back the driver version if necessary; then manually click "Detection" in the display settings to identify the monitor to confirm whether it is correctly identified by the system; finally check whether the monitor input source is switched to the corresponding interface, and confirm whether the graphics card output port connected to the cable is correct. Following the above steps to check in turn, most dual-screen recognition problems can usually be solved.

Mini PCs have undergone

Have problems uploading files in Google Chrome? This may be annoying, right? Whether you are attaching documents to emails, sharing images on social media, or submitting important files for work or school, a smooth file upload process is crucial. So, it can be frustrating if your file uploads continue to fail in Chrome on Windows PC. If you're not ready to give up your favorite browser, here are some tips for fixes that can't upload files on Windows Google Chrome 1. Start with Universal Repair Before we learn about any advanced troubleshooting tips, it's best to try some of the basic solutions mentioned below. Troubleshooting Internet connection issues: Internet connection

When encountering the problem of printing task stuck, clearing the print queue and restarting the PrintSpooler service is an effective solution. First, open the "Device and Printer" interface to find the corresponding printer, right-click the task and select "Cancel" to clear a single task, or click "Cancel all documents" to clear the queue at one time; if the queue is inaccessible, press Win R to enter services.msc to open the service list, find "PrintSpooler" and stop it before starting the service. If necessary, you can manually delete the residual files under the C:\Windows\System32\spool\PRINTERS path to completely solve the problem.

To display file extensions in Windows 11 File Explorer, you can follow the following steps: 1. Open any folder; 2. Click the "View" tab in the top menu bar; 3. Click the "Options" button in the upper right corner; 4. Switch to the "View" tab; 5. Uncheck "Hide extensions for known file types"; 6. Click "OK" to save settings. This setting helps identify file types, improve development efficiency, and troubleshoot problems. If you just want to view the extension temporarily, you can right-click the file and select "Rename" and press the Esc key to exit, and the system settings will not be changed.
