How to batch rename files on a Mac
To batch rename files on a Mac, select them in Finder, Control-click one of them and choose Rename. Finder shows three ways to rename: Replace Text, Add Text, or Format, which gives every file a new name with a counter, index or date. The preview at the bottom shows an example before you click Rename.
Last checked: October 2026 on macOS 26 Tahoe.
Rename files in Finder
- Select the files in Finder. Command-A selects everything in the folder.
- Control-click one of the selected files and choose Rename.
- Choose Replace Text, Add Text or Format from the menu at the top left of the window.
- Fill in the fields and check the example at the bottom.
- Click Rename.
The three options
- Replace Text: finds text in every name and replaces it, for example "IMG_" with "Lombok ". Leave Replace with empty to delete the text.
- Add Text: adds the same text before or after every name.
- Format: gives every file a new name. Choose Name and Index, Name and Counter, or Name and Date; set the custom name, whether the number goes after or before it, and the starting number. Name and Counter pads numbers with zeros, such as 00001.
File extensions are kept. Files are numbered in the order they appear in the window, so sort the folder first (for example by Date Created) if the order matters.
Undo a batch rename
Choose Edit › Undo Rename, or press Command-Z, straight after renaming. Finder undoes the whole batch at once.
Other built-in ways
- Shortcuts: a shortcut with the Rename File action can run on files selected in Finder when Use as Quick Action is on. Useful for a rename you repeat often.
- Terminal: a
forloop withmvcan rename by any rule, but it has no preview and no undo, so test it on copies.
Renaming files from different folders
Finder renames a selection from one window. To rename files that live in different folders in one numbered series, list them together first with a search or a tag, or move them into one folder. See How to select multiple files on a Mac.
With Dropbay
Dropbay's Rename action works on everything on a shelf, even when the files are in different folders, and leaves each file in its folder. Drop the files on a shelf, choose Rename, and pick a rule: Name and number (with a starting number and the number of digits), Find and replace, Add date, or Add text before or after the name. Extensions are kept, and the shelf follows the renamed files.
Rename is part of Dropbay Pro: included in the 14-day trial, then $5.99 once on up to 3 Macs. The shelf itself stays free. macOS 14 or later.
Questions
Where is Rename multiple files in Finder?
Select the files, Control-click one of them and choose Rename. On older versions of macOS the item reads Rename followed by the number of items.
Does batch renaming change file extensions?
No. Finder's Rename keeps each file's extension.
Can I undo a batch rename on a Mac?
Yes. Press Command-Z in Finder straight afterwards to undo the whole batch.