Yes, you can see the new filenames before a bulk rename changes anything. Preview tools show the proposed names next to the originals, so you can fix a bad pattern before it touches a single file. For more detail, see Bulk Rename Files with Regular Expressions on Windows.
The main example here is PowerRename, a PowerToys utility that lets you check the expected rename results in a preview window before finalizing a bulk rename. [1] Advanced Renamer also lets you preview changes before applying them, and it suggests looking over the complete preview before you rename. [2] Learn more in How to Rename Files Using Metadata in Windows.
This article shows how to use that preview in PowerRename, which patterns are worth testing, and what to look for in the list of new names so a rename does not surprise you.
Key takeaways
A preview shows new names before any file changes.
PowerRename has a built-in preview pane. [1]
Advanced Renamer offers a full preview too. [2]
What do you need before you start?
You need PowerToys installed and PowerRename enabled, plus a small test batch of files. That is enough to start previewing renames safely.
PowerRename is a PowerToys utility that renames many files at once. It can run a search and replace on part of each filename, apply a regular expression, and show the expected results in a preview window before you finalize anything. [1] The option Rename with PowerRename appears in the File Explorer right-click menu only if it is enabled in PowerToys. [1]
Windows 10 and 11
PowerToys works on both Windows 10 and Windows 11, and the steps in this article are the same on either one. Windows 10 has reached end of support, so if you are still on it, plan an upgrade to Windows 11 when you can.
Start small
Try your first rename on a few files, or on a copy of the whole folder. For example, copy a folder of 200 vacation photos, then run your pattern on three or four files in the copy. Once the preview and the result look right, repeat the process on the full set.
Safety: protect your originals
A rename changes real filenames once you apply it. Before you work on anything important, back it up or work on copies. PowerRename can undo a rename after it is completed, and File Explorer’s Undo Rename command (Ctrl+Z) can reverse the last change. [1] Even so, a backup is the safer net if you close the window, rename something else in between, or rely on names that other programs expect.
How do you preview a rename in PowerRename?
Preview a rename in PowerRename by selecting your files, entering the search and replace text, and reading the preview pane before you apply anything. The preview shows the results of your entries as you type them. [1]
Select the files in File Explorer. Highlight the files you want to rename, then right-click them. Choose Rename with PowerRename, which appears only if the utility is enabled in PowerToys. [1]
Check that the window shows your files. PowerRename opens with the selected items listed, along with search and replace values, a list of options, and a preview pane. [1]
Enter your search and replace text. Type the part of the name you want to find, then the text that should replace it. For example, to turn every “foo” into “foobar”, put
fooin the search field andfoobarin the replace field. [1]Choose your options. Pick the settings from the options list that suit the job, such as limiting the change to a targeted section of the file names. [1]
Read the preview. The preview pane displays the results of the values you entered, so each file’s new name is visible before you finalize the rename. [1]
Adjust until it looks right. If a name comes out wrong, edit the search or replace text, or change an option, and check the preview again. Repeat until every name reads the way you want.
Apply the rename. Once the preview looks right, finalize the rename. [1]
If you change your mind afterward, PowerRename can undo a rename after it is completed. Explorer’s “Undo Rename” command (Ctrl+Z) also reverses the last change. [1]
Which rename patterns are worth previewing?
Three kinds of PowerRename patterns are worth a preview every time: numbering, date-based names, and regular expressions. Each can change names in ways that are hard to predict from the pattern text alone.
Numbering
PowerRename supports sequence tokens: ${increment=X}, ${padding=X} and ${start=X}. [1] You can combine them in one replacement:
Image_${padding=4;increment=2;start=10}_
This pattern starts counting at 10, steps by 2 and pads the number to four digits. [1] Since the settings are easy to mix up, the preview is where you see whether the first name starts where you expect and the numbers step the way you intended.
Date-based replacement
A date pattern can build part of the new name from date values:
$MMM-$DD-$YY-powertoys
This is a pattern the PowerRename documentation shows for date-based renames. [1] Preview it on a few files first, because the order and format of the date parts are easy to get wrong, and you will spot that immediately in the new names.
Regular expressions
Regular expressions let you match a pattern instead of fixed text. [1] A match like this one:
^foo.*bar$
can be paired with this replacement:
$1_foo.png
These two lines are the regular expression example in the PowerRename documentation. [1] The ^ and $ anchor the match to the start and end of the name, so the preview shows which files the pattern catches and which it skips.
What the preview tells you
In all three cases, the preview pane shows the result of the search and replace values you entered. [1] That lets you see whether the pattern matches what you expect before you finalize anything. [1] If a name looks wrong, change the pattern and read the preview again.
What should you look for in the preview?
Read the preview as a checklist of four things that commonly go wrong. PowerRename shows a preview pane with the results of your search and replace values, so each problem below is visible before you apply anything. [1] Advanced Renamer likewise lets you look over the complete preview before renaming. [2]
Names that match too many or too few files
Scan the whole list for files that changed when they should not have, and for files that stayed the same when they should have changed. A search for foo may catch files you never meant to touch. A pattern that is too narrow may skip half the folder. If the count looks off, adjust the search text until only the intended files change.
Duplicate results or missing extensions
Look for two rows that end up with the same new name, since one of them would collide with the other. Also check that every name still ends with its extension, such as .png or .docx. A pattern like $1_foo.png writes the extension into the name, so a mixed folder of file types would give every file a .png ending. [1]
Numbering order and padding
If you number files with ${padding=4;increment=2;start=10}, check the first and last rows. The start value, the step between numbers and the padding width should match what you meant. [1] Also confirm the sequence follows the order you want, because the numbers are assigned down the list you see.
Unexpected text replaced in the middle of names
A search and replace works on any matching section of a name, not only the beginning or end. [1] Replacing foo with foobar would also change a file called Seafood_foo_final, if it contains that text anywhere. Read each name in full, not just the start, and look for odd fragments in the middle.
If any row looks wrong, change the search or replace text and read the preview again before you apply.
Do other renamers offer a preview too?
Yes. Advanced Renamer is another tool with a preview: you can see the changes before applying them, and the listing shows the complete result so you can look it over before renaming. [2] That makes it a good alternative if PowerRename does not suit your files.
The other methods you may run into are File Explorer, Bulk Rename Utility, and the command line. One comparison covers four Windows approaches: File Explorer, PowerToys PowerRename, Bulk Rename Utility, and the command line. [3] Only the preview behavior of the first two tools is described here; the other methods are compared in that guide.
Option | Where it fits | Preview coverage |
|---|---|---|
PowerRename (PowerToys) | Renaming from the File Explorer context menu | Shows new names before you apply (covered above) |
Advanced Renamer | Batch renaming in a separate app | Lets you look over the complete preview before renaming [2] |
Bulk Rename Utility | Free Windows program with many combinable renaming rules [4] | Lets you preview the changes before you apply them [5] |
Command line | A Windows method for bulk renaming [3] | Check the preview behavior of the command you use before running it |
The main difference is how much you see before anything changes. PowerRename and Advanced Renamer both put the proposed names on screen first, so a mistake shows up before it touches a file. Bulk Rename Utility and the command line are separate approaches that the comparison treats on their own terms.
If you are new to bulk renaming, pick a tool with a visible preview. Seeing every new name in a list is the easiest way to catch a bad pattern early, and you can adjust it until the list looks right.
Preview first, then apply
The preview is your safety net, but only if you read all of it. Scroll through the full list of new names before you apply anything, because a pattern that looks right on the first few files can go wrong further down. PowerRename shows the expected results in a preview window before you finalize a rename [1].
For your next rename, start with a handful of files and keep a backup copy of the folder. Once the preview looks right on a small batch, repeat it on the full set. If you are still choosing a tool, the best bulk file renamer for Windows comparison covers the options side by side.
