If you have ever come back from a photo shoot with 400 files named DSC_0001.jpg, or downloaded a batch of documents with random auto-generated names, you already know the problem: renaming them one by one takes ages, and it's easy to make a mistake you can't easily reverse.
This guide explains every practical method for batch renaming files on a Mac — including the built-in Finder option, the Automator workflow, and RenameZero, a dedicated batch rename tool that handles large batches with a live preview and an undo button.
The Quickest Way: macOS Finder's Built-in Rename
macOS has had batch rename built in since OS X El Capitan. Here is how to use it:
- Open Finder and navigate to the folder containing your files.
- Select all the files you want to rename. Press Command + A to select all, or hold Shift or Command and click to select specific files.
- Right-click (or Control-click) any selected file.
- Choose Rename X Items… from the context menu.
A dialog box appears with three options:
- Replace Text — finds a string in the current filename and replaces it with another.
- Add Text — adds text before or after the existing filename.
- Format — replaces the entire filename with a custom base name plus a number or date.
Finder's built-in rename is useful for simple jobs. It works well when you need to add a prefix to every file or replace a predictable string. Its limitations: there is no live preview before you rename, you cannot chain multiple operations together (prefix + number + case change, for example), and there is no undo if you regret the result.
Automator: More Power, More Setup
Automator is Apple's built-in automation tool. You can build a Rename Finder Items workflow that sits in your right-click menu. The steps look like this:
- Open Automator (find it in Applications).
- Choose Quick Action as the document type.
- Set Workflow receives to Files or Folders in Finder.
- Search for "Rename Finder Items" in the action library and drag it into the workflow.
- Configure the rename settings (Add Date/Time, Make Sequential, Replace Text, etc.).
- Save the Quick Action with a name like "Add Sequential Numbers".
Once saved, your workflow appears in the Finder Services submenu. Automator is free and powerful, but building workflows takes time, and each workflow only does one specific thing. You'll end up creating multiple workflows for different tasks.
Renaming from Terminal
For those comfortable on the command line, rename (available via Homebrew) or mmv can handle sophisticated patterns. A simple example:
# Replace spaces with underscores in all .jpg files
for f in *.jpg; do mv "$f" "${f// /_}"; done
Terminal gives you maximum flexibility but requires writing and testing shell commands for every task — not practical when you want results quickly.
Using RenameZero for Larger Batches
RenameZero is a dedicated Mac app designed specifically for batch renaming. It handles every scenario from simple find-and-replace to sequential numbering, case changes, and template-based naming — all in one interface with a live preview of every change before anything is applied.
How it works
- Add files or folders. Drag files or entire folders into RenameZero. You can include subfolders and filter by file type — images only, documents only, or a custom extension list.
- Choose your rename operation. Options include:
- Replace Text — find any text in filenames and replace it (case-sensitive optional)
- Add Prefix / Suffix — prepend or append text to every filename
- Sequential Numbering — add a counter with custom start number, padding (001, 002…), and separator
- Remove Text — strip unwanted strings from filenames
- Change Case — UPPERCASE, lowercase, Title Case, Sentence Case
- Templates — combine variables like
{original},{counter},{date}into a custom pattern
- Preview every change. The original and new name appear side by side for every file. Changes that would cause a conflict are flagged before anything is renamed.
- Apply. Click Rename. All files are renamed locally on your Mac — nothing is uploaded anywhere.
- Undo if needed. Made a mistake? Click Undo Last Rename and every original filename is restored instantly.
When to use RenameZero instead of Finder
Finder is fine for one-step jobs on small batches. RenameZero is the better choice when:
- You are renaming more than 20–30 files
- You need to chain multiple operations (prefix + number, for example)
- You want to see a preview before any files are changed
- You need undo if something goes wrong
- You are working with entire folder trees and need subfolder processing
The free tier includes Replace Text, Prefix, Suffix, and Preview for up to 20 files. A Pro license unlocks unlimited files, sequential numbering, case changes, templates, undo, folder import, and file type filters.
Common Batch Rename Recipes
Here are specific tasks and how to handle them:
Add a date prefix to every file
In RenameZero, use the Template operation with the pattern {date}_{original}. This prepends the current date in YYYY-MM-DD format. In Finder, use Format → Name and Date.
Replace spaces with underscores or dashes
In RenameZero, use Replace Text: find (a space), replace with _ or -. In Finder, use Replace Text in the rename dialog.
Number files sequentially
In RenameZero, use Sequential Numbering. Set your start number, padding (e.g. 3 digits for 001), and separator. You can combine this with a base name using Templates.
Rename photos from your camera roll
Use Format in Finder with Name and Counter — set the custom name to the album or event name and Finder adds a number to each file. RenameZero's Templates give more control: {date}_{counter} creates 2026-06-15_001.jpg.
Strip camera model info from filenames
DSLR filenames often contain camera identifiers. Use Remove Text in RenameZero to strip a specific string, or Replace Text to swap it for something cleaner.
File Extensions Are Protected by Default
One common worry: will batch renaming break my file extensions? In both Finder and RenameZero, file extensions (.jpg, .pdf, .docx) are protected by default. The rename operations only affect the name portion, not the extension — unless you explicitly enable extension renaming. You won't accidentally turn photo.jpg into photo_001 with no extension.
FAQ
Can I undo a batch rename on Mac? With Finder's built-in rename, there is no undo — Command + Z does not reverse a batch rename. With RenameZero, one click restores all original filenames (Pro feature).
Does batch renaming move my files? No. Renaming changes the filename only. Files stay in the same folder.
Can I rename files in subfolders? Finder's batch rename only works on the files you have selected — you'd need to manually navigate into each subfolder. RenameZero supports recursive folder import, so you can process an entire folder tree in one pass.
Is there a limit to how many files I can rename at once? Finder has no documented limit for batch rename. RenameZero's free tier previews up to 20 files; Pro has no limit and handles thousands without issue.
Will renaming files break links or references to them? Potentially, yes — if another app or document references a file by name, renaming the file will break that reference. Check for active links before renaming important files.
Summary
For quick, simple jobs, macOS Finder's built-in batch rename is ready to use with no extra software. For larger batches, chained operations, or situations where you want a preview and a safety net, RenameZero handles the entire workflow in one place — including a one-click undo that Finder does not offer.
Browse more file productivity guides in the Productivity category, or read about removing special characters from filenames if your files came with unwanted symbols.