Skip to main content
Folders

How to batch rename files on a Mac

Renaming files one by one is how a Saturday disappears. Your Mac can rename a whole folder in one go, and the tool is already in Finder. Let's start there, then get to the files Finder can't name for you.

Written by SupaDupa Published

Batch renaming files on a Mac is built into Finder: select multiple files, Control-click, choose Rename, and you can replace text, add text, or give the whole set one name format with numbers or dates. It handles most jobs in under a minute. What it can’t do is invent a good name for a file whose current name says nothing.

So we’ll go in order: Finder’s three rename modes, a Terminal loop for the patterns Finder can’t express, and what to do when the file names need to come from what’s inside the files.

How to batch rename files in Finder

  1. Select the files in Finder. Command-A selects everything in the window.
  2. Control-click one of the selected files and choose Rename.
  3. In the pop-up menu below Rename Finder Items, choose one of three modes.
  4. Check the example name at the bottom of the window, then click Rename. The change applies to all the selected files at once.

It’s the fastest way to rename multiple files on a Mac, and it handles a folder of thousands of files in one pass the same way it handles ten.

Each mode does one job:

ModeWhat it doesUse it when
Replace TextFinds text in every file name and swaps it for something elseIMG_ should say Lake trip in all 300 names
Add TextAdds the same text before or after every current nameEvery scan needs 2025 Taxes - in front
FormatGives every file one new name plus an index, counter, or dateA folder of camera files should become Wedding 001 to Wedding 240

A few things make it go smoothly:

  • Sort first. In Format mode, Finder numbers the files in the order the window shows them. Sort by date created before you rename, and the numbers follow the order the photos were taken.
  • Read the example. The bottom of the window shows what the first file will be called before you commit.
  • Undo straight away or not at all. Edit > Undo reverses a rename right after you do it. Finder keeps no rename history to go back to later.

What not to rename

Apple is specific about this. Don’t rename app folders or anything that came with the system, like the Library folder, and leave your home folder’s name alone. Don’t change file extensions either, the .jpg or .pdf at the end, or the file may stop opening in the app that made it. Finder’s Rename keeps extensions as they are, which is one reason to use it over renaming by hand.

Batch rename files in Terminal, with a preview

When the pattern is more than Finder can express, a short loop in Terminal can do it. This one previews first and changes nothing:

cd ~/Pictures/lake-trip
for f in IMG_*.jpg; do echo mv -n "$f" "Lake trip ${f#IMG_}"; done

It prints what it would do, one line per file:

mv -n IMG_0412.jpg Lake trip 0412.jpg
mv -n IMG_0413.jpg Lake trip 0413.jpg

If the list looks right, run it again without the word echo, and the files are renamed. The -n stops it from overwriting a file that already has the new name. Change IMG_*.jpg to match your files and Lake trip to the name you want.

This is the same idea as Finder’s Replace Text, with one difference that matters: you can build the new name from any part of the old one. It still only rearranges what’s already in the file names.

When the names need to come from what’s inside the files

Every tool above rewrites the name a file already has. That works when the name holds something useful. It doesn’t work for IMG_4412.jpg, Scan 12.pdf, or a folder called DCIM_0042, because there’s nothing in those names to rearrange. The information you want in the name, what the photo shows or what the document is, lives inside the file.

On Macs with Apple Intelligence, Finder can suggest a name when you create or rename a single document: turn on Suggest File Names in Finder > Settings. Apple notes it isn’t available in every language or region, and it works one document at a time.

For whole folders, you need a tool that reads what’s inside each file, proposes names, and shows you all of them before anything changes. That’s the gap SupaDupa fills.

Using SupaDupa to rename from what’s inside

