How to Bulk Rename Files in Windows 10 and 11
Updated
Windows can rename a whole folder of files without extra software, and two free tools from Microsoft go much further. This guide starts with the F2 trick in File Explorer, moves on to PowerRename from PowerToys for search and replace, and ends with PowerShell commands for rules that no dialog can express.
Show file extensions first
File Explorer hides extensions such as .jpg or .pdf by default. To see exactly what you rename, turn them on: in Windows 11 choose View › Show › File name extensions, in Windows 10 tick File name extensions on the View tab.
Method 1: F2 in File Explorer with automatic numbering
- Open the folder and sort it the way you want the numbering to run, for example by Name or Date.
- Select the files: Ctrl+A selects all, Ctrl+click adds single files, Shift+click selects a range.
- Press F2. One name becomes editable.
- Type the new base name, for example
Lisbon 2026, and press Enter.
Explorer gives every selected file that name plus a number in brackets: Lisbon 2026 (1).jpg, Lisbon 2026 (2).jpg and so on. Extensions stay as they are. If the result is not what you wanted, press Ctrl+Z to undo the rename.
To rename files one after another instead, select the first file, press F2, type the name and press Tab: Explorer saves the name and opens the next file for editing.
The F2 method cannot change the format of the number, so names like (1) and (10) may sort in an unexpected order in other programs. For 001, 002 use PowerRename or PowerShell.
Method 2: PowerRename from Microsoft PowerToys
PowerToys is a free collection of utilities published by Microsoft, available in the Microsoft Store and on GitHub. After installing it, make sure PowerRename is switched on in the PowerToys settings.
- Select the files in File Explorer and right-click them.
- Choose Rename with PowerRename. (Depending on your settings it may be under Show more options.)
- Enter the text to find in Search for and the new text in Replace with. The preview on the right shows every old and new name before anything changes.
- Choose options as needed, then click Apply.
The options that matter most:
- Use regular expressions: for example search
(\d{2})-(\d{2})-(\d{4})and replace with$3-$2-$1to turn29-03-2026into2026-03-29. - Match all occurrences: replaces every match instead of only the first one.
- Apply to: filename only, extension only, or both.
- Text formatting: lowercase, UPPERCASE, Title case or Capitalize Each Word.
- Enumerate items: lets you use counters in Replace with.
${}counts from 0;${start=1}starts at 1 and${padding=3}adds leading zeros. With Use regular expressions on and Apply to set to the filename only, search for.*and replace withLisbon_${start=1;padding=3}to getLisbon_001.jpg,Lisbon_002.jpg. - Date variables:
$YYYY,$MMand$DDinsert the file's creation date, for example$YYYY-$MM-$DD_scan.
PowerRename can be undone with Ctrl+Z in File Explorer right after applying it.
Method 3: PowerShell
PowerShell is included in Windows. Open the folder in File Explorer, right-click an empty area and choose Open in Terminal, or start PowerShell and change to the folder with cd. The core command is Rename-Item; combined with Get-ChildItem it renames many files.
Preview with -WhatIf
Add -WhatIf to any of the commands below. PowerShell then lists what it would rename without changing anything. Remove it to run the command for real.
Replace text in every file name
Get-ChildItem -File -Filter '*draft*' |
Rename-Item -NewName { $_.Name -replace 'draft', 'final' } -WhatIf-replace uses regular expressions and ignores upper and lower case. The filter *draft* makes sure only files containing the word are passed on; renaming a file to its current name produces an error.
Change the extension
Get-ChildItem -File -Filter '*.jpeg' |
Rename-Item -NewName { $_.BaseName + '.jpg' }Replace spaces with underscores
Get-ChildItem -File | Where-Object Name -like '* *' |
Rename-Item -NewName { $_.Name -replace ' ', '_' }Number files with leading zeros
$i = 1
Get-ChildItem -File -Filter '*.jpg' | Sort-Object LastWriteTime | ForEach-Object {
Rename-Item -LiteralPath $_.FullName -NewName ('Lisbon_{0:D3}{1}' -f $i, $_.Extension)
$i++
}{0:D3} formats the number with three digits, $_.Extension keeps the original extension, and Sort-Object LastWriteTime numbers the files by modification date. Use Sort-Object Name for alphabetical order.
Include subfolders
(Get-ChildItem -File -Recurse -Filter '*.jpeg') |
Rename-Item -NewName { $_.BaseName + '.jpg' }The parentheses make PowerShell collect the full list before renaming starts, so files that were just renamed are not picked up a second time.
Other options
For a script you can double-click, see the guide to renaming files with a batch file. If you would rather not install anything, or want renamed copies while the originals stay untouched, use the browser-based bulk renamer on bulkrename.com: it runs in Edge, Chrome or Firefox, applies patterns like Lisbon_[num] and saves the result as a ZIP file.