LightClub.
Menu
Explore the blog

PowerRename Numbering Conflicts? Check Your Preview Before Renaming

A bulk rename can propose a name already held by another file. Learn how to inspect the preview, identify numbering conflicts and preserve your originals.

lightclub_owner5 min read
PowerRename numbering conflicts example where photo_04.jpg would be renamed to the existing photo_02.jpg.

PowerRename numbering conflicts can occur when you try to give a collection of files consecutive numbers but some target names already exist. For example, you might want to turn files numbered 01, 04 and 09 into 01, 02 and 03. The desired result is straightforward; getting there without colliding with existing filenames requires checking the entire folder, not only the selected items.

Example verification: These examples show expected results. The numbering preview and undo were not tested in PowerRename.

PowerRename is part of Microsoft PowerToys. It offers search-and-replace, numbering, and a preview before changes are applied [1]. Use that preview as a safety check, and experiment on copies instead of your only originals.

Recognize two kinds of PowerRename numbering conflicts

A filename collision happens when two items would have the same complete filename in the same folder. It can involve either two proposed names or a proposed name that is already used by an item outside the selection.

Consider this original illustrative inventory:

Current nameSelected?Intended result
photo_01.jpgYesphoto_01.jpg
photo_04.jpgYesphoto_02.jpg
photo_09.jpgYesphoto_03.jpg
photo_02.jpgNoKeep existing name

The intended result for photo_04.jpg conflicts with the unselected photo_02.jpg. Even a perfectly functioning counter cannot make that naming plan safe without changing the target names or moving the selected copies to a separate folder.

Another scenario is a rename cycle: two selected files need each other’s existing names. The final set might be unique, but an intermediate rename could still conflict, depending on how the tool executes the operation. Do not assume the tool automatically resolves every possible cycle.

Step 1: Make an isolated practice folder

Create a new folder outside any synchronized or production directory. Make three disposable text files named scan_02.txt, scan_05.txt and scan_09.txt. Give each file distinguishable text so you can identify its original contents after a rename.

Before running PowerRename, check the entire folder and verify that it does not already contain the target names. Keep the exercise separate from real photos or documents. For actual files, retain a verified backup on another device or location.

Step 2: Use numbering and inspect the preview

Select the three practice files in File Explorer and open PowerRename from the context menu. Microsoft documents the enumeration syntax and the controls for applying a rename to filenames rather than extensions [1].

For this exercise, set the following options:

SettingValue
Search for^scan_[0-9]+$
Replace withpractice_${padding=2;start=1}
Use regular expressionsEnabled
Enumerate itemsEnabled
Apply toFilename only
Include folders and subfoldersDisabled for this flat exercise

The expected set of new names is practice_01.txt, practice_02.txt and practice_03.txt. This is a reasoned example using documented syntax, not an observed result from a running PowerRename installation. The mapping of the numbers to specific originals must be checked in your actual preview. Do not infer the order from the original filenames alone.

If no rows match, check that you selected filename-only mode, that the regular-expression option is active and that the file list contains exactly the names expected. If the preview displays a different number format, compare your installed version and settings with the official documentation.

Step 3: Check the preview against the full folder

Read both the original and proposed names. The preview should show the intended extension and unique proposed targets. Compare those targets with files that are not selected, including files with hidden extensions. Windows normally treats differences in letter case as the same name, so Photo_01.jpg and photo_01.jpg should not be treated as safe separate targets [2].

Do not apply the operation if any target collides, the counter is unexpected, or a file that should change is missing from the preview. If the intended order matters, save a mapping of original names and intended numbers first. After applying a safe practice rename, verify the resulting file count and open the text files to confirm their contents still match that mapping.

Step 4: Use an intermediate naming stage when appropriate

For files that need to keep an existing prefix, one possible approach is to rename disposable copies to a new, unused temporary prefix before the final numbering. Inspect each stage independently. A temporary prefix can avoid some intermediate conflicts, but it does not make an occupied final filename safe. Resolve any existing final target before the second rename.

For a large collection, first decide exactly which original file should receive each final number. Record that mapping. A two-stage workflow is only useful if it preserves the intended mapping between stages.

What about previously reported PowerRename counter bugs?

A September 2025 issue in Microsoft’s PowerToys repository reported a numbering problem in version 0.90.0 when an item already had the proposed number. The issue was subsequently closed with a linked fix [3]. This historical report is a reason to check behavior in your installed version, not evidence that every current release is affected.

If you encounter unexpected numbering, record the PowerToys version, your search and replacement values, and a minimal disposable file list. Check the official issue tracker for a matching problem. Do not reproduce an unexpected rename on valuable files.

Can you undo a bulk rename?

Microsoft describes an Explorer undo operation for the rename workflow [1]. Treat undo as a convenience, not a guaranteed recovery plan after other file operations, sync events or a restart. A backup and a before/after filename list are more reliable safeguards.

The goal is not merely consecutive numbering. It is to preserve each file’s identity while producing a unique, predictable final name.

scan_02.txt, scan_05.txt, scan_09.txt. Expected: practice_01.txt to _03.txt. Confirm the mapping in the preview.
The expected set does not establish which original receives each number.

Sources

[1] Microsoft Learn, PowerRename utility for Windows: https://learn.microsoft.com/en-us/windows/powertoys/powerrename

[2] Microsoft Learn, Naming Files, Paths, and Namespaces: https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file

[3] Microsoft PowerToys GitHub, historical numbering conflict report #41950: https://github.com/microsoft/PowerToys/issues/41950

Keep your curiosity switched on.

Explore more practical guides and ideas from LightClub.

About LightClub

Keep reading.

All articles