Change file extensionUsing 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:

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

Step 2
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 .png to .gif, use:

ren *.png *.gif

ren *.png *.gif

Step 3
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)“.

Save as rename.bat

Step 4
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.

(image source)

Related Posts with Thumbnails

Digg This!   Stumble It!   Bookmark on Del.icio.us!  submit to reddit Tweet This Email to a friend Subscribe to RSS feed

This post has 6 comments.

  1. Robert

    13 Mar 09
    12:09 pm

    What if I want to remove the file extension all together?

    In my job, I export artwork to a tif format, but in order for it to be viewable in the Electronic Parts Catalog, I have to remove the file extension.

    I then place the renamed file into it’s appropriate folder. I still want to do this part manually, as it allows me monitor Quality Control.

    Reply

  2. Dan

    13 Mar 09
    11:38 pm

    That is the best thing I have ever seen. You saved me 2 hours+ of tedious file renaming.

    Long live DOS! Way to go sheeptech!

    Reply

  3. Abhay

    30 Mar 09
    9:16 pm

    i have a very large music and movie collection ,stored in various folders ,all of them have been transformed into .jpg by a software that automatically detects all pictures.i want to transform them into mp3 and respective files again. the process enlisted is too tedious .please suggest some other

    Reply

  4. zoki pokeski

    09 Jul 09
    10:17 am

    Thanks a lot…
    This was big help for me…

    Reply

  5. vijay

    03 Sep 09
    9:16 pm

    Hi! It does’t work for vista

    Reply

  6. Ryan

    11 Sep 09
    2:48 pm

    Excellent. Im very grateful to you! It worked on Vista HP for me.

    Reply

Trackbacks