How to Rename Several Files at Once in macOS - MacRumors
Skip to Content

How to Rename Several Files at Once in macOS

by

macos finder iconIn early versions of Mac OS, users looking for a way to quickly rename multiple files simultaneously (commonly referred to as batch renaming) had to use the command line or download and install a third-party tool dedicated to the task.

Since OS X Yosemite however, Apple has integrated several useful batch renaming capabilities directly into Finder.

To rename several files of the same kind on your Mac at once, follow the steps below. In our example we're going to be batch renaming some photos.

  1. Open a Finder window and locate the files you want to rename.

  2. Drag a selection box over the files with your mouse or hold the Shift key and click them one by one.
    how to batch rename files mac 1

  3. Click the Action button in the Finder toolbar. Alternatively, right-click (or Ctrl-click) one of the selected files in the Finder window.
    how to batch rename files mac 2

  4. Select Rename [XX] Items in the menu.

  5. Select Format from the first dropdown menu in the Rename Finder Items panel.
    how to batch rename files mac 3

  6. In the next dropdown, select a Name format. We're going to use Name and Index, but you can optionally select Name and Counter or Name and Date.
    how to batch rename files mac 4

  7. Enter a common name for your files in the Custom Format field.
    how to batch rename files mac 5

  8. Enter a starting number for the file series in the Start numbers at field. Note that if you selected a number format, you can use the Where dropdown to choose whether the sequential numbers appear before or after the common name of your files.

  9. Make sure you're happy with the preview example at the bottom of the Rename panel, then click Rename.
    how to batch rename files mac 6

The selected files will now be renamed with your chosen nomenclature. Note that if you're note happy with the change, you can select Edit -> Undo Rename in the Finder menu bar or press the keys Command-Z to revert the files back to their original names.

How to Add Text to Existing File Names

Finder's renaming tool also lets you add supplementary text to filenames without changing their original titles.

how to batch rename files mac 7
Simply select the files whose names you want to adjust and bring up the Rename Finder Items panel as described above, only select Add Text from the from the first dropdown instead. Then just type in the additional text in the input field.

How to Search and Replace Text in File Names

Finder also allows you to rename only certain files whose names include a certain piece of identifying text. This is particularly convenient if you have tens or hundreds of files in a folder with different names and you only want to change those files that contain a particular word.

Select all the files in a folder (make sure they're all of the same kind, or this won't work), bring up the Rename Finder Items panel in the same way as before, but this time select Replace Text in the first dropdown.

how to batch rename files mac 8
Now simply type the identifying text you want to replace into the Find field, and enter the text you want to replace it with in the Replace With field, then click Rename.

Top Rated Comments

Ovedius Avatar
103 months ago
Automator says hi.
Score: 6 Votes (Like | Disagree)
Abstract Avatar
103 months ago
In early versions of Mac OS, users looking for a way to quickly rename multiple files simultaneously (commonly referred to as batch renaming) had to use the command line or download and install a third-party tool dedicated to the task.
Automator!?!?!?

It’s like Apple built in a few Automator scripts into Finder, because I had 2 scripts saved from back in 2006 for exactly this purpose: batch renaming files, and replacing words in filenames with other words. I’m not a programmer or anything, but Apple made Automator so easy to use!!

I used my Automator for naming imported photos using a specific format I liked (YYYY-MM-DD, photo number starting from 001, then Custom text/title), as well as renaming songs in music albums a certain way (01. Artist Name - Song Name), etc.

This looks good too; better in some ways, but worse in others.
Score: 4 Votes (Like | Disagree)
Big Ron Avatar
103 months ago
This is something much simpler in Windows. Highlight a group of files, right click on one, choose rename, the rest get the same name with numbers. If you start one with a number in brackets or is it parentheses . The rest get higher numbers.
So what, this is a Mac forum.
Score: 3 Votes (Like | Disagree)
pecuriosity Avatar
103 months ago
how can I mass convert file formats?
need to convert RTFD to TXT
Terminal > cd to folder with RTFD files > for file in *.RTFD; do mv "$file" "${file%.rtfd}.txt"; done
Score: 2 Votes (Like | Disagree)
103 months ago
This is something much simpler in Windows. Highlight a group of files, right click on one, choose rename, the rest get the same name with numbers. If you start one with a number in brackets or is it parentheses . The rest get higher numbers.
Much simpler and less robust. That is a pretty standard trade off.
Score: 2 Votes (Like | Disagree)
Col4bin Avatar
103 months ago
This is actually pretty cool. As a graphic designer who sometimes deals with hundreds of photos and other creative assets per project, this is a great way to efficiently sort and organize files.
Score: 2 Votes (Like | Disagree)

Popular Stories

Apple Health AI Study App Feature

Apple Just Released a New App

Monday November 16, 2026 9:43 am PST by
Apple today launched a new research study in the U.S. to explore the use of AI for health, and it has released a dedicated iPhone app for participants. In a press release, Apple said the study and app are "designed to advance the understanding of how people interact with conversational health AI tools." The Apple Health AI Study App contains a generative AI chatbot that participants can...
iphone duo yellow hand

Apple Adds Facial Unlock Option on iPhone Duo in iOS 27.3

Monday November 16, 2026 10:17 am PST by
Apple today added a new option for unlocking the iPhone Duo using the front-facing camera, giving device users multiple ways to access their content. The feature is available in the second iOS 27.3 beta. The option to unlock with facial recognition is only available on the Lock Screen, and authentication via Touch ID is still needed for Apple Pay purchases, adding passwords and logins, and...
bug security vulnerability issue fix larry

