How to Batch Rename File Extension Using Notepad
If you happen to encounter tasks such as to rename a list of files’ extension, this is a neat little trick that will get the job done easily for you.
The Only Thing You Will Need
Well, the only the you will need is your Notepad.
You see, Notepad is a very powerful, multi purpose little tool that can do many things out of what you can think. I’ve posted before on how you can use Notepad to write your dairy complete with timestamp. Of course, Notepad can do more than that.
Create Your Batch File
OK, lets get to the task!
I’ll show you by providing an example, say you want to rename 50 files with .xyz to .rar.
- First of all, of course open your Notepad.
- Type in ren *.xyz *.rar (in blue).
- Save as the file as <anyfilename>.bat. File can be named anything as you like but the important part is the extension .bat.
- You are done! Now just execute and run this file in the directory where all the .xyz files are located.

Note: Just edit these two .xyz and .rar extensions to your preference.
As easy as that!

Comment by Vijay »
One more simple trick using notepad. Matt, you rock!!!
Comment by Matt »
Vijay, glad you love it!