Camera photos, screenshots, and downloaded invoices all arrive with names that tell you nothing. Renaming them one by one is tedious, but you don't have to. Finder can rename hundreds of files in a single step.
Method 1: Finder's built-in Rename tool
- Select all the files you want to rename.
- Right-click and choose Rename (it shows how many items are selected).
- Choose a mode from the first menu, fill in the fields, and check the example at the bottom.
- Click Rename.
The three rename modes
- Replace Text swaps one piece of text for another in every name, for example "IMG_" to "paris-".
- Add Text puts text before or after each name, such as a client or project name.
- Format gives every file a new name plus an index, counter, or date. You pick the base name, where the number goes, and the starting number.
Made a mistake? Press Command-Z (Edit → Undo) right away to restore the old names.
Method 2: Rename with a Terminal loop
For patterns Finder can't handle, a short shell loop works. This example changes every .jpeg extension in the current folder to .jpg:
for f in *.jpeg; do
mv -n "$f" "${f%.jpeg}.jpg"
doneThe -n flag stops mv from overwriting a file that already has the new name. There's no undo in Terminal, so try it on a copy of the folder first.
Method 3: Batch rename with FinderBuddy
FinderBuddy's Rename tool sits in Finder's right-click menu and supports patterns, numbering, and find and replace in one place. It works on a few files or a folder of hundreds, and pairs well with its other tools. For example, you can convert iPhone photos to JPG and then give them clean, numbered names without leaving Finder.
File naming tips that save time later
- Dates first, as YYYY-MM-DD. 2026-09-29-invoice.pdf sorts in date order automatically.
- Pad numbers with zeros. Use 01, 02… 10 so "10" doesn't sort before "2".
- Use hyphens, not spaces. Names like trip-rome-01.jpg work everywhere, including websites and the command line.
- Keep names short and descriptive. Say what the file is, not where it came from.
Numbered names also control page order when you combine files. See how to merge PDF files on Mac.
Frequently asked questions
- How do I rename multiple files at once on a Mac?
- Select the files in Finder, right-click, and choose Rename. You can replace text, add text, or give every file a new name with a number or date.
- Can I undo a batch rename in Finder?
- Yes. Press Command-Z or choose Edit → Undo right after renaming to restore the original names.
- How do I number files in order on a Mac?
- Sort the Finder window the way you want, select the files, choose Rename, and use the Format option with Name and Counter or Name and Index.
- Does renaming a file change its contents?
- No. Renaming only changes the file name. The contents, and usually the creation date, stay the same.