SoFunction
Updated on 2025-04-09

Bat batch processing method to modify file extension in batches

Sometimes we may encounter many files in a folder, and we need to modify the extensions of these files. Of course, we can modify them one by one, but if there are many files, it will be very troublesome. So today I will teach you how to modify file extensions in batches, and I hope you can use them flexibly.

Here, assuming that you want to change all files with the extension .gif to .jpg format, the specific method is as follows:

1. First enter the folder where you need to change the extension to create a new notepad

2. Enter the following content in Notepad

Copy the codeThe code is as follows:
ren *.gif *.jpg

3. Change the extension of Notepad to .bat

4. Double-click to run the bat file to batch change all .gif files in this folder into .jpg

Note: This is just an example, you can use it flexibly. Let’s think about it, haha.