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.

Advertisement
  • http://www.newsdots.com Geoserv

    STUMBLED!

    Simple enough, thanks.

    • Andy

      Finally advice I can understand!

      MANY THANKS

    • atee

      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

      • http://www.facebook.com/oluwasoji.ojo Oluwasoji Ojo

        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

  • http://computermaintenance-henis.blogspot.com/ Henis

    Very handy and useful.

  • http://www.expertbingo.co.uk Ryan G

    Yes, definately very handy indeed. Thanks.

  • Anu

    Very Good One :)

  • Rick

    Thank you!

  • aashish

    awsm man….coolest software ever……..\m/

  • Linda

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

    • Linda

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

  • Matthew DeMaria

    Thank you, that worked amazingly

    • Ryan

      Thank you so much! Literally saved me hours of tedious work! haha

  • Melanie

    Thanks SO MUCH! Easy command line fix. Saved me a bunch of hassle.

  • Melanie

    Thanks SO MUCH! Easy command line fix. Saved me a bunch of hassle.

  • Melanie

    Thanks SO MUCH! Easy command line fix. Saved me a bunch of hassle.

  • Ryan

    thanks!

  • Anon

    for /d %x in (*) do pushd %x & ren *. *.bla & popd

    Will search all subdirectories of the current and rename everything.

    • Dharmesh

      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

  • ramya

    Thanks really helped a lot

  • Alek

    Very good tip, even that is not for Windows 7 it works fine

    Thank you!

    ;-)

    • goverthana

      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

  • Vuk

    Great!!!! THANKS!!!

  • guydance

    Excellent. Simple instructions.

  • Dave

    Awesome!

  • Abhi

    Thanks, But how more then one or a folder of files would convert or change in .jpg or other in XP??

  • veerendra

    Works within seceonds Gr8 commandline.

  • Nick

    Helps, but wiped the file properties.

  • Thanks

    Just wanted to express my thanks for this helpful article.

  • Steve

    Great! The command line approach is super fast too, 400+ files done in a blink of an eye.

  • jujuferfer

    thank you so much for the command!saved me time and hassle!

  • Eric

    thanks man. saved me a lot of trouble.

  • Ankit

    Thanks a lot. Saved a lot time

  • zzzzzz

    thx man. simple enough. not like bunch of stupids tutorial site…

  • Fazith

    First method is very simple and it worked fine. Very thanks.

  • http://www.kiddiefonts.com webmaster@kiddiefonts

    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.

  • Huynhtj

    Amazing stuff. #extremelygrateful

  • Guest

    Great tip. Thanks!

  • Iamayush

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

  • Guest

    brilliant

  • Jack

    Method 1 is Amazingly simple !

  • Purpleski

    Just awesome. Spent half an hour looking for freeware and then this piece of brilliance. Thank you.

  • bobby smith

    ren *.jpg *.jpg Huh?

  • Naga Muthu

    Wow! Amazing.. Method 1 is incredibly simple and helped me a lot..

    Thanks a lot..:)

  • http://pulse.yahoo.com/_LS3VHNOYI45HJ3FNG44FHRDNTM Jalan

    Excellent!

  • donskjr

    Wow thanks! You just saved my hours of work.

  • http://twitter.com/damian61094 Damian A

    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.

  • Dudebro

    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).

    • Dudebro

      When I said remove parenthesis, I meant remove quotations.

  • jaden

    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?

    • sketch

      ren *. *.jpg

  • aerospaceman

    Super useful! Saved me LOTS of hours. Thanks a lot =)

  • Zahraa.H

    I love you ^_^

  • Vaibhav

    thanks a lot…..saved a LOT of time…!!!

  • damggrateful

    thanks a mucho gusto
    You are the goddam man !

  • raja

    i like this

  • Sara

    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?

  • PC

    Great tip and it was very simple

  • jwbecher

    Perfect! Thank you.

  • Kirs Sudh

    thankyou very much, CMD info was awesome.

  • Robson Carvalho

    Thanks!

  • http://www.echteinfach.tv/ Echt Einfach TV

    Loving you! I was always searching a way to batch rename, finally found it here!

  • jignyasa

    Really cool.. Amazing..

  • Brian Bahia

    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

  • Harri Vane

    This works. And is so easy. I could cry for joy!

  • sandbag

    thanks, found this after 5 min just what i was looking for!

  • Nick

    Very simple and very very helpful. Thank you !!!

  • Hich

    thanks for the command line, saved a lot of time for me :)

  • Bradh1duk

    There is a virus in the Flash Player link

  • zman

    Thanks, Just saved me loads of time….