Home > Windows

How to Change Multiple File Extensions at Once in Windows

In this guide, we will show you the steps to change multiple file extensions at once on your Windows PC. When it comes to batch re-naming, you just need to select all the files and assign them the desired name, all the files will be renamed accordingly. However, the same rule doesn’t work while changing extensions. Even if you select all the files and change their extensions via Rename, it will only be reflected on one file (the selected one). So what else could be done?

Well, one approach is to manually carry out the process, but it would take ages to do so. Likewise, you could also opt for a website to do this job, but that would involve uploading your images over to their server, which could prove to be a big privacy concern. Fortunately, there exists a pretty nifty method through which you could change multiple file extensions at once on your Windows PC. And it involves the usage of Command Prompt. So without any further ado, let’s check out the required instructions.



The Prerequisites

In this guide, we will be making you aware of four different methods- changing the extension of a single file, of multiple files, of multiple files having different extensions, of multiple files but saving the original ones as well. All these will be carried out just by using the Command Prompt itself. But before starting, there are two prerequisites that you need to checkmark of the list:

  • First off, transfer all the files whose extensions you need to change, to a single folder. In this guide, I will be using the following five files: IMG 1.png, IMG 2.png, IMG 3.png, IMG 4.png, and IMG 5.png.
    How to Change Multiple File Extensions at Once in Windows
  • Next up, head over to that folder’s address bar, type in CMD, and hit Enter. This shall launch the Command Prompt window having that folder’s location as the working directory.

That’s it. You may now proceed with the below steps to change multiple file extensions at once on your Windows PC.

Change Extension of a Single File using Command Prompt

Here is how you could change the extension of a single file using the Command prompt on your Windows PC.

Syntax

rename "filename.oldextension" "filename.newextension"

Example

For example, if you want to change the PNG extension to JPG of a file named IMG 1, then you may use the below command

rename "IMG 1.png" "IMG 1.jpg"

How to Change Multiple File Extensions at Once in Windows

Change Extension of Multiple Files using Command Prompt

If you want to change the extension of multiple files at once, then you could use the below command.

Syntax

rename *.oldextension *.newextension

Example

For example, if you have five PNG files and want to change their extensions to JPG, then the below command will come in handy.

rename *.png *.jpg

How to Change Multiple File Extensions at Once in Windows

Change Extension of Multiple Files having Different Extensions via CMD

Suppose, you have multiple files with different extensions, and you want all those extensions to be changed to a common one, then you may use the following syntax

Syntax

ren *.* *.newextension

Example

As an example, there are a few files with PNG extensions, a few with JPEG, and others with JPG. I want all those to have the JPG extension, so here’s the command that I will be using:

ren *.* *.jpg

How to Change Multiple File Extensions at Once in Windows

Change Extension of Multiple Files and Save the Original via CMD

If you want to change the extension of multiple files, but at the same time, want to have a backup of the original files as well, then the below syntax will help you out.

Syntax

xcopy *.oldextension *.newextension

Example

In this case, I will be changing the extension of all PNG files to JPG, but at the same time, will retain all the PNG files as well. Here’s how:

xcopy *.png *.jpg

How to Change Multiple File Extensions at Once in Windows

With this, we round off the guide on how you could change multiple file extensions at once on your Windows PC. If you have any queries concerning the aforementioned steps, do let us know in the comments section. We will get back to you with a solution at the earliest.

Share: