1. Home
  2. Windows Tips
  3. Batch change rename file extensions in windows

Batch Change/Rename File Extensions In Windows

Do you want to batch rename file extensions in one simple step? Changing each file extension separately can be a pain in some cases where you have to change extensions of more than 100 files. There are two methods of changing batch file extensions quickly.

Method 1: Command Line

Select the folder which has all the files who’s extension you would like to change. As an example I have made a folder named “test”, inside this folder I have placed four images in .jpg format. To change the extension of the files inside the folder, press Shift and right-click on the folder and select Open Command Window Here.

open command window

You will now see a Command Window with the current folderdirectory open. Now type the following command line,

ren *.(current extension name) *.(extension you want)

Since I want to change the extension from .jpg to .jpg, in my case the command line would be,

ren *.jpg *.jpg

change extension

Now all the files inside the folder will change to the extension you want. It’s that simple.

Method 2: Using Extension Changer

Extension Changer is a cool little software that lets you change the extension easily. Since the command line method is limited to few extensions, this software can change almost any extension.

All you have to do is drag the file who’s extension you would like to change. If you want to batch change the file extensions, then you can drag the files one by one or you can drag the whole folder(it will also ask if you would like to include the sub folders or not) which contains the files.

After selecting the files, enter the extension you want to change it into and click Change.

extension changer

Since there is no restriction on the number of files who’s extension can be changed, you can change the extensions of as many files as you want, even if they are 1000s of files.

119 Comments

  1. Does the first method work for Windows 10? Because I do not see “Open Command Window Here” and I am hesitant to download the software.

  2. Since I want to change the extension from .jpg to .jpg, in my case the command line would be,

    ren *.jpg *.jpg

    WRONG -hilarious!!!!!

  3. Beside these 2 methods you can check my software also. Click on my username or search on google by this keyword phrase- BatchRenameFiles Tool. Hope you will become happy.

    Thanks
    Jonathan F.

  4. Great help, thanks… I seem to get files with .ptl added when I retrieve folders from a hard drive, and Method 1 enabled me to rename them as a batch – though ‘ren’ wasn’t recognised (Win 8.1)- I found ‘rename *ptl *.pdf’ worked.

  5. bro file type is File and its not working on command line y is it so?
    i want to convert it to .vcf file please do help

  6. Thanks for the useful tip! I found that using a third party was the best
    solution. My preference is KrojamSoft BatchRename. Very user friendly
    interface, easy to rename and add prefixes or suffixes to multiple files and
    folders at once. If you’re a photographer like me or work with heaps of files
    every day and like to keep things organized, this is the best thing I’ve tried! Thumbs up!

  7. I tried extension changer in windows 7 and it worked very nicely but in windows 8.1 it is not working. I am not finding option to change extension while right clicking on any file or folder. please help on this issue.

  8. Worked great with the 2nd suggestion – Except for the love of god don’t put a period in “Extension Changer” text area (like you have in your example)! Good thing I did a back-up of the 247 files first – because there’s no way to remove the double-period I got the first round even if you repeat the action without the period before the extension

  9. The author of the “Extension Changer” software is Cairo Cubicles. Extension Changer does require installation… Is there any alternatives to that program with no installer?

  10. I wanted to change my iPhone backup files (photos) into jpg but the backup files have no extension at all. What should I do then?

  11. You can also make a .bat (a batch file) by opening notepad and typing: “ren *.extension *.extension” (remove parenthesis). Save it as “Whatever.bat” and move it to the folder where you want to change your files to a certain type and run it. That way, if you’re mass converting and want to do it all at once, you don’t have to download a program riddled with spyware (as linked in the article).

  12. Whoa, that’s so easy. I’d recovered some files and they came up as plain text with all the rtf encoding, now they show up properly formatted! Way easier than clicking and renaming each one.

  13. brilliant.. a really simple command.. and no need to install additional software 🙂 .. will come back to this site the next time i need help 🙂

  14. It does work with Windows 7 just omit the full stop simply write the 3 OR  4 letter extension, also the website and updates are now invalid v0.5 is then only version you can get. Used this on 46 divx files to avi.

    • Hi, the software, according to Cnet, is not compatible with Windows 7 but always remember Command Line exists in ALL Windows * OS and it has worked before and will work also in the future for New Win OS.

      Tip: if no ext at the end “New_” or has an odd ext ending such as “New.a”,”New.avi.html”, here u have to use this comand line to batch rename all of those files with these odd endings, e.g. change to .wmv ext use “ren * *.wmv”. The result is all files renamed to .wmv ext.

      Tip: to find whats the contents of the file, use a Freeware Program called Media Info – just multiple select all files that you want to check and drag them to the Media Info Window, it will list them all. Then you can use to separate those files with differing contents say you have, mkv, wmv, avi(Xvid,Divx) contents separate them accodringly and put them in different folders and use the above method to batch convert them, Thats all, its that simple

  15. for /d %x in (*) do pushd %x & ren *. *.bla & popd Will search all subdirectories of the current and rename everything.

    • Dear Sir

      I have a folder name “data”, it has 10 sub folders and these 10 sub folders have many files extension with .wav
      I want to rename all the files in sub folders with *.mp3

      How can I do this.
      How can I rename sub folders files at once. I want to rename all the *.wav files with *.mp3 in 10 sub directories.

      Thanks in advance

  16. Well that is pretty darn neat! I appreciate this! It helped me tremendously and was so dang EASY!!!!!!!! Thank you very very much!

    • I didn’t use the software. I used the command line…..and it worked so nicely! Thanks again for this tip.

    • The command works. If yours is not working then just check if you have put the stars/asterisks.

    • There is one little query. While recovering my data from a crashed hard drive the recovery software added the extension (*.enc) to it. Now if there is a file DSC234.jpg then it is shown as DSC234.jpg.enc. I want a procedure whereby I can only remove the additional extension (.enc) while leaving the rest of the name and extension intact.

      I will be grateful if someone can provide an easy answer.

      Regards

    • There is a simple method i came up with…. just use the shift right click on the folder and then do a :
      ren *.enc *.
      that will remove the last enc from the files present in that folder

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.