How to change a file type using windows
Eleanor Gray
Published Mar 29, 2026
With our increasing use of computers in our daily life, it may get necessary even for a simple user to change the file type of a file from one format to another. Each file format has their own properties. For example a ‘.txt’ file will probably get opened by the text editor while an ‘html’ file will get launched in your default browser.
File format analogy
Even though the contents inside the files might be the same, the file type matters a lot. The process of changing file type is quite simple and straightforward. However, there are some cases whereby changing the file type, the file becomes unusable. Hence it is recommended that you know exactly what you’re doing and also make an additional copy of the file.
Showing file extensions and changing the file format
By default, Windows doesn’t have the file format displayed alongside every file. For example, if a file is a text file, its name wouldn’t display ‘ap puals.txt’. Instead, it will only display ‘appuals’. First, we will enable the file extensions and then through basic rename, we will change the file extension. You can also choose to rename files in bulk if there are a lot of files that you need to change the type for.
- Press Windows + E, click View from the top-most ribbon. Now click Options and select the option Change folder and search options.
Change folder and search options – Windows Explorer
- Now uncheck the option Hide extensions for known file types. Now all the files will have their file extensions displayed alongside their names.
Enabling File Extensions – Windows Explorer
- Now navigate to the file for which you want to change the file format. Right-click on it and select Rename.
- Now change the file’s extension to the extension of the type which you want to change into. In this example, we change a ‘text’ file to a ‘python’ file. The extensions for a text file are ‘txt’ and for python ‘py’.
Process of changing a file type
Here is a list of common file extensions used in the world of computing. We have listed them according to their type.
Last Updated On: July 4, 2020
If you have a file that you need to be changed to a different format, we will show you how to change the file type in Windows 10. There will be no need to install any additional software, Windows has everything you need to do the job.
It’s just a simple case of renaming its extension. It’s the last three characters at the end of a filename.
But before you can change the type, you will need to be able to edit the extension. It’s a simple setting in File Explorer.
I will also recommend before continuing, to make a copy of your file to work on, so you can make sure you don’t lose anything you want to keep in case something goes wrong.
An example of why you may want to change a file type is due to software making backups.
Now and then a program will make a backup of it and then one of the characters on the extension of the filename gets replaced with an underscore. Which would look like: filename._xe instead of filename.exe.
Let’s go through the steps in order to change the type.
How to change a file’s type
- Open WindowsFile Explorer.
- Locate it by navigating to it by clicking various locations in the left-hand pane.
- Move your mouse pointer over the ‘View’ button on the top menu area. Press your left mouse button.
- Make sure ‘File name extension’ is checked.
- Move your mouse pointer to hover over it and press the right mouse button.
- Move your mouse pointer to hover over the ‘Rename’ item in the contextual menu and press the left mouse button.
- Edit the last three characters at the end of the filename (everything after the last period on the end) to the type you want.
- Press enter to save the change.
You have successfully changed the file type.
If for some reason you are unable to see the extension, please refer to our other article showing you how to display file extensions.
How to change programs associated with the file type
- Press your Windows button on your keyboard.
- Move your left mouse button to hover over the gear button above the power button. Press your left mouse button.
- Type in ‘Choose a default app for each type in the search box.
- Move your mouse pointer to hover over the ‘Choose a default app for each type of file’ item. Press your left mouse button.
- Scroll down until you have seen the type of file you wish to change the default app for.
- Move your mouse pointer to hover over the app you wish to change and press the left mouse button.
- Choose the app you want to open that type of file in the future.
Conclusion
Now you know how to change file types and their associated program.
So you won’t have the incorrect program opening up whenever you click on it.
Marlo is a full-time professional computer programmer, electronics engineer and computer technician. Computers are his passion and he loves to help anyone wanting to know more about them.
Do you want to change a file extension in Windows 10? Fine, Just have a glance at this article wherein the step wise step implementation of the procedure, to change a file extension in Windows 10, is explained.
What is File Extension?
A File extension defines the type of the file. Basically, it is the suffix at the end of the file name, for example: ‘quehow.pdf’ , here “.pdf” is the extension for the PDF format. In the same way you can use .html, .jpg, .tiff, .png, etc for different scenarios.
Steps to Change a File Extension in Windows 10
Step 1: Select a file which you want to change, as I have selected the “New” file. Make sure that you have a backup of that file. Here, you can’t see the extension of the file because it is hidden. So, in order to enable its file extension go to the next step.
Step 2: Go to the ‘Start Menu’ and click on “Control Panel”.
Step 3: Select “Appearance and Personalization”.
Step 4: Now go to the “File Explorer Options” and after clicking on it, you will see a popup window.
Step 5: Here, uncheck the “Hide extensions for known file types” radio button and then click on “Apply” .
Step 6: Your File extension is now visible.
Step 7: Moving further, Just Right click on that file and then select the “Rename” option.
Step 8: Then type the extension in which you want to convert your file, as I have typed “html” and make sure that the extension you are choosing is compatible.
Step 9: A Dialog box will appear, read it and click on “Yes”.
Step 10: Your file is now converted into the html format. Open that file to check whether its content is visible or not.
Sometimes due to the unacceptability by the program in which it is converted, its content is not properly visible.
That’s all friends. Keep reading.
This article outlines how to change a file extension in Windows. For example, you might want to rename a TURF file called MCALL_0110_4865_6500_2074._ip to MCALL_0110_4865_6500_2074.zip
These instructions are for Windows 7 but the same basic process applies to most versions of Windows.
By default, Windows hides file extensions. In order to change them, you must first unhide file extension to make them visible so they can me changed. Then you can change it.
If you can already see file extensions on your computer, skip to Step 2
How to show file extensions in Windows 7
Step 1: If you can’t see the file extension, Open Windows Explorer and click on the Organize button towards the top left. Then choose Folder and Search Options, then click the View tab. Uncheck the box titled “Hide extensions for known file types” like so:
Click OK. Now you should be able to see the file extension.
How to show file extensions in Windows 8
Step 1: It’s simple to turn file extensions on and off in Windows 8. Simply open a File Explorer window (the new name for Windows Explorer) and click the View tab.
Now check the box next to File name extensions. If the box is check, extensions will be shown. If unchecked, they won’t. This is the opposite way the tickbox works in Windows 7 and Vista.
How to show file extensions in Windows 10
Step 1: Open the File Explorer by clicking on the Windows Start button and selecting the File Explorer icon as shown below.
Click the View tab in File Explorer and then click the Options button (or click the drop down menu and click Change folder and search options) as shown below.
The Folder Options dialog box is displayed. Click the View tab at the top of Folder Options as shown below
To view file extensions, uncheck the Hide extensions for known file types option.
Click OK when done.
Step 2: Right-click the file name and select Rename (or left-click and hold down the button for one second). Enter the new extension like so:
After entering the new extension hit the Enter (return) key. Windows will give you a warning that the file may not work properly. This is quite safe—remember that you can restore the original extension if anything goes wrong.
It’s also possible that you might get another message telling you that the file is “read-only”. In this case either say yes to turning off read-only or right-click the file, select Properties and uncheck the Read-only box.
If you do not have permission to change the file extension, you may have to log in as Administrator. Another option is to make a copy of the file, rename the copy and then delete the original.
A File System on a drive decides how data is stored and read from a drive. Think of it as a method for ordering information. If you were to go to a library, the books there will likely be sorted using the Dewey Decimal System. A file system is somewhat similar to this concept. There aren’t a whole lot of file systems but there are enough of them for users to have to stop and think which one they want to use. If you have a drive that’s on a certain file system, and you need to change it to another, you can easily do so on Windows 10.
Change file system of drive
In order to change the file system of a drive on Windows 10, you have two different built-in methods that you can use however, be warned. When you change the file system of a drive, it first erases everything on it. Make sure you back up data before you proceed. You should also know that you cannot change the file system of drive that you’ve booted form e.g., if you’re running Windows 10 from the C drive, you won’t be able to change its file system.
Change file system of drive – Drive format
Connect the drive that you want to format to your Windows 10 PC. Open File Explorer and go to This PC. Right-click the drive and select ‘Format’ from the context menu.
A new window will open with a dropdown for ‘File System’. Open it, and select one of the supported file systems that Windows 10 can convert to. If you want, you can uncheck the ‘Quick Format’ option. Click Start and the drive’s file system will be changed. The process will take some time to complete depending on the size of the drive, and whether or not you choose to disable Quick Format.
Change file system of drive – Disk Management
Connect your drive to your PC. Open Windows Search and enter Disk Management. Select the ‘Create and format hard disk partitions’ result.
In the Disk Management app, right-click the drive that you want to change the file system for. From the context menu, select ‘Format’.
In the window that opens, open the File System dropdown and select which file system you want to use for the drive. Click OK, change other settings/preferences for the drive if you need to, and then allow the format and conversion to complete.
On Windows 10, you can convert to the NTFS, exFAT, and FAT32 though the options may differ based on the type of drive that you’re looking to change the file system of. There are other file system besides these three such as Apple’s own proprietary Apple File System. You will need a Mac to convert a drive to this file system, or a paid app.
Hello, I downloaded a Audio pack while on windows 8.1 and I noticed after installing windows 10 I could no longer open the file. It displayed an error message that stated: “Windows Media Player cannot play the file. The Player might not support the file type or might not support the codec that was used to compress the file.” I did some digging around the community and have yet not an answer. :/
Replies (2)
Thank you for posting your query in Microsoft Community.
We regret for the inconvenience caused.
Provide us the following information to assist you better.
- How are you trying to play the file? Is it from the file that is saved on the computer or from any media source or from online?
- What is the file format of the music files which you are unable to play?
- Does this issue occur when you try to play/download a particular format of file?
Windows Media Player cannot play the file. The Player might not support the file type or might not support the codec that was used to compress the file. You might encounter this error message for one of the following reasons:
a) The file type is supported by the Player, but the file was compressed by using a codec that is not supported by the Player.
b) The file might have been encoded by using a codec that is not supported by Windows Media Player. If this is the case, Windows Media Player cannot play the file.
Let’s try these steps and check if it helps.
Method 1:
You may check if the file format of the music files are supported by Windows media player using the below link.
Note: If the file type you tried to play is included in this table, the file might have been encoded by using a codec that is not supported by Windows Media Player. If this is the case, Windows Media Player cannot play the file.
Method 2:
additionally, you may also download & install the required codec to play the music files.
Please let us know if you face any issues with Windows.
@bradyjgavin
April 10, 2020, 9:00am EDT
You can rename files on Windows 10 in many ways. If you’re still right-clicking and selecting “Rename” every time you want to change a file’s name, we’ve got some tips to make it faster.
Rename Files and Folders Using File Explorer
Windows 10’s File Explorer is a powerful tool. Did you know that there are four separate ways to rename a file or folder built-in? There’s a keyboard shortcut that lets you rename a file or folder without having to click a mouse, too.
All methods using File Explorer to rename a file or folder work identically for both.
Using the Home Menu
Fire up File Explorer by pressing Windows+E, and navigate to a directory with either a file or folder to rename.
Click on a file or folder to select it, and click “Rename” from the Home menu at the top of File Explorer.
Once the name is selected—if you’re renaming a file, not the file extension—you can start to type a new name. If you’ve configured File Explorer to show file extensions, make sure only to change the file name.
When you’re done typing, press Enter—or just click somewhere else—to save the new name.
Using Two Single Clicks
Fire up File Explorer by pressing Windows+E, and navigate to a directory with either a file or folder to rename.
Select the file with a single click, pause for a second, and then click one more time.
After the name is highlighted, type out a new name, and press Enter to save the changes.
Using the Context Menu
To rename a file from the context menu, right-click a folder, and click “Rename” from the context menu that appears.
With the name of the folder highlighted, start typing out a new name, and press Enter when you finish.
Using a Keyboard Shortcut
If you prefer to use a keyboard shortcut, you can use one to highlight a file or folder’s name so you can rename it without using a mouse.
Select a file or folder with the arrow keys, or start typing the name. Once the file is selected, press F2 to highlight the name of the file.
After you type in a new name, press the Enter key to save the new name.
Rename Files and Folders with Command Prompt
If you feel more comfortable in the Command Prompt, you can use the ren command to rename files or folders with ease.
One of the fastest ways to open a Command Prompt in the desired directory is from File Explorer. First, open File Explorer and navigate to the destination. Click the address bar and type “cmd” in, and press the Enter key.
To rename a file or folder, you can use the following command—if you’re renaming a folder, just omit the file extension:
Although the quotes aren’t mandatory, they’re required if either of the current or new names has a space in them. For example, to rename the file “Home Movies.ogv” to “First Birthday.ogv” you would use the following command:
Rename Files and Folders with PowerShell
Windows PowerShell is even more powerful and flexible than Command Prompt when it comes to renaming files and folders in a command-line environment. While we’ll only scratch the surface of naming your files, you can do some really powerful things, including piping cmdlets together to batch replace characters in a filename.
The quickest way to open a PowerShell window at your desired location is to first open the folder in File Explorer. Once there, click File > Open Windows PowerShell, and then click “Open Windows PowerShell.”
Open Windows PowerShell > Open Windows PowerShell to open Windows PowerShell.” width=”650″ height=”371″ src=” onload=”pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);” onerror=”this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);”/>
First, let’s look at renaming a single file. For that, you would use the following syntax:
So, for example, to rename a file from “SampleVideo.mp4” to “My Video.mp4” you would use the following cmdlet:
PowerShell isn’t just a shell. It’s a powerful scripting environment you can use to create complex scripts for managing Windows systems much more easily than you could with the Command Prompt. If you want to learn how to use PowerShell cmdlets, we’ve put together a list of the best ones to get you started.
Using Command Prompt you can easily change File Extensions.
File name extensions can be considered as a type of metadata. It is the sub-string which occurs after the dot character of any digital file. From the file extension of a file we can understand how to handle the file. Like if a file has .jpg extension we understand that, the file is an image, so we can use any image viewer to open it. Microsoft Windows Operating system also differentiates different file types (Video, Audio, Image, System Files etc.) according to the file extensions.
Sometimes you may need to change file extension of a file. Suppose you want to create an .htm file. You can create it by typing the entire code in a .txt file and followed by changing the extension to .htm. Sometimes changing of file extensions help to fool a system to pass restricted file formats. Like, G mail do not support .exe attachments. Instead of putting .exe files within .zip or .rar you can change the extension to .exe1 or anything else and can send it through G mail. At the other end, .exe1 can be changed to .exe to execute properly. General procedure to change file extensions has already been discussed in this site. You can also change file extensions using Command Prompt. It is much less time consuming.
Steps to Change File Extensions Using Command prompt
1. Press Windows Key + C to go to Windows Charms Bar-> Go to Apps Search-> type “cmd”. Search result will appear in left pane.
2. Right-click on it and select Run As Administrator to open command prompt as the Administrator. You may be notified by UAC. Click “Yes” to confirm.
3. In the command prompt type the address of the directory where the file is located. E.g. if your destination drive is E, then type E: in the command prompt and hit Enter.
4. Now type the following command
ren filename.extension newfilename.newextension
Here filename means your current filename, extension is the current file extension, newfilename represents the new name assigned in place of the old name which is optional, new extension is the new file extension.
Remember to provide blank spaces .
About Debaleena
Happiness is that best therapy. Use it to heal yourself and then others!
Although any file can be renamed, it doesn’t mean that, after it is renamed, it can be opened with any program. For example, you can rename a .BAT to a .EXE, however it will not run because a .EXE file is a compiled file. If you want to change the file type, it must be converted or saved as the destination file type, with the appropriate file extension.
Below is a listing of how to change the file extension for each of the major IBM compatible operating systems.
Windows users
Before renaming a Windows file extension, you must have show file extensions enabled. By default, this option is disabled.
Assuming the file is named myfile.txt, we rename it to myfile.doc.
- Right-click the file (not the shortcut).
- Select Rename in the menu
- Erase the .txt from myfile.txt.
- Type .doc (it is important to have the dot to separate the file name and file extension).
Renaming multiple file extensions
If you want to rename or change the file extensions of multiple files, we recommend you enter the Windows command line and follow the steps below.
MS-DOS and Windows command line users
Change the directory to the location of where the file is located. In our example below, we rename the file myfile.txt to myfile.doc.
Unless the file already exists, no message is displayed or an “OK” message indicates the file was renamed.
- See the move command page for more information about this command.
Renaming multiple file extensions
If you want to rename multiple files that have the same file extension without the aid of a different program, we recommend you follow the steps below.
The example below we rename all the files in the current directory that end with .txt to .old.
In our example, we are using an asterisk as a wildcard that tells the command line that we want every file name.
Unix and Linux users
Change the directory to the location of where the file is located. In our example below, we rename the file myfile.txt to myfile.htm. Additionally, this example is done from the shell and not a GUI.
If the operation is successful, you will be returned to the shell prompt.
- See the mv command page for more information on this command.
Associating a file type with a program can be done using several ways such as using the Open with… dialog and selecting the “Always use this app to open” checkbox, or via Default Programs or Default Apps. While you can set or change associations using GUI, there is no option provided to delete an existing file type association. This post tells you how to remove file type associations using the Registry Editor.
Remove a File Type Association Using the Registry Editor
Let’s say you’ve incorrectly associated a file type named .bak, and want to remove the association. Use these steps to remove the file association settings (for .bak) from the registry.
- Start the Registry Editor ( regedit.exe ), and go to this branch:
- Note down the (default) value data in the right-pane. It’s the ProgID associated with that file type.
- Right-click the key .bak, and choose Delete. Click Yes to confirm.
- Go to the following HKEY_CURRENT_USER keys and delete the .bak key.
This should remove the file association settings for .bak file type. The deleted file type should now be treated as unknown by Windows; which is exactly what we wanted.
Delete the Progid as well (optional)
If you also want to clean up ProgID key for that file type, which you noted ( bak_auto_file ) in Step #3 above, you must do so only if that ProgID bak_auto_file is not used by any other file type. This is important.
How to find if any other file type(s) is mapped to the same ProgID? Do a search (for Data containing the ProgID string – match whole string only) in the Registry Editor. Or run one of the commands given below to find it out.
This time, let’s take the example of txtfile Progid. To view the list of file types that use the txtfile ProgID, run:
Example: txtfile (progid used for .txt)
In the above case, the following file extensions are still using the txtfile progid:
So, you should not remove the HKEY_CLASSES_ROOTtxtfile registry key, as it would break the association settings for file types that use this key.
Now, let’s use the above method and find out if any other file extensions are using the bak_auto_file Progid. Running the command for bak_autofile , you get this:
As no other file types are using this ProgID, you can safely delete this key:
Summary
To remove the file association settings for .bak file type, we’ve deleted the following registry keys:
That’s it! Hope this guide helped you delete an unwanted or incorrect file type association on your Windows computer.
File associations are a vital part of a functioning Windows experience, so making sure that the right file types automatically open with the right software is a must. But what if you assign the wrong file association or just want to change it to a better program? Windows 10 has proven more restrictive than past versions in terms of file associations and can be particularly fiddly if you just want to remove an association altogether.
Luckily, we have the answers, showing you how to change, reset and replace file associations in Windows 10.
How to Set and Change File Associations
First up, the easy stuff. You’ve probably been asked a thousand times by Windows when opening a file whether you want to associate it with a certain program. Maybe you just pick one of the suggested programs, and that’s the end of that.
But Windows’ suggested programs aren’t always the right ones, so how do you pick exactly what you want?
There are two ways to do it:
First, you can right-click a file whose association you want to change, then select “Open With.” If the program you want to open it with isn’t there, click “Choose another app” at the bottom of the window.
In the new box you’ll see much the same list as before, but scroll down and click “More apps” for an extended list to appear. Select the app you want to associate the file with and tick “Always use this app to open .xxx files.”
If the app you want doesn’t appear in the list, don’t bother with the option “Look for another app on this PC.” That will only open the file with your chosen program on a one-off basis.
To properly manage your file associations, click the Start button, type “default app settings” and click on it in the search results. Here you’ll see an overview of the default file associations. Click any of programs in the list to see your other options for that function.
To see a more comprehensive list of file associations, scroll down and click “Choose default applications by file type.” This will show you a full list of all the file types available and the apps they’re associated with.
You can click any of these, but in many cases you’ll find that there are no options available. This happens with more obscure file types, such as various esoteric image formats that only open with image-editing software like Photoshop. If you have the right program, but it’s not appearing as an option in the associations list, you can force the association using the command prompt (see next heading).
If you want, from the main “Default apps” screen you can click “Reset” to reset the file associations to Microsoft’s recommended defaults. (Warning: Microsoft will of course point you back to using their own software.)
How to Reset or Delete a File Association in Command Prompt
Resetting a file association to nothing is a little more intricate, and you’ll need to do it through an elevated command prompt.
Click Start, type cmd , right-click Command Prompt, then “Run as administrator.”
into the command prompt (where “filename” is the name of the app you want to dissociate, and “ext” is the extension, such as .jpg, bin, .mp3 or whatever).
If you’re unsure of the filename, just enter “assoc” into the command prompt to see a list of all the file type associations. The bit you want to enter after “ftype” is the entire part after the = symbol.
For the sake of the example, we decided to dissociate the “wtv” extension from VLC, so the command we typed was
Once you’ve entered the command, the file type should be dissociated/empty, and you can set a new one when you try to open that file type next time.
Or, if you want to use the command prompt to associate or reassociate files with apps, just follow the below format, replacing the “wtv” and directory with the extension and directory of the program you want to associate it with:
Conclusion
That should tell you everything you need to know about file associations and give you control over which programs go with which extensions. While the command prompt method may be a bit more tricky, it’s less restricted than the “Default apps” window, so if the program you want doesn’t turn up there, you can force the association through the trusty command prompt.
2 comments
The latest Windows updates seem to have broken the ability to change file association via the Control Panel and via the Open With functions. Had to use the assoc command in an administrator console.
Idiots at Microsoft strike yet again.
PS..thank you for the write-up! It was point on for all the topics. Regretfully the standard functionality through the interface is broke but your command prompt suggestion saved me a lot of headaches.
Comments are closed.
Popular Posts
How to Capture a Scrolling Screenshot in Windows 10
12 Useful Windows 10 Registry Hacks to Optimize Your Windows 10 Experience
Latest Windows 10 Update Problems and How to Fix Them
How to Create a Virtual Machine from Your Existing Windows 10 PC
14 Awesome Screensavers for Windows 10
Affiliate Disclosure: Make Tech Easier may earn commission on products purchased through our links, which supports the work we do for our readers.
If you want to change a file name extension in Windows 10, or if you wonder how to change file extension for multiple or all files in one folder, follow this guide.
Part 1: Change file extension for one file in Windows 10
Step 1: Show file name extensions if you haven’t done so.
Step 2: Click the file for which you want to change the file extension to select it, and then click F2 to make the filename and extension editable.
Step 3: Select the extension to highlight it, type another extension, and press Enter to confirm it.
Step 4: When you are prompted with the warning dialog that says “If you change a file name extension, the file might become unusable.”, click Yes to confirm that.
Part 2: Change file extension for multiple files at once in Windows 10
If you need to change the filename extension for multiple or all files in one folder, it would be troublesome and time-consuming to do that one by one. But don’t worry. You can change file extension for multiple files in one folder at once simply with the command prompt. Here are the steps.
Step 1: Locate the file. Right-click on the file while pressing and holding the Shift key on your keyboard, and then select Open command window here from the context menu. This will open a CMD window.
Another way to open the Command Prompt window is to open the folder in File Explorer, click the File tab, point to Open command prompt and then click Open command prompt.
Step 2: After the CMD window opens, type the command: ren *.(current extension name) *.(new extension name), and press Enter. That’s it.
For example, in my case, I use ren *.png *.jpg command to change all picture files’ extension from .png to .jpg, as shown below.
Below are steps on how you can rename a file or directory. Click on one of the following links to automatically navigate to the correct operating system.
You must have write or modify permissions to a file, folder, or directory to rename it. In some cases, you may also need administrator privileges in the operating system to rename.
How to rename in Microsoft Windows
Windows users can rename their files and directories by using one of the following methods. We’ve listed the following recommendations in what we believe to be the easiest methods of renaming a file.
Method one
- Highlight the file or folder.
- Right-click the file and click Rename from the menu that appears.
Method two
- Highlight the file or folder.
- Press the F2 key on the keyboard.
Method three
- Highlight the file or folder.
- Click File at the top of the window and select Rename from the list of available options.
Method four
- Highlight the file or folder you want to rename by single-clicking the file.
- Once highlighted, wait a few seconds and click the file again. A box should appear surrounding the file or folder name, and you should be able to rename the file.
If you don’t wait long enough and click the file or folder too fast, it can open the file or folder rather than allowing you to rename it.
Renaming multiple files or folders at once
- Open Explorer.
- In Explorer, select all the files you want to rename.
- Once the files have been selected, press F2 to edit the file name, and type the new name for the files. For example, typing “test” will rename the files to test, test(1), test(2), test(3) etc. If you have file extensions shown, make sure to also type the name of the file extension you’re renaming.
Microsoft Windows users can also rename any file using the Windows command line.
How to rename in MS-DOS and the Windows command line
MS-DOS and Windows command line users can change the name of a file or directory by using the ren or rename command. Below are some examples of how this command can be used. Additional information about each of these commands can be found by clicking the above command links.
Renaming a file
In the following example, this would rename the file test.txt to hope.txt.
If the test.txt file is not located in your current directory, you must specify the path to the file as a prefix to the file name. For example, if the file was in the “computer” directory, you would type a command similar to the following example.
Renaming a file with a space
Whenever dealing with a file or directory with a space, it must be surrounded with quotes. Otherwise, you’ll get the “The syntax of the command is incorrect.” error. To rename the file “computer hope.txt” to “example file.txt”, your command would resemble the following example.
Renaming multiple files with one command
To rename multiple files at once, you must utilize some form of wild character. Below are some examples of how this could be done.
The following example would rename all the files in the current directory that end with .rtf to .txt files.
In this next example, the command would rename a file with an unknown character in the file name to something that can be read. The “?” used in the following example is the wild character for an unknown character.
Renaming a directory
Renaming a directory in MS-DOS is much like renaming a file. Use the ren or rename command to rename the directory. Because you cannot have a file and directory that have the same name, you will not need to worry about mistakenly renaming a file instead of a directory, unless you’re using wild characters.
In the following example, this would rename the computer directory to hope.
Rename the directory “computer hope” to “example directory”. Whenever dealing with a file or directory with a space, it must be surrounded with quotes. Otherwise, you’ll get the “The syntax of the command is incorrect.” error.
Rename in a batch file
To rename files in a batch file, you can use any of the rename commands or examples shown in the MS-DOS and Windows command line section.
How to rename in macOS
Apple macOS users can rename their files and directories by using one of the following methods. We’ve listed the following recommendations in what we believe to be the easiest methods of renaming a file.
First recommendation
In the macOS X Finder, select the file by clicking the file once and then press the ‘return’ key on the keyboard. After pressing return, you can type in the new name of the file.
Second recommendation
Select the file or icon you want to rename. Click and then hover over the file name until it is highlighted. Once highlighted, this indicates the file can be renamed.
Third recommendation
Using the Terminal, you can also rename any file. See our Linux and Unix users section for steps on renaming a file using the mv command.
How to rename in the Linux and Unix command line
For detailed information about renaming files in Linux, see the Linux mv command.
How to rename in Google Chrome OS
With the Google Chrome OS on a Chromebook, you can rename your files and directories by using one of the following methods. We’ve listed the following recommendations in what we believe to be the easiest methods of renaming a file.
First recommendation
Highlight the file by clicking on the file once. Press Ctrl+Enter on the keyboard and then type the new name of the file.
Second recommendation
Right-click the file by pressing two fingers on the touchpad at the same time. In the right-click menu, click Rename and then type the new file name.
Because generic icons are so darn ugly
If you have a file on your computer with a non-recognizable extension, then Windows will simply assign that file a generic file icon. If you work in a corporate environment, this can happen all the time with custom software applications using proprietary formats.
Even if you are a home user, it might be worth your time to change the default icon that is assigned for a text document or for all PDF documents, etc. This tip is really just for customizing the look and feel of Windows to your liking.
In Windows XP, changing a file type’s icon was very simple and could be done via Windows Explorer. Unfortunately, the process is more complicated in Windows 7 and Windows 8. There you have to manually edit registry entries, which is no fun. Thankfully, there are a couple of freeware programs out there that get the job done without all the mess.
Change File Type Icon in Windows XP
Step 1: Open My Computer and go to Tools and then Folder Options.
Step 2: Click on the File Types tab and you’ll see a listing of all the registered file types on your computer along with the extensions and the icon.
Step 3: Scroll down to the file extension you want to change the icon for and then select it in the list. After that, click on the Advanced button at the bottom of the dialog.
Step 4: Click the Change Icon button at the top right and choose your replacement icon.
That’s how simple it is to change the icon for a file type in Windows XP and Windows Vista. Now let’s talk about Windows 7 and Windows 8.
Change File Type Icon in Windows 7/8
For Windows 7 and higher, there are a couple of freeware utilities that can change the file icons for you without having to mess around in the registry. I’m going to mention two that I have used and that work well.
Types
Types is a very simple app that only does one thing. It would have been nice if the program was a standalone executable that didn’t require an install, but unfortunately, it’s not. Anyway, once you install it and run it, you’ll get a box with all of the currently registered files types on the system and their icons.
In my example, I want to change the default icon for text files, so I scrolled down to the TXT extension and selected it. Click on the gear icon at the top and that will bring up the properties box.
On the Class tab, you can see the path to the associated program for that file type. In this case, Notepad opens TXT files by default. You can actually change the default program here if you like, but you can also do that via Explorer.
The tab we are interested in is Icon. By default, it shows you the icons stored in the imageres.dll file stored in the SYSTEM32 directory. This DLL file contains a lot of the default system icons used on the system.
If you don’t find any usable icon here, you can read my previous post on extracting icons from EXE and DLL files or taking your own images and converting them into icons. Once you have a custom icon, you can click the little yellow folder button and browse to the icon you want to use.
Simply select the icon and then close out of the properties window. You’ll also see the icon change in the header area at the very top of the properties window.
As you can see above, I changed the icon for the TXT file type to something different and now that icon will show up wherever Windows displays it across the operating system.
FilesTypesMan
The second program I really like is from Nirsoft, my favorite company when it comes to free utilities. The program is called FileTypesMan and it’s better than Types because it doesn’t require any installation on the system.
Once you run it, you can scroll down to the file extension you are looking for using the first column (Extension). In my example, I again found the .TXT file extension and at the bottom you can see the different actions associated with that extension. This is the same as the Actions tab in Types.
When you double-click on the entry, you’ll get a popup dialog with a whole bunch of properties and settings.
Click on the little button next to Default Icon and choose your icon file. You can also configure a bunch of advanced options for showing/hiding different settings related to the file extension. If you work with a certain file type a lot and want a better icon than the default, these two programs are the best options.
That’s about it. If you have any questions or problems updating the icon for a file type, let us know in the comments. Enjoy!
Founder of Online Tech Tips and managing editor. He began blogging in 2007 and quit his job in 2010 to blog full-time. He has over 15 years of industry experience in IT and holds several technical certifications. Read Aseem’s Full Bio
Rename file extension of multiple files with Windows command line, Total Commander or Multi-File Renamer.
How to change file extension of multiple files in Microsoft Windows
It is very annoying, when you need to change extension of multiple files one by one. Luckily, there are possibilities how to do this job easy in just a few minutes and we will show you some of them.
This guide contains three parts :
You can select your the way that fits you best to change file extension of multiple files.
Use Windows command line to change file extension of multiple files
The easiest way how to change file extensions of multiple files without other software is to use command line.
Open Windows Explorer, create a new folder and copy files that will be renamed to it.
Open command line Start → Accessories → Command line or type cmd.exe to Start menu search bar. In Windows 8 open Metro UI → type cmd and press Enter.
Navigate to the folder where files are stored and type command:
ren *.old file extension *.new file extension or ren *.* *.new file extension
Command Prompt ren command syntax for renaming file extensions
Wait a second till Windows renames the file extensions.
Command Prompt renamed file extensions
Use Total Commander to change file extension of multiple files
Disadvantage of the first guide is to have basic knowledge about Windows Command line and its commands. Total Commander for Windows is free and much more comfortable file manager that also contains handy utility for renaming multiple files called Multi-Rename Tool.
Total Commander
Start Total Commander. Navigate to the folder, where are stored files that will be renamed.
Select files by Ins key. If you want to rename all files in the folder you can use * key, or Ctrl+A shortcut to select all files.
Total Commander select files
Go to the Files menu and select Multi-Rename Tool. option. You can also use Ctrl+M shortcut.
Total Commander open Multi-Rename Tool
Click in the Extension box, delete the [E] option and type a new file extension, which you want to associate with multiple files.
Multi-Rename Tool main window
Click on Start! button and wait until the Total Commander will rename files.
Use Multi-File Renamer to change file extension of multiple files
There are many free and paid stand-alone file renamers with various features, but we have selected one that is small, free and easy to use for our topic. It is called Multi-File Renamer and is available for free download on JJC Software website. It is distributed as a simple ZIP archive without installation application.
Start Multi-File Renamer and navigate to the folder, where are stored files for renaming.
Multi-File Renamer main window
Select files by Shift+mouse click, Ctrl+mouse click, or all files with Ctrl+A shortcut and select Change/Add File Extension option in Replace/Remove tab. Click on Rename button.
Multi-File Renamer select files
Type new file extension to text box and click on OK button.
Change/Add file extension option
You will see a Preview window with information about old and new file names.
Multi-file Renamer Preview window
Click on Do It button and wait until the the renaming job is finished.