How to batch rename lots of files on Mac at the same time

127.1K views
8 min read

Renaming a single file on macOS is easy — just select it and hit Return, or right-click and choose Get Info. But renaming multiple files one by one is time-consuming and error-prone.

When I need to clean up generic file names or reorganize folders, batch renaming saves me hours. 

In this article, I’ll show you my favorite mass file renamers and methods to batch rename files quickly and efficiently. Let’s start with the easiest tool for the job.

How to batch rename files using Renamer

When I first tackled the daunting task of renaming thousands of vacation photos, I quickly realized I needed a better solution than manually renaming each file. That’s when I discovered Renamer. The app has all the tools you need for complete control over batch renaming files. It allows you to: 

  • Easily add and replace text in any number of files
  • Number files randomly or sequentially
  • Organize file renaming tasks into Renamerlets, using either those already built-in or customizing your own
  • Create chains to handle complex file renaming tasks
  • Insert music track numbers, switch between upper and lower case, add dates and location tags
  • Change or remove file extensions
  • Preview the way files are going to look like before you’ve proceeded with the renaming process. 

Here’s how I use Renamer to bulk rename files:

  1. Open the Renamer app
  2. Drag and drop the files you’d like to rename onto the window. If you’d rather find them manually, click on the plus button to search your hard drive.
  3. Use Renamerlet protocols from the left-hand menu for specific rules depending on file types, such as adding geotags to photos
  4. If the formatting you need isn’t already a Renamerlet, you can create your own by pressing the plus button at the very bottom of the left-hand menu and selecting New Renamerlet. Assign it a name and, after pressing OK, you can set up its own particular function.

Rename batch files

How to rename multiple files at once with different names

I’ve also been using Keep It Shot to rename multiple files for quite some time, and it’s a game changer. With just two clicks, I can rename large batches of files and track my progress with a handy progress bar.

The app uses AI to analyze my screenshots and generate meaningful names, making it easier to search and file them.

I can also define tailored renaming preferences and automate the renaming of new screenshots. If I don’t like the new names, I can easily revert to the original names with a single click. This flexibility and efficiency have made organizing my files so much easier.

Keep It Shot to rename multiple files

I also use Squash. The app has a simple batch renaming tool. Plus, it helps me deal with a number of other small tasks, such as compressing, resizing, or adding watermarks to my photos. Overall, it’s a universal batch image processor. 

Squash, an image processor


How to rename multiple files in Finder

It’s possible to edit multiple file names at the same time using a simple Finder window. Here’s how to do that:

  1. Open Finder on your Mac
  2. Find the files you are looking to rename
  3. Use Shift-click to select a batch of files
  4. Click the three-dots icon at the top of the Finder window
  5. Click Rename 
  6. Select Format (the third option in the Rename toolbar)
  7. Here you need to select a Name Format for your file renaming. You can choose from Name and Index, Name and Counter, and Name and Date.
  8. In the Custom Format box, enter the new name that will be included in all of the selected files
  9. Enter a number in the “Start numbers at” box. It could be 1, but it doesn’t have to be.
  10. Click Rename.  

As a result, all of the selected files will be renamed with the title you entered in the Name Format box plus a sequential number beginning with the digit in the “Start numbers at” field.

rename files in finder

How to add text to a batch of existing file names

Sometimes the file names in question are fine as they are — they just need an extra identifier to be properly distinguished. If you’d like to add text to the file name without deleting the original name, you can do that using Finder as well:

  1. Open Finder on your Mac
  2. Find the files you need to rename
  3. Use Shift-click to select a batch of files
  4. Click the three-dots icon > Rename 
  5. In the dropdown menu, select the second option Add Text
  6. In the Add Text field, enter the word or words you would like to be added to the file name
  7. You can also choose whether the addition will be inserted before or after the existing file name
  8. Select Rename to update the file names with the new text. 

batch add text to files

How to rename an open file

Since documents that are open or currently in use are locked from being edited, they can’t be renamed through the Finder function or by selecting Get Info or hitting Return when the file is selected. It’s a hassle to close down a document you’re working on just to rename the file — but if you don’t, you’re likely to forget by the time you’re done with it.

One quick hack for renaming an open document is to simply save it again with a new name:

  1. Go to File > Save As
  2. Enter a new file name and choose a new location if you’d like to
  3. Click Save.  

The document name has now been changed to its new name, and all new saves will be done there. Remember to delete the old document copy with the original name.


How to undo a batch-rename of files on Mac

If you use Renamer, you can undo the latest batch-rename easily: 

  1. Choose Edit in the app’s menu 
  2. Choose ‘Undo Rename Files’

undo batch rename files

The same goes for Finder. If you’ve just recently renamed a batch of files and want to undo that action, go to Edit > Undo Rename (alternatively, press Command + Z). However, since Finder only allows you to undo recent actions, you won’t be able to undo a batch-rename if you ran any other action in Finder after you had renamed files. 

How to replace and search certain words in files on Mac 

It’s easy when you know which files to rename but what if you don’t? If you have a huge pack of photos, for example, and need to rename just a dozen of them, don’t think about manually hand-picking the right photos, there’s an easier way. 

Create a Renamerlet in Renamer for searching and replacing words in files: 

  1. Click the plus button in Renamer’s toolbar to add a new Renamerlet
  2. Name your Renamerlet and choose the action — Find & Replace
  3. Customize other things, such as whether to apply changes to the name only or name & extension; select or deselect Case Sensitive, etc. 
  4. Type the words or characters you want to replace, then the words or characters you want to replace them with
  5. Drag and drop your files, then run the Renamerlet. 

replace certain words in files

If you use Finder to batch rename files, here’s how you can find and replace words in file names: 

  1. Locate a folder that contains the files you need to rename in Finder
  2. Shift-click to select all files
  3. Click the three-dots icon on top of Finder’s window 
  4. Choose Rename > Replace Text 
  5. Type the words or characters you want to replace, then the words or characters you want to replace them with
  6. Click Rename. 

replace words in file finder

Summing up: How to mass rename files

Renaming multiple files on macOS used to be a real hassle for me. But after researching and testing various tools, I found the best solutions:

  • Renamer: Gives full control with features like adding text, numbering files, and creating custom patterns.
  • Keep It Shot: AI-powered tool that generates meaningful names and renames in just two clicks.
  • Squash: Handles batch renaming, compressing, resizing, and adding watermarks to images.

I got all these apps on Setapp. The other app I mentioned, CleanMyMac X, helps keep my Mac clean and is also available there. Setapp offers a 7-day free trial with access to over 250+ apps. I use it for so many things — editing photos, listening to music, writing with AI, and more. It has truly transformed how I manage tasks on my Mac. Give it a try.

250+ apps for $9.99
per month

Sign up to Setapp and try them for free.

Security-tested