Change File Type or Extension in Windows 11
In this article
To change a file extension in Windows 11, you must first enable file extensions in File Explorer, right-click the file, select the Rename icon (or press F2), and manually change the letters following the dot (e.g., changing .txt to .md). This process changes how Windows identifies the file and which app it uses to open it, but it does not convert the internal data of the file.
Changing a file extension is useful when a file has been saved with the wrong format or when you need to use a specific extension for a piece of software to recognize the file. However, it is important to understand that renaming an extension is not the same as converting a file. For example, renaming a .jpg image to .pdf will not turn it into a PDF document; it will simply tell Windows to try opening the image with a PDF reader, which will likely result in an error.
What You'll Need
- A computer running Windows 11.
- Administrative permissions to modify files in the target folder.
- A backup of the original file (highly recommended before changing extensions).
Step-by-Step
Note: Menu labels may differ slightly depending on your specific Windows 11 build or regional settings.
- Open File Explorer: Click the folder icon on your taskbar or press
Windows Key + E. - Enable File Name Extensions: By default, Windows 11 hides extensions. To see them, click the View dropdown menu at the top of the File Explorer window. Hover over Show, then click File name extensions so that a checkmark appears next to it.
- Locate Your File: Navigate to the folder containing the file you wish to modify. You should now see the extension (like .txt, .jpg, or .png) at the end of the filename.
- Initiate Rename: Right-click the file and click the Rename icon (the small rectangle icon in the context menu). Alternatively, click the file once to select it and press the
F2key on your keyboard. - Edit the Extension: Click into the text box. Keep the filename but delete the letters after the period (dot) and type the new extension. For example, change
notes.txttonotes.log. - Confirm the Change: Press
Enter. - Accept the Warning: A warning dialog will appear stating, "If you change a file name extension, the file might become unusable. Are you sure you want to change it?" Click Yes to confirm.
Common Mistakes
- Confusing Renaming with Converting: The most common error is thinking that changing .docx to .pdf converts the document. This only changes the label. To actually change the file type, you must use a "Save As" or "Export" function within an app.
- Deleting the Period: If you remove the dot entirely (e.g., changing
image.jpgtoimagepng), Windows will treat the file as having no extension, and it will become an "Unknown File Type." - Typing the Wrong Extension: Misspelling an extension (e.g., .jppg instead of .jpg) will prevent the associated software from recognizing the file.
- Changing System Files: Attempting to change extensions on files inside the
C:\Windowsfolder can cause system instability or prevent the OS from booting.
Tips
- Create a Copy First: Always right-click the file and select Duplicate or Copy/Paste before changing the extension. If the new extension breaks the file, you will still have the working original.
- Use "Open With": If you just want to open a file in a different program without changing the extension, right-click the file, select Open with, and choose the desired application.
- Batch Renaming: If you have many files to change, you can select multiple files, press
F2, and rename them, though this typically adds numbering to the files rather than changing all extensions at once. For bulk extension changes, specialized third-party renaming software is usually required.
Troubleshooting
If the process does not go as planned, try these steps in order:
- File won't open: If the file becomes unusable after the change, right-click it and rename the extension back to its original format.
- Extension still hidden: If you don't see the extension after following the View steps, restart File Explorer. Right-click the Start button, select Task Manager, find Windows Explorer, right-click it, and select Restart.
- Permission Denied: If Windows says you don't have permission to rename the file, ensure you are logged in as an Administrator. If the file is currently open in another program, close that program and try again.
- Wrong App Opening the File: If the extension is correct but the wrong app opens it, right-click the file, select Properties, and next to "Opens with," click Change to select the correct default application.
Frequently Asked Questions
Does changing the extension delete my data?
No, changing the extension does not delete the data inside the file. However, it may make the data inaccessible if the program you use to open it doesn't understand the original format.
Can I change a .webp image to a .jpg this way?
You can change the extension, but the file remains a WebP file internally. While some modern image viewers can handle this, many older programs will report the file as corrupted. Use an image converter for a true change.
Why is the "File name extensions" option missing?
This option is always available in the Windows 11 File Explorer View menu. If you cannot see it, ensure you are using the official File Explorer and not a third-party file management app.
Will this work for all file types?
Yes, Windows allows you to rename any file extension, provided you have the necessary permissions for that folder. Whether the file actually works after the change depends on the software you use to open it.
Is there a way to change extensions without the warning message?
The warning is a built-in safety feature of Windows to prevent accidental file corruption. It cannot be disabled through standard settings.