If you want to rename all file extensions in a folder or sub-folder at once on Windows 11 or Windows 10 PC, here is how you can do that. You do not need to use a third-party application as you can get the job done via Notepad and a simple command. Here is the explained process you need to follow.
Let’s assume that you have fifty PDF files in a folder, and you need to convert them into DOCX or any other format. There are two ways to get it done. First, you can open each file in Word and save it as DOCX. Second, you can use a third-party application. However, there is another method. In this case, you can use your Notepad to create a batch file, which will rename all the file extensions in a specific folder and all sub-folders at once.
How to rename all File Extensions in a Folder at once
To rename all file extensions in a folder or sub-folder at once in Windows 11/10, follow these steps:
- Open Notepad on your computer.
- Paste the following text.
- Click on File > Save As.
- Select the folder where you placed all the files.
- Enter a name with .bat extension.
- Choose All Files from the Save as type menu.
- Click the Save button.
- Double-click on the .bat file.
To learn more about these steps, continue reading.
First, you need to open Notepad on your computer. For that, you can use the Taskbar search box. Next, paste the following text:
@ECHO OFF PUSHD . FOR /R %%d IN (.) DO ( cd "%%d" IF EXIST *.old-extension ( REN *.old-extension *.new-extension ) ) POPD
Don’t forget to replace the old-extension with the current file extension and new-extension with the desired file extension that you want your files converted to.
Once done, click on File > Save As and select the path where you saved all the files.
Then, enter a name with .bat file extension, choose All Files from the Save as type drop-down menu, and click the Save button.
Next, open the folder where you saved the file and double-click on the .bat file. All your files will be converted to the desired extension immediately and automatically.
How to batch rename multiple files on Windows 11/10?
To batch rename multiple files on Windows, you need to follow the aforementioned guide. That said, you can get it done using Notepad and the REN command. Create a .bat file with the above-mentioned command and place it in the desired folder. Next, double-click on the .bat file to get everything renamed.
How to bulk rename file extensions in all folders in Windows 11/10?
To bulk rename the file extension in all folders in Windows 11/10, you can use the REN command. A detailed guide is mentioned above, and you need to follow it minutely. In simple terms, you need to create a batch file with the given text and double-click on the .bat file to get the job done.
That’s all! Hope this guide helped.
Read: Best free Bulk File Renamer software to Mass Rename files in Windows.