The fastest way to change a file type
The quickest method is to rename the file and swap out the extension — the three or four letters after the dot at the end of the filename. Right-click the file, select Rename, change the extension (for example, from .txt to .docx), and press Enter. Windows will ask if you're sure; click Yes. This works for most file types, though some programs won't open a file unless it has the correct extension.
This approach changes only the label Windows sees, not what's actually inside the file. A text file renamed to .jpg will still be text — it just tells Windows to try opening it with an image viewer. The file's contents don't transform. If you need the file to actually work as a different type (a Word document that functions as a Word document, not just looks like one), you'll need to convert it instead, which is a different process.
Key Takeaways
- Renaming the file extension is the fastest change, but it only tells Windows what program to use — it doesn't convert the file's actual contents.
- You can show file extensions in Windows 10 by opening File Explorer, clicking View, and checking the File name extensions box.
- Some file types cannot be safely renamed because the program that opens them checks the extension before reading the contents.
- Converting a file to a truly different type (like .txt to .docx) requires opening it in the target program and saving it with the new format.
- If Windows doesn't recognize the extension, right-click the file, choose Open with, and pick the program you want to use.
Showing file extensions so you can see what you're changing
By default, Windows 10 hides file extensions, so you see "Document" instead of "Document.txt". To see and edit the extension, you need to turn this setting on. Open File Explorer, click the View tab at the top, and check the box next to File name extensions. From that point forward, every file will show its extension.
Once extensions are visible, you can rename them directly. Right-click any file, click Rename, and the entire filename including the extension becomes editable. Change only the extension part (the letters after the final dot), leave the rest of the name alone, and press Enter. This is safer than editing the whole name at once because you're less likely to accidentally delete part of the original filename.
When renaming the extension actually works
Renaming works best for files that are already in a format the target program understands. A .txt file renamed to .csv (comma-separated values) will open in Excel because both are plain text — Excel just reads the commas as column dividers. A .jpg image renamed to .png will still display in image viewers because both are image formats and contain the same visual data.
Renaming does not work when the file's internal structure is incompatible. A .txt file renamed to .docx won't function as a real Word document because Word expects specific formatting codes that plain text doesn't contain. The file will open in Word, but it won't have Word's features, and you may see error messages. If you need a file to truly work as a different type, you must open it in the target program and save it using that program's native format.
Converting a file to a genuinely different type
To actually convert a file, open it in the program associated with the format you want. If you have a .txt file and need it as a .docx (Word format), open the file in Microsoft Word, then click File > Save As. In the dialog that appears, change the filename if you want, then click the Save as type dropdown and select Word Document (.docx). Click Save. Windows now has a true Word document with all of Word's formatting capabilities.
This process works for most common conversions: images (open in Paint or an image editor, save as a different format), audio files (open in a media editor, export as a different audio type), and documents (open in the target program, save as that format). The key is that the program itself handles the conversion, not just the filename change. Some conversions may lose information — saving a complex image as .jpg instead of .png, for example, reduces the image quality — so check the program's settings before you save.
What to do if Windows doesn't recognize the file type
If you rename a file to an extension Windows doesn't know, or if you're not sure which program should open it, right-click the file and select Open with. A menu appears showing programs installed on your computer. Pick the one you want to use. If the correct program isn't listed, click More apps to see additional options, or click Look for another app on this PC to browse your hard drive.
You can also set a default program for an extension so that type always opens with your chosen program. Right-click a file with that extension, select Open with > Choose another app, pick your program, check the box that says Always use this app to open [extension] files, and click OK. From then on, double-clicking any file with that extension will open it in your chosen program.
Why some files won't change type even after renaming
Some programs check the file extension before they'll open a file, as a safety measure. If you rename a .exe file (an executable program) to .txt, Windows won't run it as a program — it will try to open it as text, which will show gibberish. This is intentional protection. Similarly, some media players won't play a video file unless it has a recognized video extension, even if the file itself is valid.
If a file won't open after you rename it, undo the change by renaming it back to the original extension. Then try opening it with a different program using the Open with method instead. If the file still won't open, the file itself may be corrupted or in a format that program doesn't support, which renaming cannot fix.
File type changes and compatibility issues
Renaming a file can sometimes cause compatibility problems. A .doc file (older Word format) renamed to .docx (newer Word format) might open in Word, but newer features won't work correctly. A .jpg image renamed to .bmp will display in image viewers, but the file size won't change — you're not actually converting the image, just telling Windows to treat it differently.
Before you rename a file, think about whether you need the file to actually work as the new type or just open in a different program. If you just want to view it in another program, renaming the extension is fine. If you need the file to have the features and structure of the new type, use the target program's Save As feature instead. This prevents confusion later when the file doesn't behave the way you expect.
Frequently Asked Questions
Can I change a file type without renaming it?
Not directly. The file extension is how Windows knows what type a file is. You can right-click the file and choose Open with to open it in a different program without renaming it, but the file itself remains the same type. If you want to permanently change the type, you must rename the extension or use the target program's Save As feature.
What happens if I rename a file and Windows doesn't recognize the new extension?
Windows will show a warning asking if you're sure you want to change the extension. If you proceed, the file won't open by double-clicking it. Right-click the file, select Open with, and choose the program you want to use. You can also set that program as the default for that extension so it opens automatically next time.
Will renaming a .docx file to .txt make it a text file?
It will tell Windows to open it as text, but the file's contents won't change. A .docx file contains formatting codes that will display as gibberish in a text editor. To create a real text file, open the .docx in Word, click File > Save As, change the type to Plain Text (.txt), and save it. Word will strip the formatting and save only the words.
Can I change multiple files' types at once?
You can rename multiple files at once, but it's risky because you might accidentally change the wrong part of the filename. Select all the files you want to change, right-click, and click Rename. Windows will rename the first file; when you press Enter, it will number the rest automatically. For safer bulk changes, convert files one at a time using the target program's Save As feature.