In this guide
Appearance
Appearance
By Scot, 10+ years in IT support and helpdesk ·How these guides are checked
Select the files in File Explorer, press F2, type one name, and press Enter — Windows numbers them Name (1), Name (2). For search and replace inside names, use PowerRename from Microsoft PowerToys.
Checked against Microsoft Learn - Windows release health, Microsoft Learn - end of support and retirement and between 5 Aug 2026 and 12 Sep 2026. Nothing published in that period has been linked to this guide.
Renaming forty scanned invoices one at a time costs you twenty minutes. This article covers the built-in File Explorer method, the search-and-replace tool that does what File Explorer cannot, and a one-line PowerShell alternative — plus the two things that turn a tidy rename into a bad afternoon.
In this guide
This is the fastest route and it needs nothing installed.
Q3 Invoice — and press Enter.Every selected file is now named Q3 Invoice (1).pdf, Q3 Invoice (2).pdf, and so on. The extensions are preserved untouched.
Verification: The file list redraws with the new names in your chosen sort order. If a file kept its old name, it was not part of the selection — check the count at the bottom-left of the window before pressing F2 next time.
Note: This method has one shape and you cannot change it. The number always lands at the end, always sits in parentheses after a space, always starts at 1, and is never zero-padded — so
(10)sorts before(2)in some applications. You also cannot alter part of an existing name and keep the rest. Step 3 handles all of that.
When each file needs its own real name rather than a shared one, this cuts the work roughly in half.
Tip: Renaming stops at the last file in the folder view. If you are working through a long list, sort the folder first so the files you care about sit together.
PowerRename is the proper tool for this job: it changes text inside names, previews every result before anything happens, and numbers files the way you want. It is part of Microsoft PowerToys, which is a free Microsoft download rather than a built-in Windows feature — so you have to install it first.
Install PowerToys
PowerToys, open Microsoft PowerToys, and click Get.Rename the files
^IMG_ removes that prefix only where it sits at the start of the name.Invoice and invoice as different text.${} in the Replace with box. Settings inside the braces control the count: ${start=1,increment=1,padding=3} produces 001, 002, 003.Example: To turn
IMG_4471.jpg,IMG_4472.jpgintoSite Visit 001.jpg,Site Visit 002.jpg— tick Use regular expressions, put.*in Search for, and putSite Visit ${start=1,padding=3}in Replace with. The preview confirms it before you click Apply.
Note: PowerRename has no undo button of its own, and its renames do not appear on File Explorer's undo list either. The preview is the safety net — read the Renamed column properly before clicking Apply.
Skip this section if a command line is not your thing. Steps 1 and 3 cover everything below.
powershell, and press Enter. A PowerShell window opens already pointing at that folder.-WhatIf on the end first. That switch prints what would happen and changes nothing:Get-ChildItem -Filter *.jpg | Rename-Item -NewName { $_.Name -replace 'IMG_', 'Site Visit ' } -WhatIfWhat if: Performing the operation "Rename File"... and shows the old and new names.-WhatIf from the end and run it again to perform the renames.To number files with zero-padding, use this instead — again with -WhatIf first:
$n = 1
Get-ChildItem -Filter *.jpg | Sort-Object Name | ForEach-Object {
Rename-Item $_.FullName -NewName ("Site Visit {0:D3}{1}" -f $n++, $_.Extension) -WhatIf
}D3 is what produces 001 rather than 1. Change it to D2 for 01 or D4 for 0001.
Note: PowerShell renames cannot be undone with Ctrl + Z. The
-WhatIfdry run is the equivalent of PowerRename's preview, and it is worth running every time.
Two habits cover almost every way this goes wrong.
Work on a copy for anything large or irreplaceable.
Pause OneDrive before renaming a synced folder.
Every rename is a separate change that OneDrive has to send to the cloud. Renaming three hundred files at once queues three hundred sync operations, which can leave files showing the blue Sync pending arrows for a long stretch and slows everything else you are doing.
Note: Renaming a file breaks any direct link colleagues have already saved to it, and it moves in their Shared view. Rename before you share, not after. If a file is already shared and has to change, tell the people using it — the link they have will return a "This item might not exist" page.
Verification: After resuming, hover the OneDrive icon. A green circle with a white tick means every rename has reached the cloud. Any file still showing blue arrows is still uploading — leave the computer on until it clears.
WARNING
Batch renaming is fast, and so is losing track of what a file used to be called. Ctrl + Z in File Explorer reverses a whole F2 batch in one step, but only in the window you renamed in and only before you close it. PowerRename and PowerShell renames are not covered by it at all. For anything you cannot recreate, copy the folder first.
| Symptom / Error | Potential Cause | Solution |
|---|---|---|
| "The file name you specified is not valid or too long" | Folder path plus new name exceeds the Windows character limit | Use a shorter base name, or move the folder nearer the top of the drive before renaming. See How to Fix "File Path Too Long" Errors on Windows. |
| "A file with the name you specified already exists" | Target name is already taken in that folder | Rename into an empty folder, or add a word that distinguishes the batch — a date or a project code works well. |
| Files numbered in an order you did not expect | Numbering follows the folder's current sort order | Undo with Ctrl + Z, click Sort on the toolbar and pick the order you want, then repeat Step 1. |
| A renamed file no longer opens | The extension was overwritten while typing | Turn on File name extensions (Step 1), then rename the file so it ends in its original extension — .pdf, .docx, .jpg. The file itself is unchanged. |
| PowerRename is missing from the right-click menu | Hidden in the Windows 11 menu, or the module is off | Click Show more options to open the classic menu. If it is still absent, open PowerToys Settings > PowerRename and switch Enable PowerRename to On. |
| OneDrive shows a red circle after a big rename | Hundreds of changes queued at once | Leave the computer on and connected until the queue clears. To avoid it next time, pause syncing first (Step 5). |
IT Tip Tuesday
Get a short, actionable IT tip in your inbox every week.
Nothing loads from beehiiv until you click. Once it does, the form sets beehiiv's own cookies and loads beehiiv's own analytics.