How to Rename Multiple Files at Once on Mac
Rename a whole batch of files in Finder in one pass by replacing text, adding a prefix or suffix, or numbering them from a base name you choose.
Finder can rename dozens of files in one go with no extra software. You select the files, choose a rule, and every name changes together.
Select the files in Finder
Open the folder and select the files. Click the first one, then hold Shift and click the last for a range, or hold Cmd and click each file you want. Press Cmd + A to select everything in the folder.
Open the rename dialog
Right-click any selected file and choose Rename N Items, where N is the number you selected. You can also choose File, Rename N Items from the menu bar.
Choose a rename rule
The pop-up menu at the top-left of the dialog has three modes.
Replace Text swaps one string for another in every name. Type the text to find and what to replace it with, for example IMG_ to Vacation-.
Add Text puts text before or after each existing name, for a prefix or suffix.
Format builds new names from scratch. Choose Name and Index, Name and Counter, or Name and Date, type the base name in the Custom Format field, and set Start numbers at to the first number you want. The Where menu puts the number after or before the name.
Check the example and click Rename
The Example line at the bottom of the dialog previews the result for the first file. When it looks right, click Rename. File extensions are kept as they were, and the files keep their contents, dates, and tags.
Undo if the result is wrong
Press Cmd + Z in Finder right away, or choose Edit, Undo Rename, and every file gets its old name back. Undo covers the most recent Finder action only, so do it before moving or renaming anything else.
If the numbering comes out in the wrong order. The index follows the order the files are listed in the Finder window. Sort the window by name or by date before selecting, then rename again.
If Rename N Items is missing from the menu. You do not have permission to write to that folder, or the files are on a read-only disk. Copy them to a folder in your home directory and rename them there.
More Mac how-tos
- How to AirDrop from iPhone to Mac
- How to Back Up a Mac with Time Machine
- How to Change the Default App for a File Type on Mac
- How to Change the Default Browser on Mac
- How to Check Memory Usage on Mac
- How to Check Which macOS Version You Have
- How to Connect AirPods to a Mac
- How to Find Your IP Address on Mac
- How to Flush the DNS Cache on Mac
- How to Force Quit an App on Mac
- How to Free Up Storage on Mac
- How to Generate an SSH Key on Mac
- How to Record Your Screen on Mac
- How to Show Battery Percentage on Mac
- How to Show Hidden Files on Mac
- How to Take a Screenshot of Part of the Screen on Mac
- How to Uninstall an App on Mac
- How to Use Split Screen on Mac
- How to Zip and Unzip Files on Mac
- How to Check If a Port Is in Use on Mac