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
102 months ago
Automator says hi.
Score: 6 Votes (Like | Disagree)
Abstract Avatar
102 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
102 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
102 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)
102 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
102 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 pro tell logo

Apple Launching Five New Products This Friday

Monday November 2, 2026 1:22 am PST by
Apple is releasing five new products this Friday, November 6, following pre-orders that opened last week, including its first touchscreen MacBook Pro models. The following new products will be available from Friday: iPad mini with OLED display and A20 Pro chip iMac with M6 chip 14-inch MacBook Pro with M6 chip 14-inch MacBook Pro with OLED touchscreen 16-inch MacBook Pro with OLED...
Apple Logo Gradient 16x9 1

Apple Isn't Done With 2026: Here's What's Still Coming

Monday November 2, 2026 7:27 am PST by
Apple's busiest season isn't over yet. Far from it. With two hardware launch dates still to come in November, plus software updates and new smart home accessories running into December, there's more on the way from Apple before the end of 2026, so be sure to stick around. Below, we've rounded up what's still coming, along with one date in particular that's worth watching if you're a holiday...
iPad Pro 2024 vs Air 2024 Feature

Three New iPads Rumored to Launch in First Half of 2027

Sunday November 1, 2026 7:27 am PST by
After announcing a new iPad mini with an OLED display earlier this month, Apple plans to release new iPad Air, iPad Pro, and entry-level iPad models in the first half of 2027, according to the latest word from Bloomberg's Mark Gurman. In his Power On newsletter today, Gurman said the next iPad Air will also feature an OLED display, while he expects the next iPad Pro to be equipped with a...
Latest Stories
Everything New in the iOS 27.3 Beta
Everything New in the iOS 27.3 Beta
12 hours ago
Apple Music's New Selfie Sing Feature Lets You Record Karaoke Videos
Apple Music's New Selfie Sing Feature Lets You Record Karaoke Videos
12 hours ago
iPhone Jailbreak Gets Past Lockdown Mode and Survives an Update
iPhone Jailbreak Gets Past Lockdown Mode and Survives an Update
14 hours ago
iPadOS 27.3 Expands Siri Mode to Camera App
iPadOS 27.3 Expands Siri Mode to Camera App
15 hours ago
Veterans Day Apple Watch Activity Challenge Launches November 11
Veterans Day Apple Watch Activity Challenge Launches November 11
16 hours ago
Best Early Black Friday Mac Deals: Save Hundreds on MacBook Air, Mac Mini, and More
Best Early Black Friday Mac Deals: Save Hundreds on MacBook Air, Mac Mini, and More
17 hours ago
Apple Fitness+ Gets Gym Strength Plans in iOS 27.3
Apple Fitness+ Gets Gym Strength Plans in iOS 27.3
17 hours ago
iOS 27.3 Adding New StandBy Mode Features to iPhone 11 and Newer
iOS 27.3 Adding New StandBy Mode Features to iPhone 11 and Newer
17 hours ago
Apple Releases New AirPods Beta Firmware
Apple Releases New AirPods Beta Firmware
17 hours ago
iOS 27.3 Beta Brings Apple Intelligence to China
iOS 27.3 Beta Brings Apple Intelligence to China
17 hours ago
iPhone Duo Gets Reachability in iOS 27.3 Beta
iPhone Duo Gets Reachability in iOS 27.3 Beta
17 hours ago
Siri AI Gets More Capable in iOS 27.3
Siri AI Gets More Capable in iOS 27.3
17 hours ago
iOS 27.3 Adds Vertical Tabs and Adaptive Dark Mode to Safari
iOS 27.3 Adds Vertical Tabs and Adaptive Dark Mode to Safari
18 hours ago
watchOS 27.3 Brings Live Rewind and Siri Recap to Apple Watch
watchOS 27.3 Brings Live Rewind and Siri Recap to Apple Watch
18 hours ago
iOS 27.3 Beta Brings Back Apple's Redesigned Health App
iOS 27.3 Beta Brings Back Apple's Redesigned Health App
18 hours ago
Apple Releases First macOS Golden Gate 27.3 Beta
Apple Releases First macOS Golden Gate 27.3 Beta
18 hours ago
Apple Seeds First iOS 27.3 Beta
Apple Seeds First iOS 27.3 Beta
18 hours ago
Apple Releases First watchOS 27.3, tvOS 27.3 and visionOS 27.3 Betas
Apple Releases First watchOS 27.3, tvOS 27.3 and visionOS 27.3 Betas
18 hours ago
iPad Mini 8 Reviewer Dissatisfied With Apple's Excuse for Lack of 120Hz Display
iPad Mini 8 Reviewer Dissatisfied With Apple's Excuse for Lack of 120Hz Display
18 hours ago
iPad Mini 8 Review Claims Battery Life is Way Better Than Apple Says
iPad Mini 8 Review Claims Battery Life is Way Better Than Apple Says
19 hours ago
B&H Photo Launches Early Black Friday Sale With Discounts on Macs and Accessories
B&H Photo Launches Early Black Friday Sale With Discounts on Macs and Accessories
19 hours ago
iPhone Duo Could Take Nearly 30% of Foldable Market in 2027
iPhone Duo Could Take Nearly 30% of Foldable Market in 2027
20 hours ago
Apple Watch Automatically Identifies Songs Playing Around You
Apple Watch Automatically Identifies Songs Playing Around You
20 hours ago
iPhone 18 Rumored to Get Larger Battery and Potential Price Increase
iPhone 18 Rumored to Get Larger Battery and Potential Price Increase
21 hours ago
Apple Store in UK Permanently Closing Later This Month
Apple Store in UK Permanently Closing Later This Month
21 hours ago
Apple's Annual R&D Spending Jumps by More Than $11 Billion
Apple's Annual R&D Spending Jumps by More Than $11 Billion
22 hours ago
Will Apple Ever Merge iPadOS and macOS? John Ternus Responds
Will Apple Ever Merge iPadOS and macOS? John Ternus Responds
22 hours ago
MacBook Neo Gets Rare $30 Amazon Discount
MacBook Neo Gets Rare $30 Amazon Discount
22 hours ago
Hands-On: The OLED iPad Mini is Almost an iPad Pro Mini
Hands-On: The OLED iPad Mini is Almost an iPad Pro Mini
22 hours ago
tvOS 27.2.1 and macOS 27.2.1 Likely Coming Soon
tvOS 27.2.1 and macOS 27.2.1 Likely Coming Soon
23 hours ago