iPhone Users Targeted in Major Website Security Breach

Tuesday November 17, 2026 4:41 am PST by
Hackers used some of the world's most popular websites to distribute malware designed to steal cryptocurrency and exploit vulnerabilities in iPhones and iPads this week, according to a new security investigation. Reuters reports that websites associated with 178 organizations were affected by the attack on Monday, November 16, including the likes of Zoom, BBC, CNN, HSBC, Salesforce, and...
Latest Stories
Apple Releases Safari Technology Preview 257 With Bug Fixes and Performance Improvements
Apple Releases Safari Technology Preview 257 With Bug Fixes and Performance Improvements
2 hours ago
HomeView 27.2.1 Update Fixes Siri Bugs
HomeView 27.2.1 Update Fixes Siri Bugs
4 hours ago
Apple Card Offers New Users Double Daily Cash for a Year
Apple Card Offers New Users Double Daily Cash for a Year
5 hours ago
Apple Releases 27.2.1 HomeView Software Update
Apple Releases 27.2.1 HomeView Software Update
6 hours ago
Amazon Offering $100 Off Nearly All M4 iPad Air Models
Amazon Offering $100 Off Nearly All M4 iPad Air Models
7 hours ago
Apple's Fall Creator Studio Updates Now Live
Apple's Fall Creator Studio Updates Now Live
7 hours ago
iPhone 20 Pro Rumored to Return to Titanium
iPhone 20 Pro Rumored to Return to Titanium
8 hours ago
Target's Early Black Friday Event Offers Savings on Apple, TVs, and Accessories
Target's Early Black Friday Event Offers Savings on Apple, TVs, and Accessories
9 hours ago
Apple Announces 2026 App Store Award Finalists
Apple Announces 2026 App Store Award Finalists
10 hours ago
iPhone Duo 2 Likely to Retain Touch ID as Face ID Remains Uncertain
iPhone Duo 2 Likely to Retain Touch ID as Face ID Remains Uncertain
11 hours ago
Apple Releases Siri Remote Firmware Update
Apple Releases Siri Remote Firmware Update
11 hours ago
Amazon Takes $850 Off 2026 16-Inch MacBook Pro With M5 Max Chip
Amazon Takes $850 Off 2026 16-Inch MacBook Pro With M5 Max Chip
11 hours ago
WhatsApp's iCloud Backup Alternative Rolls Out to Beta Users on iPhone
WhatsApp's iCloud Backup Alternative Rolls Out to Beta Users on iPhone
12 hours ago
MacPaw's Moonlock Cybersecurity App Launches for iPhone
MacPaw's Moonlock Cybersecurity App Launches for iPhone
12 hours ago
Apple Reportedly Developing Two Designs for 20th Anniversary iPhone
Apple Reportedly Developing Two Designs for 20th Anniversary iPhone
12 hours ago
Apple Rolls Out All-New Maps Experience Across India
Apple Rolls Out All-New Maps Experience Across India
12 hours ago
iPhone Air 2 Reportedly Sticks With Same Display
iPhone Air 2 Reportedly Sticks With Same Display
13 hours ago
iPhone 18 and iPhone Air 2 Display Production to Begin Soon Ahead of Expected March Launch
iPhone 18 and iPhone Air 2 Display Production to Begin Soon Ahead of Expected March Launch
13 hours ago
Aqara Debuts Six Matter Smart Lights That Work With Apple Home
Aqara Debuts Six Matter Smart Lights That Work With Apple Home
1 day ago
Disney+ and Hulu Will Fully Merge Into One App in December
Disney+ and Hulu Will Fully Merge Into One App in December
1 day ago
iFixit Says Apple's HomeView is Unnecessarily Hard to Repair
iFixit Says Apple's HomeView is Unnecessarily Hard to Repair
1 day ago
Final Cut Pro Now Includes MotionVFX for Creator Studio Users
Final Cut Pro Now Includes MotionVFX for Creator Studio Users
1 day ago
Apple Blames Internal Update for Outage, Says It Wasn't a Cyberattack
Apple Blames Internal Update for Outage, Says It Wasn't a Cyberattack
1 day ago
Nomad Launches Black Friday Sale With Up to 30% Off Apple Accessories
Nomad Launches Black Friday Sale With Up to 30% Off Apple Accessories
1 day ago
Google Wallet Available on iPhone, But Without Tap to Pay
Google Wallet Available on iPhone, But Without Tap to Pay
1 day ago
Apple Accounts, App Store and Apple Music Experiencing Issues
Apple Accounts, App Store and Apple Music Experiencing Issues
1 day ago
Apple Moves Ahead With Better Dual SIM Support for Apps
Apple Moves Ahead With Better Dual SIM Support for Apps
1 day ago
Former Apple Chairman Plans to Sell $32 Million in Apple Stock
Former Apple Chairman Plans to Sell $32 Million in Apple Stock
1 day ago
Apple Accused of Silencing iPhone Duo Supplier Over 'Crackgate' Issue
Apple Accused of Silencing iPhone Duo Supplier Over 'Crackgate' Issue
1 day ago
Apple Store App Now Optimized for iPhone Duo
Apple Store App Now Optimized for iPhone Duo
1 day ago