sturdybits

Guides / Rename Files

How to rename multiple files at once on Windows and Mac

30 November 2026

To rename several files at once on Windows, select them in File Explorer, press F2, type a name and press Enter: every file gets that name with a number, such as Holiday (1).jpg and Holiday (2).jpg. On a Mac, select them in Finder, Control-click one and choose Rename to replace text, add text or number them.

For anything more, such as changing one word in every name, Microsoft's free PowerRename or a line of PowerShell will do it. Whichever you use, check the new names before you commit, and know how to undo.

1. File Explorer on Windows

Good for: giving a batch of files one name and a number.

  1. Open the folder and select the files. Ctrl+A selects them all; Ctrl-click picks some.
  2. Press F2, or right-click one of them and choose Rename.
  3. Type the new name, such as Holiday, and press Enter.

Windows names them Holiday (1), Holiday (2) and so on. If it isn't what you wanted, press Ctrl+Z straight away to undo it.

That's all it does. You can't keep part of the old name, replace one word, choose how the numbers look or add a date.

2. PowerRename on Windows

Good for: find and replace, numbers and dates, with a preview.

PowerRename is part of Microsoft PowerToys, a free set of Windows utilities from Microsoft. Once it's installed, select the files in File Explorer, right-click and choose Rename with PowerRename.

Type the text to change in Search for and its replacement in Replace with. A preview shows every old and new name before anything changes. Options let you match capitals, change case, use regular expressions, add a counter (${}, with a start number and leading zeros if you like), and add the file's creation date or, for photos, the date taken. Microsoft's PowerRename guide lists every pattern, and notes that File Explorer's Undo Rename (Ctrl+Z) undoes the last change.

Limits: it's Windows only, and it has to be installed, which some work computers don't allow. Regular expressions are powerful and easy to get wrong, so watch the preview.

3. PowerShell on Windows

Good for: repeatable jobs, with nothing to install.

PowerShell comes with Windows. Open the folder in File Explorer, type powershell in the address bar and press Enter, and a PowerShell window opens in that folder. This changes IMG_ to Cornwall in every .jpg file whose name starts with IMG_:

Get-ChildItem -File -Filter 'IMG_*.jpg' |
    Rename-Item -NewName { $_.Name.Replace('IMG_', 'Cornwall ') } -WhatIf

-WhatIf lists what would happen without changing anything. When the list looks right, run it again without -WhatIf.

Many guides use -replace here instead of .Replace(). The difference matters: -replace treats what you type as a pattern, so a dot in it matches any character, while .Replace() changes exactly the text you typed, capitals included.

Rename-Item won't replace a file that already has the new name: it shows an error for that file and carries on with the rest. There's no undo, so try it on a copy of the folder first. Microsoft's Rename-Item reference has more examples.

4. Finder on a Mac

Good for: replacing text, adding text or numbering, with nothing to install.

  1. Select the files in Finder, then Control-click one of them and choose Rename.
  2. In the pop-up menu, choose Replace Text, Add Text or Format.
  3. Replace Text swaps one piece of text for another. Add Text puts text before or after each name. Format gives every file a new name with an index number, counter or date, starting from a number you choose.
  4. Click Rename.

To undo, choose Edit > Undo Rename or press Command-Z before you do anything else in Finder. Apple's guide to renaming files on Mac has the details.

Limits: one kind of change per run, so replacing a word and then numbering the files takes two runs, and Format replaces the whole name.

Before you rename a whole folder

When a tool is quicker

Explorer and Finder are fine for simple jobs, and PowerRename covers most of the rest on Windows. Rename Files is for when you'd rather not install anything or write a script, want the same tool on Windows and Mac, or want the new names to come from a spreadsheet.

Choose a folder and stack up rules: find and replace, add text, numbers, dates (including the date a photo was taken), capitals, removing characters and tidying spaces. Or load a spreadsheet of old and new names. Every new name shows before anything changes, and clashes and names that Windows, a Mac or OneDrive won't take are flagged. Files swapping names go through a temporary name, nothing is ever overwritten, and Undo puts the old names back. A log of every old and new name lets you put them back later, too.

In Chrome and Edge on a computer, the files are renamed where they are. Firefox and Safari can't change files on your computer, so they give you renamed copies in a .zip file, and so do phones and tablets. It runs in your browser and 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 sample photos first.

Quick answers

Can I undo a batch rename? In File Explorer and Finder, yes, with Ctrl+Z or Command-Z, if it's the last thing you did. PowerRename's changes undo the same way in File Explorer. A PowerShell rename has no undo.

Why does Windows add (1), (2) to the names? Two files in one folder can't have the same name, so File Explorer numbers them. To choose the format, such as 001, use PowerRename's counter, or Finder's Format option on a Mac.

Can I rename files from a list of new names, or from text inside them? None of the built-in tools can. See how to rename files from a list in Excel and how to rename PDF files based on their content.