How to Change the File Extension of a File on Windows 11

Share
In this tutorial, we'll learn how to change the file extension of a file on Windows 11. Changing the file extension of a file means the same thing as changing the file type of a file on Windows, since the file extension is what Windows uses to determine the file type. This may be necessary, for example, if you download a file that has no file extension, or if a program only works with files that have a specific extension for some reason. See [Reasons to Change the File Extension of a File] for a complete list.

In order to change the file extension of a file on Windows 11, follow the following steps:

1: configure Windows to display the file extensions of files on File Explorer. This is necessary because the file extensions are hidden by default.

2: now that the file extension is displayed as part of the filename of files in the File Explorer, all you need to do is rename the file, but changing only the file extension. For example, if you have a file called photo.gif, you can change the file extension to .png simply by renaming it to photo.png. After you do this, Windows will show you a dialog box warning you that the file may become unusable.

A yes/no confirmation dialog titled "Rename" that warns: if you change a file name extension, the file might become unusable. Are you sure you want to change it?
The confirmation dialog that appears when you change a file's file extension on Windows 11.

Warning: while this warning is a bit dramatic, there are cases you can make the file unusable if you don't know what you are doing. See ["If you change a file name extension, the file might become unusable"] for details on what the risks are to your data.

3: click "Yes" to change the file extension.

Tip: if you changed the file extension by accident and you forgot what it was before, you may be able to undo it by pressing Ctrl+Z inside the File Explorer. This will undo the last operation, which includes renaming, moving, or deleting files.

Written by Noel Santos.

About the Author

I'm a self-taught Brazilian programmer graduated in IT from a FATEC. In a world of increasingly complex and essential computers, I decided to use my technical expertise in hardware, desktop applications, and web technologies to create an informative resource to make PC's easier to understand.

View Comments