What changing a file type actually means
Changing a file type in Windows 11 means renaming the file extension — the three or four letters after the dot at the end of a filename. A file called budget.xlsx has the extension .xlsx (Excel spreadsheet). If you rename it to budget.txt, you have changed the extension to .txt (plain text). Windows treats these as different formats and opens them with different programs.
This is different from converting a file, which changes what is actually inside it. Renaming the extension alone does not convert the contents. If you rename a photo from photo.jpg to photo.png, Windows will try to open it as a PNG, but the file is still a JPG inside — it may not display correctly or at all. Real conversion requires a program that reads one format and saves it as another.
You might rename an extension to open a file in a different program, to match what a website or service expects, or to hide the file type from casual view. Understanding what you are actually doing prevents broken files and wasted time.
Key Takeaways
- File extensions are hidden by default in Windows 11; you must turn on "Show file name extensions" in View settings before you can rename them.
- Renaming the extension alone does not convert the file contents, only tells Windows which program to use when you open it.
- Right-click the file, select Rename, change only the letters after the dot, and press Enter to change the extension.
- If a file stops opening after you rename its extension, right-click it, choose "Open with", and pick a program that actually reads that format.
Turn on the display of file extensions
Windows 11 hides file extensions by default, so you cannot see or edit them until you turn this setting on. Open File Explorer and click the View tab at the top. On the right side, click the three-dot menu button labeled "Show". A dropdown appears. Check the box next to "File name extensions".
Once this is on, every file in File Explorer will show its full name including the extension. You will see document.docx instead of just document, and photo.jpg instead of just photo. This setting stays on until you turn it off again, so you only have to do this once.
Rename the extension by right-clicking the file
Right-click the file whose extension you want to change. A menu appears. Click "Rename" (or press F2 on your keyboard while the file is selected). The filename becomes editable — the text turns blue and a cursor appears.
Edit only the extension, the part after the final dot. If the filename is report.docx and you want to change it to a text file, change it to report.txt. Leave the name part (report) the same unless you also want to rename the file itself. Press Enter when you are done. Windows may ask if you are sure you want to change the extension — click "Yes".
What to do if the file will not open after renaming
If you renamed the extension and now the file will not open, or opens in the wrong program, the extension you chose may not match what is actually inside the file. Right-click the file and select "Open with". A list of programs appears. Choose one that reads the format you renamed it to.
For example, if you renamed a Word document to .txt and it opens as garbled text, right-click it again, choose "Open with", and select Word or another word processor. The file will display correctly because you are now using a program that understands the original format. The extension mismatch does not break the file — it just tells Windows the wrong thing about it.
If you cannot find a program that opens it, the file may have been corrupted or the extension you chose is not one Windows recognizes. Search online for "[original filename extension] to [new extension]" plus "converter" to find a program that can actually convert between the two formats, not just rename the extension.
Common extensions and what they mean
| Extension | File Type | Common Programs |
|---|---|---|
| .txt | Plain text | Notepad, Word, any text editor |
| .docx | Word document | Microsoft Word, Google Docs |
| .xlsx | Excel spreadsheet | Microsoft Excel, Google Sheets |
| Portable document | Adobe Reader, Edge, Chrome | |
| .jpg or .jpeg | Photo or image | Photos app, Paint, any image viewer |
| .png | Image with transparency | Photos app, Paint, any image viewer |
| .mp3 | Audio file | Windows Media Player, Spotify, VLC |
| .mp4 | Video file | Movies app, VLC, Windows Media Player |
Why you might want to change a file extension
You might rename an extension to open a file in a program that does not recognize the original format. Some older programs only read .txt files, so you rename a .docx to .txt so they can open it (though you lose formatting). You might rename a file to hide its type from someone browsing your computer — renaming photo.jpg to photo.bak makes it invisible to the Photos app.
Websites and services sometimes require specific extensions. A form might ask for a .csv file (comma-separated values) when you have a spreadsheet saved as .xlsx. You can rename it to .csv and upload it, though the contents stay the same — the website just needs the extension to recognize the format.
Do not rename an extension to bypass security. Renaming virus.exe to virus.txt does not make it safe — it is still executable code, and Windows or your antivirus will still block it if it is actually dangerous. The extension is just a label.
Frequently Asked Questions
Can I change a file extension without turning on "Show file name extensions"?
No. Without this setting on, you cannot see the extension in the filename, so you cannot edit it. You must turn on "Show file name extensions" in the View menu first. Once it is on, you can rename any file and edit its extension.
Will changing the extension convert my file to a different format?
No. Renaming the extension only changes the label Windows uses to decide which program opens the file. The contents inside stay the same. To actually convert a file from one format to another, you need a program that reads the original format and saves it as the new one — for example, using Paint to open a JPG and save it as PNG.
What if I change the extension and the file disappears?
It did not disappear. Windows may have hidden it because the new extension is not recognized, or because you renamed it to a format that does not show in File Explorer by default. Turn on "Show all files" in the View menu, or search for the filename in the search box. Once you find it, you can rename the extension back or choose the correct program to open it.
Can I change multiple file extensions at once?
Windows does not have a built-in batch rename tool for extensions. You can select multiple files, right-click, and rename them, but you can only rename one at a time. For renaming many files at once, read a free batch rename tool like Bulk Rename Utility, which lets you change extensions on dozens of files in one operation.
Is it safe to change a file extension?
It is safe to rename the extension itself — you are just changing a label. The original file is not deleted or damaged. However, if you rename it to an extension that does not match what is inside, the file may not open or may open incorrectly. Always keep a backup of important files before experimenting with extension changes.