January 17, 2009 by Vincent
Batch Change File Extension
Using the same method as how we batch rename files, we can also change the file extensions of a series of files easily, without the need of any software. All you need is a Notepad or any other text editor.
4 Easy Steps:
Place all the files that you want to change their file extension in the same folder or directory (make sure they have the same extension, all .png for example).
Open Notepad and type the following command line:
ren *.abc *.def
.abc is the initial file extension, while .def is the file extension you want to change to. Say you want to change the file extensions of a batch of files, from
ren *.png *.gif
After entering the command line, save it as rename.bat to the same folder or directory where the files you wanted to change their file extension is located. Make sure you select â€œAll Filesâ€ in the â€œSave as typeâ€, instead of â€œText Documents (*.txt)â€œ.
Run (double-click) the rename.bat you’ve saved in Step 3. Voila!
â€” â€” â€” â€” â€” â€”
Using this method to change file extensions will really only change the file extension/file format/file type. It is purely renaming the file extension, not converting the file type.
Note: The number of character of the file extension must be the same before and after rename. But since most of the file extensions are of 3 characters (jpg, png, gif etc.), most probably there shouldn’t be a problem.