How to rename files from a list in Excel
30 November 2026
Excel can't rename files by itself, but it's the best place to make the list. Put the current names in one column and the new names in the next, save the sheet as a CSV file, and let PowerShell or a renaming app read it and rename each file.
What goes wrong is in the middle of the job: a name that isn't in the folder, two rows giving the same new name, or a new name that's already taken. Check for those before anything changes.
Make the list
You need the exact current names, extensions and all. Rather than typing them, let PowerShell list them. Open the folder in File Explorer, type powershell in the address bar and press Enter, then run:
Get-ChildItem -File |
Select-Object @{ Name = 'Old name'; Expression = { $_.Name } }, @{ Name = 'New name'; Expression = { $_.Name } } |
Export-Csv -Path "$HOME\names.csv" -NoTypeInformation -Encoding UTF8
That saves names.csv in your user folder (C:\Users\ followed by your name), with every file's name in both columns. Open it in Excel and change the New name column. Formulas help: =SUBSTITUTE(A2,"Scan ","Invoice ") in B2, filled down, changes every name at once.
Keep the extension in every new name. The three methods below rename exactly, so "Invoice 4471" without ".pdf" makes a file with no extension. Then choose File > Save As, keep the name names.csv and pick CSV UTF-8 (Comma delimited) as the file type, so accented letters survive. If Excel warns that some features could be lost, that's fine for a list.
1. Rename with PowerShell
Good for: Windows, any number of files, nothing to install.
PowerShell reads the CSV as data, so apostrophes, ampersands and percent signs in names cause no trouble. In the PowerShell window that's open in your folder, run this. The first part checks the list; the second is a dry run that changes nothing:
$rows = Import-Csv -Path "$HOME\names.csv" | Where-Object { $_.'Old name' -and $_.'New name' }
# 1. Check the list
foreach ($row in $rows) {
if (-not (Test-Path -LiteralPath $row.'Old name')) { "Not found: $($row.'Old name')" }
if ((Test-Path -LiteralPath $row.'New name') -and $row.'New name' -ne $row.'Old name') { "Already taken: $($row.'New name')" }
}
$rows | Group-Object -Property 'New name' | Where-Object Count -gt 1 | ForEach-Object { "Used twice: $($_.Name)" }
# 2. Dry run: lists each rename without doing it
foreach ($row in $rows) {
Rename-Item -LiteralPath $row.'Old name' -NewName $row.'New name' -WhatIf
}
If the checks print nothing and the dry run looks right, run the dry-run part again without -WhatIf. The checks matter: -WhatIf looks at each rename on its own, so it won't spot two rows that give the same new name.
"Already taken" also catches swaps, such as a.pdf to b.pdf and b.pdf to a.pdf. Do those in two passes, through a temporary name. If anything slips through, Rename-Item never replaces an existing file: that row fails with an error and the rest carry on. There's no undo, but you can swap the two headings in the CSV and run it again to put the names back. If your Excel saves CSV files with semicolons, as it does with some European settings, add -Delimiter ';' after the path.
2. Build ren commands in Excel
Good for: short lists of plain names.
Many guides suggest a formula that writes a Command Prompt ren command for each row. With old names in A and new names in B, put this in C2 and fill it down:
="ren """&A2&""" """&B2&""""
It gives lines such as ren "Scan 0001.pdf" "Invoice 4471.pdf". Copy column C into Notepad, save it as rename.bat in the folder with the files, and double-click it.
It works for plain names, but we found two traps when we tested it. A percent sign is dropped inside a batch file, so a file called 50% off.pdf isn't found and that row fails. And Command Prompt reads batch files in an older character set, so a name such as Café.pdf can come out garbled. There's no dry run or undo, and like PowerShell, ren refuses a name that's already taken, so a clash leaves the job half done.
3. Bulk Rename Utility
Good for: Windows users who'd rather use an app than a script.
Bulk Rename Utility can rename from a text file of old and new name pairs. Put old names in column A and new names in B, extensions included and with no heading row, and save as CSV UTF-8. In Bulk Rename Utility, open the folder, choose Actions > Import Rename-Pairs (CSV) > Import Rename-Pairs from File (CSV) and pick the file. Select the files, check the New Name column, then choose Rename. You can also copy the two columns in Excel and use Import Rename-Pairs from Clipboard (Ctrl+Alt+C).
Its manual says names are matched ignoring capitals and that it can undo renames. It runs on Windows only. It's free for personal, private use at home; using it for work, in a company or in a government body needs a commercial licence for each computer, according to its licence agreement.
When a tool is quicker
PowerRename and Finder can't rename from a list at all, and the methods above need a script or a Windows app. Rename Files does it in your browser, on Windows or Mac.
Choose the folder, pick From a spreadsheet and choose an .xlsx or .csv file with a column of current names and a column of new names. Download the current names (.xlsx) gives you the list ready to fill in. A new name without an extension keeps the file's own, and an optional folder column handles files in subfolders. Rows that don't match a file are listed for you to check. The preview flags two files getting the same name, names already taken, and names that Windows, a Mac or OneDrive won't take. Swaps go through a temporary name, nothing is ever overwritten, and Undo puts the old names back. Every renaming comes with a log you can load later to restore the old names.
In Chrome and Edge on a computer the files are renamed where they are; Firefox, Safari, phones and tablets give you renamed copies in a .zip file. Your files never leave your computer. The free version renames up to 25 files at a time; Pro is £15 once and renames any number. You can try it with a sample, or see how to rename multiple files at once for rules such as find and replace and numbering.
Quick answers
Can Excel rename files? Not without a macro. It's easier to keep the list in Excel and let PowerShell or a renaming app do the renaming.
Do I need the extension in the list? For PowerShell, batch files and Bulk Rename Utility, yes, in both columns. Rename Files keeps each file's own extension if the new name leaves it out.
What if two files would get the same new name? The second rename fails, because neither PowerShell nor ren replaces an existing file. Check the list for repeated names before you start.