Change Multiple File Extensions at Once in Windows 11
In this article
Yes, you can change multiple file extensions at once in Windows 11 using built‑in tools like File Explorer, PowerShell, or a free bulk‑rename utility.
What You'll Need
- A Windows 11 computer with administrator rights (not required for most methods but helpful for permission issues)
- File Explorer (included with Windows)
- PowerShell, which is pre‑installed on Windows 11
- Optional: a free bulk‑rename program such as Bulk Rename Utility for a graphical interface
- A backup copy of the files you plan to rename, in case something goes wrong
Step‑By‑Step
- Show file extensions in File Explorer
Open any folder, click the View menu, choose Show > File name extensions. This makes the current extension visible so you know what you are changing. - Method 1 – Quick rename using File Explorer
a. Navigate to the folder containing the files.
b. Select all files you want to change (Ctrl +A for the whole folder or hold Ctrl while clicking individual items).
c. Press F2 to rename the first file.
d. Type the new name followed by the desired extension, for exampledocument.txt.
e. Press Enter. Windows will ask if you want to change the extension for all selected files – click Yes.
f. All selected files now share the new extension while keeping their original base names.
This method works best when all files share the same base name pattern and you only need one new extension. - Method 2 – Bulk rename with PowerShell
a. Open PowerShell: right‑click the Start button and choose Windows PowerShell (Admin) if you anticipate permission issues.
b. Navigate to the folder that holds the files, e.g.cd 'C:\Users\YourName\Documents\MyFiles'
c. Run a test command with the-WhatIfswitch to see what will happen without changing anything:Get-ChildItem -File -Filter '*.old' | Rename-Item -NewName { $_.BaseName + '.new' } -WhatIf
Replace*.oldwith the current extension (including the dot) and.newwith the extension you want.
d. If the preview looks correct, rerun the command without-WhatIf:Get-ChildItem -File -Filter '*.old' | Rename-Item -NewName { $_.BaseName + '.new' }
e. PowerShell will rename every matching file in the folder. The command also works recursively if you add-RecurseafterGet-ChildItem.
f. For more complex patterns you can use regular expressions inside the script block, but the basic form above covers most bulk‑extension changes. - Method 3 – Using a free graphical bulk‑rename tool
a. Download and install Bulk Rename Utility from its official website.
b. Launch the program and browse to the target folder.
c. In the “Filters” section, type the current extension (e.g.,.old) to limit the view to those files.
d. In the “Extension” box, replace the existing extension with the new one (e.g.,.new).
e. Click the “Rename” button. The program will show a confirmation dialog listing all changes.
f. Confirm to apply. The utility also offers preview, undo, and logging features, making it safe for large batches.
Common Mistakes
- Forgetting to display file extensions, then unintentionally renaming the whole filename instead of just the extension.
- Using the wrong wildcard in PowerShell (e.g.,
*.txtwhen the files actually end with.TXTon a case‑sensitive script). - Running the PowerShell command in a different directory, which results in no files being found.
- Not backing up files first, so an accidental typo can corrupt a large set of data.
- Choosing “Rename” in File Explorer without confirming the prompt, which leaves only the first file renamed.
Tips
- Always enable “File name extensions” before starting – it prevents confusion.
- Test on a small subset (three or four files) before applying to hundreds.
- In PowerShell, add
-Verboseto see each file as it is processed. - Use the
-WhatIfflag in PowerShell to preview changes without risk. - If you need to rename files across many subfolders, add
-Recurseto theGet-ChildItemcmdlet. - Bulk Rename Utility lets you save a “session” so you can repeat the same rename pattern later.
Troubleshooting
If the rename operation does not work as expected, follow these checks in order:
- Permissions – Ensure you have write permission for the folder. Right‑click the folder, choose Properties > Security, and verify your user account has “Modify” rights.
- File locks – A file that is open in another program cannot be renamed. Close any applications that might be using the files (e.g., media players, editors).
- PowerShell execution policy – If you receive an error about script execution, run
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypassin the same session, then retry the rename command. - Incorrect path or filter – Double‑check the folder path and the
-Filterpattern. UseGet-ChildItemalone first to list the files you expect. - Special characters – Filenames containing characters like
:or?are invalid on Windows and will cause the rename to fail. Rename or remove such characters before bulk processing. - Undoing a mistake – If you used Bulk Rename Utility, click “Undo” immediately after the operation. In PowerShell, you will need to run a second rename command that swaps the extensions back, using the same logic.
Frequently Asked Questions
Can I change extensions for files in multiple folders at once?
Yes. In PowerShell add the -Recurse flag to Get-ChildItem, or in Bulk Rename Utility check “Include subfolders”.
Will changing the extension affect the file’s contents?
No. The extension is only a label that tells Windows which program to use. Changing it does not modify the underlying data.
What if a file’s new extension is not associated with any program?
Windows will show a generic “Open with” dialog when you double‑click the file. You can then choose an appropriate program or set a default association in Settings > Apps > Default apps.
Can I rename hidden or system files?
Yes, but you must first enable “Show hidden files” in File Explorer and have administrator rights. PowerShell can rename them without extra steps if you run it as Admin.
Is there a way to preview the rename result before committing?
Both PowerShell (-WhatIf or -Verbose) and Bulk Rename Utility provide a preview list. File Explorer’s method shows a confirmation dialog for the first file only.