How to Batch Rename Files on Mac
macOS offers four methods for batch renaming files: the Finder rename tool, Terminal commands, Automator workflows, and dedicated apps like Batchio. Each method handles different levels of complexity. This guide covers all four approaches from simplest to most powerful.
How Does Finder Batch Rename Files on Mac?
Finder's Replace Text mode finds a string in the selected filenames and replaces it with another string. The replacement applies to every selected file that contains the match. Finder does not support regular expressions, case sensitivity toggles, or partial occurrence matching in this mode.
Finder's Add Text mode appends or prepends text to every selected filename. You choose whether the text appears before the name or after the name. Finder does not support inserting text at a specific character position within the filename.
Finder's Format mode replaces filenames entirely with a base name followed by a sequential number or counter. This mode works well for photo imports where you want a clean naming convention like "Vacation_001, Vacation_002, Vacation_003." Finder does not support custom number formats, zero padding widths beyond its default, or step increments other than 1.
Finder covers approximately 30% of common renaming tasks. For operations that require regex, EXIF metadata, case conversion, character removal, or date insertion, you need a more capable tool. Users who want to rename multiple files using Finder can start with its three built in modes and upgrade to Batchio's find and replace with regex support when patterns become complex. The full batch rename app comparison shows how Finder stacks up against dedicated renaming tools.
How Do You Batch Rename Files in Terminal on Mac?
mv inside for loops, the rename Perl utility (installed via Homebrew), or inline shell scripts. Terminal provides full regex support and unlimited flexibility but requires command line experience and has no preview or undo capability.The simplest Terminal approach uses a for loop with mv to iterate through files in a directory. A loop like for f in *.jpg; do mv "$f" "photo_$f"; doneadds the prefix "photo_" to every JPEG file. This approach works for straightforward operations but becomes unwieldy for complex patterns involving multiple transformations.
The rename utility from Homebrew accepts Perl regular expressions directly. A command like rename 's/IMG_(\d+)/Photo_$1/' *.jpg uses capture groups to restructure filenames. This tool provides the most powerful text transformation available from the command line on macOS.
Terminal commands execute immediately with no preview. A typo in a regex pattern can rename hundreds of files incorrectly before you notice the mistake. Terminal also has no built in undo, so reversing a bad rename requires writing a second script or restoring from a backup. Batchio's live preview eliminates this risk by showing every filename change before you commit. The complete Terminal file renaming guide covers mv commands, for loops, and the rename Perl utility in detail.
How Does Automator Batch Rename Files on Mac?
Automator's visual workflow builder connects actions in a sequence. Drag the Get Specified Finder Items action first, then add one or more Rename Finder Items actions. Each rename action applies one transformation, and Automator executes them in order from top to bottom.
Automator's rename actions cover basic operations but have significant limitations. There is no regex support, no EXIF or audio metadata access, no character removal options, and no extension handling beyond what the Replace Text action provides. Automator also provides no live preview, so you cannot verify results before the rename executes.
Automator is being deprecated by Apple in favor of the Shortcuts app. macOS Monterey introduced Shortcuts as the replacement automation platform, and Apple has not updated Automator since. New Mac users should consider Shortcuts or a dedicated renaming app for long term compatibility.
For complete Automator setup instructions and workflow examples, see the Automator file renaming guide.
How Does Batchio Batch Rename Files on Mac?
Batchio combines the power of Terminal regex with the visual simplicity of a native macOS app. The beginner's step by step guide walks through the entire process from adding files to executing the rename. Drag files onto the window, build your rule chain, verify every filename in the live preview, and click Rename. The entire process takes seconds for batches of any size.
The EXIF metadata rule renames photos using camera model, lens, ISO, aperture, shutter speed, focal length, or image dimensions. The numbering rule adds sequential numbers with configurable start, step increment, and zero padding width. Users who need to process 1,000 or more files at once can follow the mass rename files guide for performance tips and conflict detection strategies at scale.
Batchio detects naming conflicts before renaming starts. If two files would end up with the same name, warning icons appear in the preview. You can choose to block the operation, auto number duplicates, or skip conflicting files.
Full undo support stores up to 100 rename operations in history. Press Cmd+Z to revert the most recent rename, or open the Rename History panel to undo any previous operation individually.
Batchio is free on the Mac App Store with all 9 rule types included. The free batch rename tool comparison shows how the free tier compares to Finder and Terminal. The Pro upgrade at $4.99 adds saved presets, folder automation with watch folders, a Finder Quick Action for right click renaming, and Apple Shortcuts integration. See all Batchio features for a complete breakdown.
Which Mac Batch Rename Method Should You Choose?
| Capability | Finder | Terminal | Automator | Batchio |
|---|---|---|---|---|
| Text replacement | Basic | Full regex | Basic | Full regex + capture groups |
| Sequential numbering | Fixed format | Scripted | Basic | Custom start, step, padding, position |
| Case conversion | No | Scripted | Yes | 5 modes including camelCase |
| EXIF metadata | No | Scripted | No | Camera, lens, ISO, aperture, shutter |
| Audio metadata | No | Scripted | No | Artist, title, album, track, genre |
| Live preview | No | No | No | Real time, two column |
| Undo support | Last action only | None | None | 100 operations in history |
| Price | Free (built in) | Free (built in) | Free (built in) | Free (Pro $4.99) |
Photographers who need to rename shoots by date and camera model should use Batchio's batch photo renaming workflow. Musicians who organize files by artist and album can use the audio metadata rule. The best file renamer comparison ranks all five dedicated Mac renaming apps by features and pricing. Users who need efficient preset workflows and watch folder automation can follow the bulk rename workflow guide.
How Do You Batch Rename Files with Batchio Step by Step?
- Open Batchio and drag files or folders onto the window. Batchio displays the file count and total size in the toolbar. Enable Include Subfolders to scan nested directories.
- Add your first rule by clicking the + button in the rules panel. Choose from 9 rule types: find and replace, add text, numbering, change case, remove characters, date insertion, extension handling, EXIF metadata, or audio metadata.
- Configure the rule by setting its options. For find and replace, enter the search text and replacement text. Toggle regex mode for pattern matching. Toggle case sensitivity as needed.
- Stack additional rules if your renaming requires multiple transformations. Rules apply in sequence from top to bottom. Drag rules to reorder them. Disable individual rules without deleting them to test different combinations.
- Review the live preview showing original names on the left and new names on the right. Changed portions are highlighted. Conflict warnings appear for duplicate names.
- Click Rename to execute the operation. Batchio renames all files and adds the operation to the undo history. Press Cmd+Z to revert if needed.
When Should You Use Finder vs Terminal vs Batchio?
Finder handles the simplest 30% of renaming tasks. Renaming 5 vacation photos from "IMG_1234.jpg" to "Beach_Trip_001.jpg" takes fewer than 10 seconds in Finder. The operation requires no additional software and works on every Mac.
Terminal handles the most complex operations when you already know the exact regex pattern. System administrators and developers who rename files as part of automated build scripts or deployment pipelines benefit from Terminal's scriptability and integration with cron jobs or CI/CD systems.
Batchio handles everything between those extremes and beyond. The visual rule builder makes complex operations accessible without memorizing regex syntax, and the bulk rename utility comparison shows how Batchiostacks up against Renamer, Name Mangler, and other dedicated apps. The Pro version's folder automation feature bridges the gap with Terminal by watching folders and applying presets automatically. The file renaming tool overview covers every category of rename tool on Mac from built in to GUI.
Frequently Asked Questions
Can Finder batch rename files with sequential numbers?
What is the fastest way to batch rename 1,000 files on Mac?
Can I undo a batch rename on Mac?
Does batch renaming change the file contents or metadata?
Is Batchio free to use for batch renaming?
Ready to Rename Files the Easy Way?
Download Batchio free on the Mac App Store. All 9 rule types included. Pro upgrade $4.99.
Coming Soon to the Mac App StoreMarcel Iseli is an indie app developer and the creator of Batchio. He builds native macOS utilities focused on productivity and file management, with a focus on lightweight, subscription-free tools.