How to Batch Rename Multiple Files on Your Mac

Lori Kaufman 29-08-2017

You have a million files to rename on your computer, and you’re not looking forward to the long and tedious task. Don’t panic. You don’t have to rename all your files manually. We’ve looked at ways to batch rename files in Windows How to Batch Rename & Mass Delete Files in Windows Are you pulling your hair out over how to batch rename or delete hundreds or thousands of files? Chances are, someone else is already bald and figured it out. We show you all the tricks. Read More , but there are also easy ways to do this on a Mac.


Back in the day, you had to select each individual file, press Enter, and select the part of the filename to rename, or retype the whole thing. Now, you can do fancy tricks when renaming multiple files, like replace text in filenames, add numbers or other text to the beginning or end of filenames, or remove text from filenames.

There are several ways to batch rename multiple files on your Mac. Today we look at using the Rename feature in Finder, creating an Automator workflow, and using a free app called NameChanger to rename multiple files.

Batch Renaming Multiple Files Using Finder

Finder now includes a very useful Rename tool. You can replace text in a filename, add text before or after the current name, or choose a new name format and add an index, counter, or date before or after that name.

Selecting Files to Rename

To use the Rename tool in Finder, open the folder in Finder containing the files you want to rename and select them.

select rename x items finder mac


Next, press Control and click on the selected files. Select Rename X Items from the popup menu. The “X” indicates the number of files that are selected to rename.

Replacing Text in Filenames

On the Rename Finder Items popup window, you can choose to replace text in the names, add text to the names, or change the name format.

First, we’ll look at replacing text, so select Replace Text from the dropdown list.

replace text finder mac


Enter the text you want to replace in the Find box. Then, enter the text you want to add in its place in the Replace with box. You can use this method to remove text from filenames. Simply leave the Replace with box blank. The Example preview shows you how the filenames will look after renaming. Click Rename.

Adding Text to the Beginning or End of Filenames

To add text to filenames, select Add Text from the dropdown list on the Rename Finder Items dialog box.

add text finder mac

Enter the text you want to add and then select whether you want to add the text before or after the name. Then, click Rename.


Replacing the Name and Adding an Index, Counter, or Date

If you want to name many files with the same name and add an index or date to the names, select Format from the drop-down list on the Rename Finder Items dialog box.

Select an option from the Name Format dropdown list to indicate whether you want to add an Index, a Counter, or a Date to the name. Then, select after name or before name from the Where dropdown list.

format finder mac

Next, enter the text you want to use for each filename in the Custom Format box. If you selected Name and Index or Name and Counter from the Name Format dropdown list, enter the number you want to start from in the Start numbers at box. For the Name and Date option, you only get one date format.


An example of how the filenames will look once they’re renamed displays below the Custom Format box. If you leave the Custom Format box blank, a space and the Index, Counter, or Date will be added after the current name.

Undoing the Rename Process in Finder

To reverse the changes and go back to the previous filenames, go to Edit > Undo Rename in Finder.

undo rename finder mac

Batch Renaming Multiple Files Using Automator

Your Mac includes a very handy tool called Automator that does exactly what it says in the name — it automates tasks. It’s similar to using batch files on Windows to automate tasks How to Use Windows Batch File Commands to Automate Repetitive Tasks Do you frequently execute boring and repetitive tasks? A batch file might be exactly what you’re looking for. Use it to automate actions. We'll show you the commands you need to know. Read More , but it’s easier to use.

It’s easy to set up an Automator Workflow to batch rename multiple files.

Creating a New Workflow

Open Automator from the Applications folder or Launchpad, or by searching for it in Spotlight Search More Efficiently In Mac OS X With Our Top Spotlight Tips Spotlight has been a killer Mac feature for years, with Cupertino regularly schooling Redmond in the art of desktop search. Here are a few tips to help you find more on your Mac. Read More .

A dialog box displays allowing you to open an existing workflow, or create a new one. Click New Document.

click new document automator mac

In the Choose a type for your document box, click Workflow. Then, click Choose.

click workflow then choose automator mac

Building a Workflow to Batch Rename Files

Now, we’re going to build the workflow with actions.

To begin, select File & Folders on the far left under Library. Then, drag the Get Selected Finder Items action to the gray box on the right.

drag get selected finder items automator mac

Next, drag the Rename Finder Items action under the Get Selected Finder Items action on the right.

drag rename finder items automator mac

A dialog box displays asking if you want to add a Copy Finder Items action to the workflow. This allows you to make copies of the files in case something goes wrong. The original files remain unchanged.

To automatically add the Copy Finder Items action, click Add.

click add automator mac

By default, the duplicate files will be saved on the desktop and not in a folder. If you have a lot of files, you should save them to a folder. Create a folder on the desktop you can choose as the destination.

On the Copy Finder Items action box, select Other from the To dropdown list.

select other for folder automator mac

Navigate to the folder you created on your desktop (or elsewhere) and click Choose.

choose folder automator mac

