Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Batch Rename Files Tool Mac OS X: Best Ways

· 5 min read · Home Tech

In this article
  1. What macOS Offers Out of the Box
  2. How to Use Finder’s Batch Rename
  3. When Finder’s Tool Isn’t Enough
  4. Using Automator for Advanced Automation
  5. Command Line: The Power User’s Choice
  6. Choosing the Right Tool
  7. Common Pitfalls and How to Avoid Them
  8. Frequently Asked Questions

To batch rename files on macOS, you don’t need a third‑party tool—the built‑in Finder feature handles most common tasks, and the free Automator app can automate more complex workflows. This article explains how to use both, when to reach for a dedicated app, and how to avoid common pitfalls.

What macOS Offers Out of the Box

Since OS X 10.10 Yosemite, Finder has included a “Rename Items” feature that lets you rename multiple files at once without any extra software. It’s hidden in the right‑click menu and supports four basic operations:

  • Replace Text – find and replace a substring in every filename.
  • Add Text – append text before or after the current name.
  • Format – set a custom name with a counter or date, and choose where the number goes.
  • Convert – change the extension (e.g., .jpeg to .jpg) or make names uppercase/lowercase.

These cover a surprising number of everyday needs, like renaming “IMG_001.jpg” to “vacation_01.jpg” or adding “_final” to a set of documents.

How to Use Finder’s Batch Rename

Here’s the step‑by‑step for the built‑in tool:

  1. Select the files you want to rename in Finder.
  2. Right‑click (or Control‑click) one of the selected files.
  3. Choose Rename Items from the context menu.
  4. Use the dropdown on the left to pick the operation (Replace Text, Add Text, Format, or Convert).
  5. Fill in the fields—for example, under Format you can set “Name Format: Name and Counter” and enter a base name like “Holiday”.
  6. Preview the new names appear in real time at the top of the dialog.
  7. Click Rename to apply.

You can also trigger this from the menu bar: File → Rename Items (the menu item appears only when multiple files are selected).

When Finder’s Tool Isn’t Enough

The built‑in feature has limits. It can’t handle complex patterns, regular expressions, or metadata‑based renames (like using EXIF dates). For those, you need a dedicated app. Popular free options include Name Mangler (trial, then paid), Renamer (paid), and Transnomino (free and open‑source). These offer:

  • Regular expression search and replace
  • Sequential numbering with custom start and step
  • Case conversion, removal of spaces, and character cleanup
  • Use of file metadata (creation date, camera model, etc.)
  • Preview and undo history

If you need to rename thousands of files with a specific pattern, a dedicated tool will save you time and avoid errors.

Using Automator for Advanced Automation

Automator, also built into macOS, can create a reusable “Quick Action” that renames files right from the Finder context menu. For example, you can build a workflow that:

  1. Gets selected Finder items
  2. Applies a “Rename Finder Items” action (with options like “Make Sequential”)
  3. Saves as a Quick Action

Once saved, it appears in the right‑click menu under “Quick Actions”. This is great for a repetitive task you do often, and it doesn’t require any coding. However, Automator’s rename actions are limited compared to dedicated apps—you can’t use regex or complex logic without adding a “Run Shell Script” action.

Command Line: The Power User’s Choice

If you’re comfortable with Terminal, the rename command (available via Homebrew) or a simple for loop can do almost anything. For example, to add “_backup” to all .txt files in the current folder:

for f in *.txt; do mv "$f" "${f%.txt}_backup.txt"; done

This is powerful but risky—a typo can rename files incorrectly. Always test on a copy or use echo to preview the command first. The rename utility (install with brew install rename) supports regex and has a -n flag to simulate the rename without actually doing it.

Choosing the Right Tool

Here’s a quick guide:

  • One‑time simple rename – Use Finder’s built‑in feature.
  • Recurring task – Create an Automator Quick Action.
  • Complex pattern or regex – Use a dedicated app like Transnomino.
  • Scripting or bulk automation – Use Terminal with rename or a shell loop.

Consider the learning curve: Finder is instant, Automator requires a bit of setup, and Terminal requires comfort with the command line. For most users, Finder’s tool is sufficient for 90% of tasks.

Common Pitfalls and How to Avoid Them

  • Accidentally renaming extensions – When using “Replace Text”, make sure you’re not changing the part after the last dot unless you intend to. Finder shows a warning if you try to change the extension.
  • Losing the original order – The “Format” option numbers files in the order they appear in the Finder window, which may not be alphabetical or chronological. Sort files first.
  • No undo in Finder – Finder’s rename has an undo (Cmd+Z), but it only works immediately after. For large batches, test on a few files first.
  • Hidden files – Finder’s rename won’t touch hidden files (those starting with a dot). Use Terminal for those.

Frequently Asked Questions

Can I undo a batch rename in Finder?

Yes, immediately after renaming, press Cmd+Z or choose Edit → Undo. This works for the entire batch. If you’ve done other actions since, you may not be able to revert.

How do I rename files with a counter starting from 01?

In Finder’s Format option, set “Name Format” to “Name and Counter”, then enter the base name. The counter starts at 1 by default, but you can change the “Start numbers at” field to 01, 001, etc., by typing the number with leading zeros.

Does the built‑in tool work on files in subfolders?

No, Finder’s rename only affects the selected files in the current folder. To rename files in subfolders, you’ll need to use Automator (with “Get Folder Contents”) or a shell command.

Is there a free batch rename app for Mac?

Yes, Transnomino is free and open‑source. It supports regex, metadata, and sequential numbering, and it’s available on the Mac App Store or GitHub.

Can I use Automator to rename files by date taken?

Yes, you can use the “Rename Finder Items” action with the “Make Sequential” option, but for metadata like EXIF date, you’ll need a dedicated app like Name Mangler or a shell script using exiftool.