The quickest way to change a file extension
To change a file extension in Windows 11, right-click the file, select Rename, and edit the text after the period at the end of the filename. For example, change document.txt to document.docx. Press Enter when you're done. Windows will ask you to confirm the change — click Yes.
This method works for any file type, but you need to see the extension first. By default, Windows 11 hides extensions for known file types. If you don't see the period and letters at the end of your filename, you'll need to turn on the display of extensions before you can rename one.
Changing an extension doesn't convert the file to a new format — it only changes the label. A text file renamed from .txt to .docx will still be plain text inside, and Word may refuse to open it. The file's actual contents stay the same; only the name changes.
Key Takeaways
- Right-click any file, select Rename, and change the letters after the period to modify the extension.
- Windows 11 hides file extensions by default, so you must turn them on in File Explorer settings before you can see them to rename.
- Changing the extension only renames the file — it does not convert the file to a new format or change what's inside.
- Some files are locked by Windows and cannot be renamed; these include system files and files currently open in another program.
Turn on the display of file extensions
Open File Explorer and look at the top menu bar. Click the View tab. On the right side, you'll see a checkbox labeled File name extensions — click it to turn it on. From now on, you'll see the full filename including the extension for every file in that folder.
This setting applies to all folders in File Explorer, not just the current one. Once you turn it on, extensions remain visible everywhere. If you ever want to hide them again, return to the same menu and uncheck the box.
If you don't see a View tab at the top, your File Explorer window may be in a different layout. Look for three horizontal lines (called a menu button) in the top-left corner, click it, and select View from the dropdown.
Rename a file extension step by step
First, make sure file extensions are visible using the steps above. Then locate the file you want to rename and right-click it. A menu will appear with several options — select Rename (or press F2 on your keyboard as a shortcut).
The filename will now be highlighted and ready to edit. Use your keyboard to move the cursor to the extension — the part after the period. Delete the old extension and type the new one. For example, if the file reads photo.jpg and you want to change it to photo.png, delete jpg and type png.
Press Enter when you're finished typing. Windows will display a warning asking you to confirm the change. The message will say something like "If you change the file extension, the file may become unusable." Click Yes to proceed. The file extension is now changed.
When Windows won't let you rename a file
Some files cannot be renamed because Windows is using them or protecting them. System files — files that Windows itself needs to run — are locked and cannot be renamed without special permissions. If you try to rename a system file, you'll see a message saying "You don't have permission to rename this file."
Files that are currently open in another program also cannot be renamed. If you have a document open in Word, you cannot rename that document file until you close Word. Close the program, then try renaming again.
If you need to rename a system file, you'll need to run File Explorer as an administrator. Right-click the File Explorer icon on your taskbar and select Run as administrator. Then navigate to the file and try renaming it again. Be very careful with system files — renaming them incorrectly can cause Windows to stop working properly.
Understanding file extensions and format conversion
A file extension is a short code at the end of a filename that tells Windows and other programs what type of file it is. The extension .txt means plain text, .jpg means an image, and .mp3 means an audio file. Windows uses the extension to decide which program should open the file when you double-click it.
Changing the extension does not change what the file actually contains. If you rename a photo from photo.jpg to photo.png, the file is still a JPG image inside — you've only changed the label. When you try to open it, the program you've told Windows to use may refuse to open it, or it may open it but display an error.
If you need to convert a file from one format to another — for example, turning a JPG image into a PNG — you need to use a conversion tool or the original program that created the file. Most programs have a Save As or Export option that lets you save the file in a different format. This actually converts the file's contents, not just the name.
Common file extensions and what they mean
Knowing what different extensions represent helps you avoid renaming files incorrectly. Here are the most common ones you'll encounter:
| Extension | File Type | Common Program |
| .txt | Plain text | Notepad |
| .docx | Word document | Microsoft Word |
| Portable document | Adobe Reader | |
| .jpg | Image (photo) | Photos app |
| .png | Image (with transparency) | Photos app |
| .mp3 | Audio file | Media Player |
| .mp4 | Video file | Movies & TV app |
| .zip | Compressed folder | File Explorer |
If you're unsure what a file extension means, search for it online before renaming. This prevents accidentally breaking a file you need.
Frequently Asked Questions
Can I change multiple file extensions at once?
Windows 11 doesn't have a built-in tool to rename multiple files at once by extension. You must rename each file individually. However, third-party tools like Bulk Rename Utility exist and can rename many files in a batch, but these require downloading and installing separate software.
What happens if I change a file extension and the file won't open?
The file itself is not damaged — you've only changed the name. Right-click the file, select Rename again, and change the extension back to what it was originally. The file will open normally once the correct extension is restored.
Can I remove the file extension entirely?
Yes, you can delete the period and extension completely, leaving only the filename. However, Windows may not know which program to use to open the file. It's better to keep an extension so Windows knows what type of file it is.
Do I need to include the period when I type the new extension?
Yes, the period is part of the extension. When you rename a file, include the period before the new extension letters. For example, type .docx, not just docx.
Will changing the extension affect the file's contents or size?
No. Renaming the extension does not change what's inside the file or how much space it takes up on your computer. Only the label changes, not the actual data.