Point SupaDupa at a folder and open Tidy. It reads the files and proposes names, then puts the whole list in front of you.

  • Screenshots get named from the text in them, instead of Screenshot 2026-07-25 at 03.07.36.
  • Folders get a real name from what’s inside, like “Mount Vernon Wedding Reception” for a folder called DCIM_0042. That one is a Pro feature, needs an Apple Silicon Mac with 16 GB of memory, and your files stay on your Mac while it works.
  • Nothing is renamed until you approve it. You see every proposed name, keep the ones you like, and skip the rest.
  • Renames can be undone from the app, later, not only right after.
  • Your home folders keep their names. Desktop, Documents, Downloads and the rest are never offered for renaming.

Tidy is free on one folder you pick, and Pro is $49, once, for more.

Before you rename a lot of files

  • Try it on a copy first. Duplicate a folder, rename the copy, and check that everything still opens.
  • Watch for apps that track files by name. Photo editors and music apps sometimes lose track of files renamed outside them. Rename inside those apps when they offer it.
  • Leave extensions alone. The .jpg stays .jpg.
  • Date first sorts best. If you’re choosing a format, 2025-03-14 Lease renewal sorts in time order everywhere. How to organize files on a Mac has more on naming that holds up.

Start with Finder’s Rename for anything with a pattern, whether that means replacing text, using Add Text for a prefix, or numbering multiple files in order. Save the tools that read the files for the names that don’t have one.

Common questions

How do I rename multiple files at once on a Mac?
To rename multiple files at once on a Mac, select them in Finder, Control-click one of them, and choose Rename. The Rename Finder Items window lets you replace text in every file name, add text before or after the current names, or switch them all to one name format with a number or date. Click Rename to apply it to every selected file.
How do I batch rename files on a Mac with numbers?
To batch rename files on a Mac with numbers, select the files, Control-click one, choose Rename, then pick Format from the pop-up menu. Choose Name and Index or Name and Counter, type the new name in the Custom Format field, and set the number to start from. Finder numbers the files in the order they're sorted in the window.
Can I undo a batch rename on a Mac?
A batch rename in Finder can be undone straight after you do it with Edit > Undo, or Command-Z. Finder doesn't keep a rename history to go back to later, so check the example name in the Rename window before you click Rename.
Is it possible to automate file renaming on a Mac?
File renaming on a Mac can be automated with a Terminal loop for repeatable patterns, or with an app that renames files by rules or by what's inside them. Finder's built-in Rename is manual but handles most one-off batches. For files whose names say nothing, like IMG_4412.jpg, only a tool that reads the contents can suggest a meaningful name.
What should I never rename on a Mac?
Apple advises against renaming app folders, items that came with the system such as the Library folder, your home folder, and file extensions like .jpg or .pdf. Changing an extension can stop a file from opening in the app that made it. If renaming something causes a problem, change the name back.
What is the best batch file renamer for Mac?
The best batch file renamer for Mac depends on what the names need to say. Finder's built-in Rename handles find-and-replace, adding text and numbering for free. Rule-based apps add regular expressions and metadata like photo dates. When the current names carry no information at all, a tool that reads what's inside each file and suggests a name saves the most time.
How do I rename a single file on a Mac?
To rename a single file on a Mac, select it in Finder and press Return, type the new name, and press Return again. A file name can't contain a colon or start with a period, and some apps won't accept a slash.
Does renaming a file change what's inside it?
Renaming a file on a Mac changes only its name. The contents stay exactly as they were, as long as you leave the extension at the end, such as .jpg or .pdf, unchanged. Apps that track files by name, like some photo and music apps, may need to find a renamed file again.
Can Finder suggest file names on a Mac?
On Macs with Apple Intelligence, Finder can suggest file names when you create or rename a document. Turn it on in Finder > Settings with Suggest File Names. Apple notes it isn't available in every language or region, and it names one document at a time.

Keep reading

Folders

How to organize files on a Mac

Organize files on a Mac with a folder structure that survives a busy week, file names you can search, and built-in tools that sort for you.

Storage

How to free up disk space on a Mac

Your Mac already shows what's filling it up. Learn what's safe to clear, what macOS clears on its own, and where forgotten copies are taking up space.