July 2026 · Mac How-To

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.

5 methods covered·Free and paid options·10 min read

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.pdf or Untitled 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.

1

Select the files

Free · Built in

Open 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.

2

Open the rename panel

Free · Built in

Right-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.

3

Choose one of three modes

Free · Built in

Everything 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.
4

Check the count, then click Rename

Free · Built in

The 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.

The order trick
When you use Format to add numbers, Finder counts files in the order they currently appear in the window. Sort the folder the way you want before you rename. In List view, click the Date Created or Name column first so your 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.

Good to know
Finder renames only the name, never the file contents, and it leaves extensions alone unless you deliberately include them. It is safe to experiment because a single ⌘Z reverses the last batch. The one limit is that undo only covers the most recent rename, so do not stack several passes before checking your work.

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"
done

The ${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.

Heads up
macOS does not include the Perl 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.

  1. Open Automator and create a new Quick Action
  2. Set "Workflow receives" to files or folders in Finder
  3. Drag in the Rename Finder Items action and configure it (add text, replace, or make sequential)
  4. 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.

The shared blind spot
Every tool up to this point, from Finder to A Better Finder Rename, works on the text of the name. None of them can look inside a file. If your problem is that the names are meaningless rather than badly patterned, a more powerful pattern tool does not help. That is the gap the next method fills.

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.
When AI is the right call
Use a pattern tool when your files share a structure and you want the same change applied to all of them. Reach for AI renaming when the files have nothing in common except that their names are useless. The two solve different problems, and plenty of people use Finder for patterns and Magic Rename for the messy leftovers.

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 works

Which Method Should You Use?

MethodBest forReads file content?Learning curveCost
Finder rename toolPrefixes, replace, numbering NoNoneFree
Terminal (zmv)Scripted and nested renames NoHighFree
Automator Quick ActionA recipe you repeat often NoLowFree
Dedicated appsRegex, EXIF, complex rules NoMediumFree to ~$30
Files Magic AIMeaningless names, mixed files Yes, offlineNoneFree 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 p from everything will happily maim your .png files.
  • 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

How do I rename multiple files at once on a Mac?
Select the files in Finder, right-click, and choose Rename. Finder opens a batch panel with three modes: Replace Text swaps a word in every name, Add Text puts a prefix or suffix on all of them, and Format rebuilds names with a base name and a number or date. It is built into macOS and needs no extra software.
Does macOS have a built-in bulk rename tool?
Yes. Since OS X Yosemite in 2014, Finder has included Rename Finder Items. Select two or more files, right-click, and choose Rename to open it. You can find and replace text, add a prefix or suffix, or reformat every name with sequential numbers, a counter, or a date.
How do I add sequential numbers to file names on Mac?
Select the files, right-click and choose Rename, then switch the mode to Format. Set it to Name and Index, type a base name, put the number after the name, and choose a starting value. Finder produces names like Report 1, Report 2, Report 3. Sort the folder in the order you want first, because Finder numbers files in the current view order.
Can I undo a bulk rename on Mac?
Yes, but only the most recent one. Right after renaming, press ⌘Z or choose Edit then Undo Rename, and every file reverts at once. It will not reach back past the last batch, so on important jobs it is safest to work on a copy of the folder or use a tool that previews the result before committing.
How do I rename files based on their content on Mac?
Finder, Terminal, and rename apps all work on the existing name only, so they cannot tell what is inside a file. To rename by content, such as turning scan_0043.pdf into a name that reflects the actual document, you need an AI renamer. Files Magic AI includes Magic Rename, which reads each file with on-device Apple Intelligence and suggests a meaningful name while keeping the contents on your Mac.
What is the best app to batch rename files on Mac?
For pattern-based renaming, the built-in Finder tool covers most needs for free. If you need regular expressions, EXIF dates, or multi-step rules, A Better Finder Rename and Renamer are the strongest paid options and NameChanger is a good free one. If the real problem is meaningless names rather than a pattern, a content-aware renamer like Files Magic AI is the better fit.

Published July 6, 2026 · More guides · Files Magic AI