Change Case in Filenames on Windows Using PowerToys
In this article
Yes, you can change the case of filenames (e.g., from report.txt to Report.txt) on Windows using Microsoft PowerToys' PowerRename tool. It works in File Explorer without needing to rename files one by one. You'll need PowerToys installed (free from Microsoft) and a basic understanding of how to select files in File Explorer.
What You'll Need
- Windows 10 or Windows 11 (PowerToys supports both).
- Microsoft PowerToys installed. If you don't have it, download it from the official Microsoft Store or the PowerToys GitHub releases page (always use official sources).
- Administrator rights are not required for renaming, but you may need them to install PowerToys.
Step-by-Step
- Install PowerToys if you haven't already. Open the Microsoft Store, search for “PowerToys”, and click “Install”. Or download the installer from the official Microsoft PowerToys GitHub page. Run the installer and follow the prompts. After installation, PowerToys runs in the background—you'll see its icon in the system tray (bottom-right corner).
- Make sure PowerRename is enabled. Right-click the PowerToys icon in the system tray and select “Settings”. In the left sidebar, click “PowerRename”. Ensure the toggle at the top is turned “On”. If it's off, click it to enable. The settings window also shows the default shortcut (usually
Shift+F2) but you can also right-click files to access PowerRename. - Select the files you want to rename. Open File Explorer and navigate to the folder containing your files. Click on the first file, then hold
Ctrland click each additional file you want to change. To select all files in a folder, pressCtrl+A. You can also select a range by clicking the first file, holdingShift, and clicking the last file. - Open PowerRename. With the files selected, right-click on any selected file. In the context menu, you'll see “PowerRename” (usually near the top or under “Show more options” on Windows 11). Click it. Alternatively, press the PowerRename shortcut (default
Shift+F2) if you have it set. The PowerRename window opens, showing a list of the selected files. - Set the case conversion. In the PowerRename window, look for the “Search for” text box. Leave it empty (or type a pattern if you only want to rename some files). Below that, find the “Replace with” text box. To change case, you don't type the new name—instead, use the case options. Look for a row of buttons or a dropdown labeled “Case” or “Transform”. You'll see options like “lowercase”, “UPPERCASE”, “Title Case”, and “Sentence case”. Click the one you want. For example, to make all filenames lowercase, click “lowercase”.
- Preview the new names. As you select a case option, the list at the top of the PowerRename window updates to show the new filenames in a “New” column. Review them carefully. Ensure the names are unique and correct—if two files would end up with the same name, Windows will show an error, and PowerRename will mark that row in red.
- Apply the rename. Once you're satisfied with the preview, click the “Rename” button (usually at the bottom right). A confirmation dialog may appear—click “OK”. The files are renamed instantly. You can undo the rename by pressing
Ctrl+Zin File Explorer, but only if you haven't done other actions after. - Check the result. Go back to File Explorer—the files now have the new case. If you need to revert, you can use
Ctrl+Zor re-run PowerRename and change them back.
Common Mistakes
- Selecting the wrong files. PowerRename applies to all selected files. If you accidentally select a folder or a file you didn't intend, you'll rename it too. Double-check your selection before opening PowerRename.
- Not enabling PowerRename in settings. If the right-click menu doesn't show “PowerRename”, it's likely disabled. Go to PowerToys Settings > PowerRename and turn it on.
- Using “Replace with” incorrectly. If you type text in “Replace with” while also selecting a case option, PowerRename will first replace text and then change case. This can lead to unexpected results. For pure case changes, leave both “Search for” and “Replace with” empty.
- Ignoring the preview. The preview is there to catch problems. If you see red rows, that means the rename would fail (e.g., duplicate name). Don't click “Rename” until you fix those.
- Renaming files that are open or in use. If a file is open in another program, Windows may not rename it. Close any programs using the files first.
Tips
- Use “Title Case” wisely. Title Case capitalizes the first letter of each word (e.g., “my report final.txt” becomes “My Report Final.txt”). This is often what people want for readability.
- Combining with search/replace. You can first use “Search for” and “Replace with” to fix typos, then apply a case change in the same run. For example, search for “_” and replace with “ ” to remove underscores, then choose “Title Case”.
- Rename folders too. PowerRename works on folders as well. Just select a folder and run PowerRename—it will rename the folder itself, not its contents.
- Use regular expressions for advanced control. PowerRename supports regex. If you know regex, you can use patterns in “Search for” to target specific parts of filenames. For example, to only change the case of the extension, you could use a pattern like
\.[^.]+$in “Search for” and then apply a case transform. But for most users, the simple case buttons are enough. - Test on a copy first. If you're unsure, copy a few files to a test folder and try the case change there. This avoids messing up important files.
Troubleshooting
- PowerRename doesn't appear in the right-click menu. First, check if PowerToys is running (look for its icon in the system tray). If not, launch it from the Start menu. Then open PowerToys Settings > PowerRename and confirm the toggle is on. Also, on Windows 11, you might need to click “Show more options” in the context menu to see PowerRename. If it's still missing, try restarting File Explorer (right-click the taskbar, select “Task Manager”, find “Windows Explorer”, right-click it, and choose “Restart”).
- The rename fails with an error. This usually means a file is open in another program, or the new name already exists. Close any programs using the file, or rename the conflicting file first. Also, check if the file is read-only—right-click the file, select “Properties”, and uncheck “Read-only” if it's checked.
- PowerToys won't install. Ensure you're downloading from the official Microsoft Store or the official GitHub repository. If the installer fails, restart your PC and try again. Also, check that your Windows version is supported (Windows 10 version 2004 or later, or Windows 11).
- Undo doesn't work. PowerRename's undo (Ctrl+Z) works only in File Explorer and only if you haven't performed other actions after the rename. If you've done other things, you'll need to manually rename the files back, or use PowerRename again to reverse the case.
- Case change appears to do nothing. On Windows, filenames are case-insensitive but case-preserving. If you change “report.txt” to “Report.txt”, the file is renamed, but Windows may still display it as “report.txt” if the file system cache hasn't refreshed. Press F5 in File Explorer to refresh the view. Also, note that changing case alone might not trigger a visible change if the file system treats it as the same name—try adding a space or character temporarily, then change case, then remove it.
Frequently Asked Questions
Does PowerRename change the file extension case too?
Yes, by default PowerRename applies the case change to the entire filename, including the extension. For example, “.txt” becomes “.TXT” if you choose UPPERCASE. If you only want to change the main part, you can use a regex pattern to exclude the extension, but for most users this is fine.
Can I use PowerRename to change case in subfolders?
No, PowerRename only renames the selected files/folders. It does not recursively process subfolders. To rename files in subfolders, you'd need to select them individually or use a different tool.
Is PowerToys free?
Yes, PowerToys is a free, open-source utility from Microsoft. You can install it from the Microsoft Store or GitHub.
Will PowerRename work on files on a network drive or USB?
Yes, PowerRename works on any files that Windows can access, including network drives and removable media, as long as you have write permissions.
Can I undo a rename if I close the PowerRename window?
Yes, you can undo with Ctrl+Z in File Explorer immediately after the rename, even if you close the PowerRename window. However, if you perform other actions in between, the undo may not work.
Does changing case affect file content?
No, it only changes the filename. The file content remains untouched.