The quickest way to change a file type
To change a file type in Windows 10, right-click the file, select Rename, and change the three-letter extension at the end of the filename. For example, change document.txt to document.docx. Windows will ask you to confirm the change — click Yes. This works for most file types, though some programs may not recognize the file until you also convert the contents inside.
The extension is the part after the final dot in the filename. If you do not see the extension, you need to turn on the setting that shows it. Open File Explorer, click the View tab at the top, then check the box next to File name extensions. Now extensions will appear on all your files.
Changing the extension alone does not always convert the file's contents — it just tells Windows which program to open it with. If you need the file to actually work in the new format, you may need to open it in the correct program and save it as the new type instead.
Key Takeaways
- The file extension is the three-letter code after the final dot in a filename, and you can change it by right-clicking and selecting Rename.
- You must turn on File name extensions in the View tab of File Explorer before you can see or edit extensions.
- Changing the extension tells Windows which program to use, but does not convert the file's actual contents unless you save it in the new program.
- Some file types cannot be safely changed — changing a .exe or system file extension can break programs or your computer.
Turning on file extensions so you can see them
By default, Windows 10 hides file extensions to keep filenames cleaner. This means you see document instead of document.txt. To change a file type, you need to see the extension first.
Open File Explorer by pressing Windows key + E on your keyboard. At the top of the window, click the View tab. In the ribbon that appears, look for a checkbox labeled File name extensions — it is usually on the right side. Click the checkbox to turn it on. From now on, all files will show their extensions.
Once extensions are visible, you can proceed to rename any file and change its type. The setting stays on until you turn it off again, so you only need to do this once.
Renaming the extension step by step
After you can see file extensions, changing a file type takes just a few clicks. Right-click the file you want to change. A menu will appear with several options. Click Rename — the filename will become editable and highlighted in blue.
Use your keyboard to move to the end of the filename and change only the extension. For example, if the file is photo.jpg and you want it to be photo.png, delete jpg and type png. Leave the dot and the filename itself unchanged. Press Enter when you are done typing.
Windows will show a warning asking if you are sure you want to change the extension. Click Yes to confirm. The file type is now changed in Windows' eyes — the icon may change, and double-clicking it will try to open it with a different program.
When changing the extension is not enough
Simply changing the extension does not always make a file work in its new format. For example, if you rename a Word document from .docx to .pdf, Windows will try to open it with a PDF reader, but the file's contents are still in Word format — the PDF reader will not understand it.
To truly convert a file, you need to open it in the correct program and save it as the new type. Open the file with its original program (Word, Photoshop, VLC, or whatever created it). Then go to File > Save As, choose the new file type from the dropdown menu, and click Save. The program will convert the contents and create a new file in the format you chose.
This matters most for documents, images, and videos. Changing a text file from .txt to .csv usually works fine because both are plain text. But changing a .jpg image to .png by renaming alone will not actually convert the image — you need to open it in an image editor, then save it as PNG.
File types you should never change
Some files should never have their extensions changed, even if you know what you are doing. System files that Windows needs to run — usually found in the Windows folder — will break your computer if you rename them. Program files ending in .exe should not be renamed unless you are moving them to a new location and know exactly what you are doing.
If you are unsure whether a file is safe to change, do not change it. Files in your Documents, Pictures, or Downloads folders are almost always safe. Files in Program Files, Windows, or AppData folders are usually system files and should be left alone.
If you accidentally change a file type and now it will not open, you can undo the change by renaming it back to the original extension. Right-click the file, select Rename, and change the extension back to what it was before.
Using File Explorer to change multiple file types at once
If you have many files to rename, you can select them all at once and change them together. Open File Explorer and navigate to the folder containing the files. Click the first file, then hold Ctrl and click each additional file you want to change. All selected files will highlight in blue.
Right-click one of the selected files and choose Rename. Type the new name — Windows will rename all selected files with that name, adding a number in parentheses to each one to keep them separate. This works well for changing extensions on batches of files, though you will need to rename each file individually if you want them to have different names.
For more control, you can use the Rename feature in the File menu instead. Select your files, click the Home tab, then click Rename in the ribbon. This gives you the same result as right-clicking.
What to do if a file will not open after you change its type
If you changed a file's extension and now it will not open, the most likely reason is that the file's contents do not match the new extension. The program you are trying to open it with does not recognize the format inside.
First, try changing the extension back to the original. Right-click the file, select Rename, and restore the old extension. If the file opens again, you know the problem was the extension change. To properly convert the file, open it with its original program and use Save As to save it in the new format.
If changing the extension back does not help, the file may have been corrupted before you renamed it. Try opening it with a different program — right-click the file, select Open with, and choose a different application from the list. If nothing works, the file may be permanently damaged and you may need to use a backup copy.
Frequently Asked Questions
Can I change a file from .jpg to .png just by renaming it?
Renaming the extension will make Windows treat it as a PNG file, but the image data inside is still in JPG format. The file may not open correctly. To truly convert a JPG to PNG, open the image in an image editor like Photos or Paint, then use Save As and choose PNG from the file type dropdown.
Why do I not see file extensions on my files?
Windows 10 hides extensions by default. Open File Explorer, click the View tab, and check the box next to File name extensions. This setting applies to all folders and stays on until you turn it off.
What happens if I change a .exe file's extension?
Changing a .exe file's extension will break the program. Do not rename executable files unless you are moving them and know exactly what you are doing. If you accidentally renamed a .exe file, change the extension back immediately.
Can I change a file type without seeing the extension?
No — you must turn on File name extensions in File Explorer's View tab before you can edit the extension. Once it is on, you can rename any file and change its type.
Will changing the extension delete my file?
No. Changing the extension renames the file but does not delete it. The file and all its contents stay in the same location. If you change your mind, you can rename it back to the original extension.