Skip to content
4 min fix 10 min read Recently reviewedBeginner
Quick Answer

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.

How to Rename Multiple Files at Once on Windows

Applies to: Windows 11, Windows 10
Article Type: How-To
Last Updated: 2026-07-29

Summary

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.

Prerequisites

  • Windows 11 or Windows 10.
  • Write access to the folder holding the files.
  • No admin rights needed for the File Explorer or PowerShell methods. PowerToys has to be installed, which is covered in Step 3.

Instructions

1. Rename a Batch of Files in File Explorer

This is the fastest route and it needs nothing installed.

  1. Open File Explorer (Win + E) and open the folder holding the files.
  2. Turn on file extensions so you can see what you are editing. On Windows 11, click View on the toolbar, point to Show, and tick File name extensions. On Windows 10, open the View tab on the ribbon and tick File name extensions.
  3. Set the order you want the files numbered in. Click Sort on the toolbar and choose Name, Date modified, or whichever order matches how you want them counted. Windows numbers the batch in the order the files appear on screen.
  4. Select the files. Click the first, hold Shift, and click the last for a run of files; hold Ctrl and click to pick individual ones; or press Ctrl + A for everything in the folder.
  5. Press F2. The name of one file becomes an editable text box while the rest stay highlighted.
  6. Type the name you want them all to share — for example 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.

2. Rename Files One After Another Without Reaching for the Mouse

When each file needs its own real name rather than a shared one, this cuts the work roughly in half.

  1. Click the first file once to select it.
  2. Press F2. The name becomes editable with the extension left out of the highlight.
  3. Type the new name.
  4. Press Tab instead of Enter. The name is saved and the next file in the folder opens for editing immediately.
  5. Repeat down the list. Press Shift + Tab to step back to the previous file, or Esc to abandon the name you are currently typing.

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.

3. Search and Replace Across File Names with PowerToys PowerRename

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

  1. Open your company's software portal first — on a managed work device this is the approved route and it avoids an admin prompt. See How to Install Approved Software (Company Portal / Self Service).
  2. If PowerToys is not listed there, open Microsoft Store from the Start menu, search for PowerToys, open Microsoft PowerToys, and click Get.
  3. If both routes are blocked, your device policy controls software installs. Raise a ticket with this wording: "Please approve Microsoft PowerToys for my device. I need the PowerRename tool to bulk-rename files as part of my day-to-day work." Understanding IT Policies: Why You Can't Download That App explains what the approval process is checking for.
  4. Open PowerToys Settings from the Start menu, select PowerRename in the left sidebar, and confirm Enable PowerRename is switched On.

Rename the files

  1. In File Explorer, select the files you want to rename.
  2. Right-click the selection and choose PowerRename. Recent versions label it Rename with PowerRename. On Windows 11, if the entry is not on the first menu, click Show more options to open the classic menu.
  3. The PowerRename window opens with your files listed at the bottom in two columns: Original and Renamed.
  4. Type the text you want to find in the Search for box at the top, and the replacement in the Replace with box below it. The Renamed column updates as you type, so you see the result before committing to it.
  5. Set the options beside those boxes to suit the job:
    • Use regular expressions — turns the Search for box into a pattern. ^IMG_ removes that prefix only where it sits at the start of the name.
    • Match all occurrences — replaces every instance in a name rather than the first.
    • Case sensitive — treats Invoice and invoice as different text.
    • Apply to — choose Filename only, Extension only, or Filename + Extension. Leave it on Filename only unless you deliberately want to change extensions.
  6. To number the output, type ${} in the Replace with box. Settings inside the braces control the count: ${start=1,increment=1,padding=3} produces 001, 002, 003.
  7. Untick any file in the list you want left alone.
  8. Click Apply. The window closes and File Explorer shows the new names.

Example: To turn IMG_4471.jpg, IMG_4472.jpg into Site Visit 001.jpg, Site Visit 002.jpg — tick Use regular expressions, put .* in Search for, and put Site 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.

4. Rename Files with a PowerShell Command (Optional)

Skip this section if a command line is not your thing. Steps 1 and 3 cover everything below.

  1. Open File Explorer and go to the folder holding the files.
  2. Click the address bar at the top of the window so the folder path highlights, type powershell, and press Enter. A PowerShell window opens already pointing at that folder.
  3. Run the command with -WhatIf on the end first. That switch prints what would happen and changes nothing:
powershell
Get-ChildItem -Filter *.jpg | Rename-Item -NewName { $_.Name -replace 'IMG_', 'Site Visit ' } -WhatIf
  1. Read the output. Each line reads What if: Performing the operation "Rename File"... and shows the old and new names.
  2. Remove -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:

powershell
$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 -WhatIf dry run is the equivalent of PowerRename's preview, and it is worth running every time.

5. Protect Your Files Before a Big Rename

Two habits cover almost every way this goes wrong.

Work on a copy for anything large or irreplaceable.

  1. Select the folder in File Explorer, press Ctrl + C, then press Ctrl + V in a scratch location such as your Downloads folder.
  2. Rename inside the copy, confirm the result, then move it back.

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.

  1. Click the OneDrive cloud icon in the notification area at the bottom-right of the taskbar, next to the clock.
  2. Click the gear icon (Settings and more) at the top of the panel.
  3. Point to Pause syncing and choose 2 hours.
  4. Do the renaming.
  5. Open the same menu and click Resume syncing. OneDrive uploads the finished result as one batch instead of hundreds of interleaved changes.

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.

Troubleshooting

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 / ErrorPotential CauseSolution
"The file name you specified is not valid or too long"Folder path plus new name exceeds the Windows character limitUse 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 folderRename 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 expectNumbering follows the folder's current sort orderUndo with Ctrl + Z, click Sort on the toolbar and pick the order you want, then repeat Step 1.
A renamed file no longer opensThe extension was overwritten while typingTurn 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 menuHidden in the Windows 11 menu, or the module is offClick 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 renameHundreds of changes queued at onceLeave the computer on and connected until the queue clears. To avoid it next time, pause syncing first (Step 5).