Now, choose how you want to rename your files. Select an option from the dropdown list at the top of the box. You can add the date or time, add text before or after the file name, change the case of the filename, make the filename sequential with incrementing numbers before or after the filename, or replace specified text with a new string of text.

The other options change depending on the option selected in the dropdown list. Select the options you want, referring to the Example at the bottom of the action box to see how the filenames will look.

rename finder items options automator mac

Saving the Workflow as an App

You can add your workflow to the Dock for easy access. Go to File > Save.

go to file save automator mac

Navigate to the folder where you want to save your app. You can put it in the Applications folder (or any other folder). Enter a name for the app in the Save As box and click Save.

save batch rename files app automator mac

Adding the Batch Rename App to the Dock

To add the app to the Dock, drag the .app file to the Dock.

drag app to dock mac

Using the Batch Rename App to Rename Files

Now you can use your new app to rename multiple files. Open Finder and select the files you want to rename. Drag the files to the Batch Rename app icon on the Dock.

Your files will be renamed and either duplicated to the folder you specified, if you chose that option, or they will replace the original files.

drag images onto app mac

Batch Renaming Multiple Files Using NameChanger

You can also use a free app called NameChanger Batch Rename Your Files Easily - Mac Style (Mac Only) Read More to batch rename files. It provides some of the same options for renaming multiple files as Finder and Automator, plus an additional useful feature.

Download NameChanger and extract the ZIP file. Either run the .app file from the current folder, or copy or move it to the Applications folder and run it from there.

Adding Files to be Renamed

NameChanger opens to a simple interface. Click Add to add files to be renamed.

click add in namechanger mac

Navigate to the folder containing the files you want to rename, select them, and click Open.

select files to rename namechanger mac

You can also drag selected files from Finder to the NameChanger window to add them.

Setting Preferences

There are a few options you can set in NameChanger. Go to NameChanger > Preferences to access them.

go to namechanger preferences mac

Change options as you see fit. The Hide extensions by default option is useful for some of the renaming methods. We’ll talk more about that later.

namechanger preferences dialog mac

Checking and Unchecking Files

All the files you added are checked by default. Use the File menu to quickly change which files are checked and not checked.

selecting files namechanger mac

Selecting a Rename Method

The dropdown list in the middle of the bar above the file list provides various methods for renaming files. Select the one you want. For our example, we’re going to use the Wildcard method. This allows us to use the asterisk (*) and question mark (?) to indicate text to be replaced.

select wildcard namechanger mac

Use the asterisk to replace all the text and the question mark to replace a single character. For example, we want to replace the entire filename, so we enter “*.jpg” in the box on the left. Then, we enter the text we want to replace it with in the box on the right. Numbers are automatically added to the filenames.

The right column shows how the filenames will change when you rename the files. Click Rename on the toolbar to rename the files as specified.

click rename namechanger mac

Adding Sequential Numbers to Filenames

Use the Sequence method to add sequential numbers to the beginning (Prepend) or end (Append) of the filenames.

If you choose to add numbers to the end of your filenames, you must hide the file extensions, as we mentioned earlier. If you don’t, the numbers are added after the file extension, not at the end of the filename.

If you didn’t turn on the Hide extensions by default option in the Preferences, you can also hide them by going to Options > Hide Extensions.

use sequence namechanger mac

Reordering Files Using the Image Browser

If you’re renaming image files and you want to reorder them, you can visually reorder the files in NameChanger. Click Image Browser on the toolbar.

click image browser namechanger mac

Thumbnails of your images display in a separate window in numerical order. To reorder the files, drag the file you want to move to the desired location.

move image in browser mac

The filenames are renumbered automatically in the list.

Saving the Current Rename

If you’re going to use the current rename repeatedly, you can save it and reload it when needed. To save the current rename, go to Renames > Save Current Rename.

save current rename namechanger mac

Enter a title for the rename and click Add.

enter title for rename mac namechanger

Deleting a Saved Rename

If you no longer need a saved rename, you can delete it. Go to Renames > Manage Saved Renames.

manage saved renames mac namechanger

Select the rename you want to delete and click the minus button.

delete saved rename namechanger mac

Loading a Saved Rename

To use a saved rename, first add the files to be renamed. Then, go to the Renames menu and select the rename from the list at the bottom of the menu.

use saved rename namechanger mac

Go Batch Rename Your Files

Hopefully one of these methods meets your needs for batch renaming files on a Mac.

What’s your preferred method of batch renaming files? Have you found a different tool you like? Share your experiences and recommendations with us in the comments.

Related topics: File Management, Mac.

Affiliate Disclosure: By buying the products we recommend, you help keep the site alive. Read more.

Whatsapp Pinterest

Leave a Reply

Your email address will not be published. Required fields are marked *

  1. blm
    October 26, 2017 at 2:54 am

    This is only for the geeks among us, but I use in iTerm (or Terminal). It opens the list of file names in vi (or whatever $EDITOR is set to). You edit the file names, using the full editing power of vi, then when you quit, vimv renames the files from the old names to the edited names.