Get all your news in one place.
100’s of premium titles.
One app.
Start reading
Windows Central
Windows Central
Technology
Mauro Huculak

How to change file formats on Windows 11

Windows 11 change file format.

On Windows 11, you can change the format of virtually any file, but the operating system doesn't make it easy for most users. As such, in this guide, I will explain how to complete this configuration.

Unlike Linux, where the extension is part of the filename and doesn't really mean anything, on Windows, the extension indicates the type of format the file uses. For instance, ".txt" indicates a plain text file, while ".docx" indicates a Microsoft Word document.

It's important to note that even though you can change file formats (or extensions), you can only do this on compatible or similar formats. For instance, you can change from ".bat" and ".txt," but you can't change a ".docx" document to ".txt" file. 

Technically, you can, but when opening the document with a text editor, the application won't be able to decode the file, and everything will look scrambled.

If you must change the format of a file that you know is compatible, you can complete this process in at least three ways using File Explorer, Command Prompt, or a specific application.

In this how-to guide, I will outline the different ways to change the format of a file on Windows 11.

Important: It's recommended to make a copy of the file before trying to modify its format, in case something goes wrong, and you want the original file back.  Also, consider that this guide focuses on changing common text, image, and document formats. In many situations, you will need specialized software to make the conversation, and in other scenarios, you won't even be able to change the format.

How to change the format of a file from File Explorer

Using File Explorer is a quick way to change the file type (or extension), but it's not an optional option. The best method is to use the "Save as" option from a compatible application. (See the next set of instructions.)

To quickly change a file format on Windows 11, use these steps:

  1. Open File Explorer.
  2. Click on the View menu, choose Show, and check the "File name extensions" option.
(Image credit: Mauro Huculak)
  1. Right-click the file and select the Rename option. 
(Image credit: Mauro Huculak)
  • Quick tip: You can also select the file and press the "F2" key to rename it.
  1. Change the format by specifying another extension. For example, check myscript.txt and myscript.bat to convert the file into an executable script. 

Once you complete the steps, the file will change its format to the extension you specified.

How to change the format of a file from a compatible app

The best way to change the file format is to use a compatible application. For example, if you have a ".png" file, you can open it with the Paint app and save it in another format, such as ".jpg." In this particular case, you will lose the transparency effect from the previous format.

To change an image file to a different format through the Paint app, use these steps:

  1. Open Paint.
  2. Click on File and choose the Open option.
  3. Select the image.
  4. Click the Open button.
  5. Click on File, choose Save as, and select the new format, such as PNG, JPEG, BMP, or GIF.
(Image credit: Mauro Huculak)
  1. Confirm a new name.
  2. Click the Save button.

After you complete the steps, you will end up with a different file format, which may or may not include the same features and elements from the original file type.

The above instructions are one example. You can do the same with different applications. For example, if you use Microsoft Word, the File menu will allow you to save the document as a ".docx," ".doc," ".xml," or ".txt" file – to name a few.

The key is to open the file with a compatible application and then use that experience to save or convert the file to another type.

How to change the format of a file from Command Prompt

To change the file type from Command Prompt, use these steps:

  1. Open Start.
  2. Search for Command Prompt and click the top result to open the app.
  3. Type the following command example to navigate to the folder with the files to rename, and press Entercd c:\PATH\TO\FILES

For instance, this example opens the "rename" folder inside "Pictures": cd %USERPROFILE%\Downloads\folder

  1. Type the following command to view the files in the location and press Enterdir
  2. Type the following command to rename the file and press Enterren "FILENAME.OLD-EXTENSION" "FILENAME.NEW-EXTENSION"

In the command, replace "FILENAME.OLD-EXTENSION" and "FILENAME.NEW-EXTENSION" with the old and new file extensions. The quotation marks are only necessary if the title includes spaces. For instance, this command renames the file to "image.jpg": ren image.png image.jpg

(Image credit: Mauro Huculak)
  1. Repeat step 5 to change the name of the remaining files.

After you complete these steps, Command Prompt will rename the extension to change the format.

You can also check my other comprehensive guide to renaming files with Command Prompt.

More resources

For more helpful articles, coverage, and answers to common questions about Windows 10 and Windows 11, visit the following resources: 

Sign up to read this article
Read news from 100’s of titles, curated specifically for you.
Already a member? Sign in here
Related Stories
Top stories on inkl right now
One subscription that gives you access to news from hundreds of sites
Already a member? Sign in here
Our Picks
Fourteen days free
Download the app
One app. One membership.
100+ trusted global sources.