How to Bulk Rename Files on Mac
You do not need to rename files one at a time. Mac has a batch rename tool built right into Finder, plus faster routes through Terminal, Automator, dedicated apps, and AI. Here is when to reach for each.
A folder full of IMG_2205.jpg, IMG_2206.jpg, and three hundred more just like them is one of those small annoyances that never quite rises to the top of your to-do list. Renaming them by hand is unthinkable, so you leave them. Then a year later you are scrolling through a wall of camera codes trying to find one photo.
The good news is that macOS has had a proper batch rename tool since 2014, and most people have never opened it. It is hidden behind a right-click, it handles thousands of files at once, and it is completely free. For the jobs it cannot do, there is Terminal, Automator, a handful of excellent apps, and a newer option that renames files based on what is actually inside them.
This guide walks through all five, from the two-click Finder method most people should start with to the cases where you genuinely need something more. Pick the one that matches your problem instead of reaching for the heaviest tool by default.
When You Actually Need Bulk Renaming
Almost every bulk rename job falls into one of a few buckets. Knowing which one you have tells you which method to use:
- Same change to every name. Add a prefix like
2026-Invoice-, strip out a word, or swap an extension. This is a pattern job, and Finder handles it in seconds. - Sequential numbering. Turn a pile of camera files into
Wedding 1,Wedding 2,Wedding 3. Also a Finder job. - Complex patterns. Use find-and-replace with wildcards, pull dates out of EXIF data, or apply different rules to different file types. This is where dedicated apps or Terminal earn their keep.
- Names that describe the content. The files are not in any pattern. They are just badly named, like
scan_0043.pdforUntitled 7.docx, and you want names that say what each file is. No pattern tool can do this. You need something that reads the file.
The first two cover the vast majority of real-world renaming, and they are free and built in. Start there.
Method 1: The Built-In Finder Rename Tool
This is the one to learn first. Since OS X Yosemite, Finder has included a batch rename panel that most Mac users walk right past. It does not need Terminal, it does not need an app, and it covers the two most common jobs perfectly.
Select the files
Free · Built inOpen the folder in Finder and select every file you want to change. Press ⌘A to grab all of them, or hold ⇧ to select a range and ⌘ to pick individual files. Selecting a single file just does an ordinary rename, so you need two or more to unlock the batch panel.
Open the rename panel
Free · Built inRight-click any of the selected files and choose Rename (it will read something like "Rename 214 Items"). You can also open the File menu and choose Rename Items. A small panel drops down with a mode selector at the top left.
Choose one of three modes
Free · Built inEverything the tool does lives under these three options:
- Replace Text. Type what to find and what to replace it with. Every matching piece of every filename changes. Leave the "replace with" box empty to simply delete a word from all of them.
- Add Text. Type text and choose whether it goes before or after the existing name. This is how you add a prefix like a date or a project code to a whole batch.
- Format. Rebuild the names from scratch. Pick Name and Index, Name and Counter, or Name and Date, type a base name, and set a starting number. This is the sequential-numbering mode.
Check the count, then click Rename
Free · Built inThe panel shows how many items will be renamed. Confirm it matches what you selected, then click Rename. Every file changes at once. If it went wrong, press ⌘Zimmediately to undo the whole batch.
Photo 1, Photo 2 come out in the right sequence.Common Finder Rename Recipes
A few concrete examples, since the three modes are easier to understand with real jobs in front of you.
Add a date prefix to a batch of receipts
Select the files, choose Add Text, type 2026-07 (with a trailing space), and set it to go before the name. receipt.pdf becomes 2026-07 receipt.pdf across the whole folder, which keeps them sorted by month.
Strip a repeated word out of every name
Say every file starts with DSC_. Choose Replace Text, put DSC_ in the Find box, and leave the Replace box empty. The prefix disappears from all of them at once.
Number a set of photos cleanly
Choose Format, set the format to Name and Index, type Portugal as the custom name, put the number after the name, and start at 1. You get Portugal 1.jpg, Portugal 2.jpg, and so on. Use Name and Counterinstead if you want zero-padded numbers like Portugal 001 for correct sorting past nine.
Method 2: Terminal for Power Users
If you are comfortable in the command line, Terminal is faster than any panel for repetitive jobs and it can do things Finder cannot, like renaming across nested folders. macOS uses zsh by default, and a simple loop covers most needs.
Here is a loop that changes every .jpeg file in the current folder to .jpg:
cd ~/Pictures/import
for f in *.jpeg; do
mv "$f" "${f%.jpeg}.jpg"
doneThe ${f%.jpeg} part trims the old extension off the name before adding the new one. Quote the variables so filenames with spaces do not break the command.
For pattern renaming, zsh ships with a helper called zmv that is much cleaner than a loop. Load it once, then use wildcards with capture groups:
autoload -U zmv
# add a prefix to every png
zmv '(*).png' 'screenshot-$1.png'Run zmv -n first (the -n means "no execution") and it prints exactly what it would do without touching a single file. That dry run is the safety net that makes Terminal renaming worth trusting on big batches.
rename command that Linux users know. If a tutorial tells you to run rename 's/old/new/' and it fails, that is why. You can install it with Homebrew using brew install rename, but for most jobs zmv is already on your Mac and does the same thing.Method 3: An Automator Quick Action
If you do the same rename over and over, you can bake it into a right-click menu item with Automator, which ships with every Mac. The payoff is a one-click rename you trigger straight from Finder.
- Open Automator and create a new Quick Action
- Set "Workflow receives" to files or folders in Finder
- Drag in the Rename Finder Items action and configure it (add text, replace, or make sequential)
- Save it with a clear name like "Add 2026 Prefix"
From then on, select files in Finder, right-click, and your action appears under Quick Actions. Automator uses the exact same renaming engine as Finder, so it is really a way to save a favorite recipe rather than a more powerful tool. Still, for a rename you run weekly, it removes every click except the last one.
Method 4: Dedicated Rename Apps
When your patterns get complicated, the free tools start to feel cramped. Dedicated rename apps add regular expressions, live multi-step previews, EXIF and ID3 metadata, find-and-replace across many rules at once, and presets you can save. Three are worth knowing:
- A Better Finder Rename. The most powerful of the bunch and a long-time favorite for photographers. It reads photo EXIF dates, MP3 tags, and supports deep pattern rules. Paid, with a free trial.
- Renamer. A friendly, modern app on the Mac App Store. You stack rename "actions" and watch the result update live before you commit. Paid.
- NameChanger. Free and straightforward. Great for find-and-replace and sequential jobs when you want a clearer side-by-side preview than Finder gives you.
These are the right call when the rename itself is complex: pulling the shot date out of a thousand RAW files, or applying five conditional rules in one pass. If you mostly need a prefix or a number, they are overkill and Finder already does the job.
Method 5: Rename by Content with AI
The hardest renaming job is not a pattern at all. It is a folder of files with names that tell you nothing: scan_0043.pdf, Document (7).docx, IMG_9921.png. No find-and-replace can fix that, because the useful information is inside the file, not in its name.
This is where an AI renamer changes the game. Instead of matching text, it reads each file, works out what it is, and proposes a name that reflects the content. A scanned PDF that Finder sees as scan_0043.pdfgets recognized as, say, an electricity bill from March, and named accordingly.
Files Magic AI does exactly this with a feature called Magic Rename. A few things make it a good fit for the names-are-meaningless problem specifically:
- It reads content, not just the extension. Screenshots, PDFs, documents, and downloads get names based on what they actually contain, which is the one thing every other tool on this page cannot do.
- It runs offline. Magic Rename uses on-device Apple Intelligence on supported Macs, so file contents stay on your machine and are never uploaded to inspect them.
- You can rename without reorganizing. It works as a standalone step, so if you only want better names and do not want to move anything, you can do just the renaming and stop there.
Rename messy files by what they actually are
Files Magic AI reads each file with on-device Apple Intelligence and suggests names that make sense, then lets you review before anything changes. It also groups folders and clears duplicates in the same pass. 15-day free trial, no credit card required.
Start 15-day free trialSee how Magic Rename worksWhich Method Should You Use?
| Method | Best for | Reads file content? | Learning curve | Cost |
|---|---|---|---|---|
| Finder rename tool | Prefixes, replace, numbering | ✗ No | None | Free |
| Terminal (zmv) | Scripted and nested renames | ✗ No | High | Free |
| Automator Quick Action | A recipe you repeat often | ✗ No | Low | Free |
| Dedicated apps | Regex, EXIF, complex rules | ✗ No | Medium | Free to ~$30 |
| Files Magic AI | Meaningless names, mixed files | ✓ Yes, offline | None | Free trial, then paid |
For most people the built-in Finder tool is the honest answer for nine renaming jobs out of ten. Keep Terminal or an app in your back pocket for complex patterns, and turn to AI renaming when the files are simply named badly and no pattern will save you.
Mistakes to Avoid
- Renaming before sorting. Finder numbers files in view order. If the window is sorted the wrong way, your sequence comes out scrambled. Sort first, rename second.
- Deleting extensions by accident. When you use Replace Text, watch that your find term does not appear inside the extension. Removing
pfrom everything will happily maim your.pngfiles. - Stacking passes before checking. Finder undo only covers the last rename. Do one change, confirm it looks right, then do the next. On a large or irreplaceable batch, work on a duplicated folder.
- Using a pattern tool on a content problem. If you find yourself typing out fifty different find-and-replace rules because every file is different, stop. That is the signal you need a content-aware renamer, not a bigger pattern tool.
A tidy naming pass is often the first half of a bigger cleanup. If the same folder is also full of duplicates and forgotten downloads, our guide on organizing your Downloads folder on Mac picks up where renaming leaves off, and if storage is tight, the walkthrough on how to free up disk space on Mac covers the bigger culprits.
Frequently Asked Questions
Published July 6, 2026 · More guides · Files Magic AI