Home  >  Article  >  System Tutorial  >  Change File Extension for One or Multiple Files in Windows 10

Change File Extension for One or Multiple Files in Windows 10

PHPz
PHPzOriginal
2024-08-01 20:00:01742browse

If you want to change a file name extension in Windows 10, or if you wonder how to change file extension for multiple or all files in one folder, follow this guide.


  • How to change file extension for one file
  • How to change file extension for multiple files

Part 1: Change file extension for one file in Windows 10

Step 1: Show file name extensions if you haven't done so.

Step 2: Click the file for which you want to change the file extension to select it, and then click F2 to make the filename and extension editable.

Step 3: Select the extension to highlight it, type another extension, and press Enter to confirm it.

Change File Extension for One or Multiple Files in Windows 10

Step 4: When you are prompted with the warning dialog that says "If you change a file name extension, the file might become unusable.", click Yes to confirm that.

Change File Extension for One or Multiple Files in Windows 10

Part 2: Change file extension for multiple files at once in Windows 10

If you need to change the filename extension for multiple or all files in one folder, it would be troublesome and time-consuming to do that one by one. But don't worry. You can change file extension for multiple files in one folder at once simply with the command prompt. Here are the steps.

Step 1: Locate the file. Right-click on the file while pressing and holding the Shift key on your keyboard, and then select Open command window here from the context menu. This will open a CMD window.

Change File Extension for One or Multiple Files in Windows 10

Another way to open the Command Prompt window is to open the folder in File Explorer, click the File tab, point to Open command prompt and then click Open command prompt.

Change File Extension for One or Multiple Files in Windows 10

Step 2: After the CMD window opens, type the command: ren *.(current extension name) *.(new extension name), and press Enter. That's it.

For example, in my case, I use ren *.png *.jpg command to change all picture files' extension from .png to .jpg, as shown below.

Change File Extension for One or Multiple Files in Windows 10

The above is the detailed content of Change File Extension for One or Multiple Files in Windows 10. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn