Black FridayPhotsy lifetime from $9See the deal →

How to Batch Rename Photos and Files on Mac

Updated 14 November 2026

Short answer: select the files in Finder, right-click → Rename, and choose Format to number them, Replace Text to fix a word, or Add Text to prefix them. Preview the result at the top of the dialog, then click Rename. Press Command + Z to undo.

Photsy finds any photo or screenshot on your Mac by the words in it. 7-day free trial · from $9, one-time · macOS 15 or later

Download

Rename in Finder

  1. Select the photos.
  2. Right-click and choose Rename N Items.
  3. Choose Replace Text, Add Text (before or after the name) or Format (Name and Index, Name and Counter, Name and Date).
  4. Check the example, then click Rename.

Rename with Terminal

i=1; for f in *.jpg; do mv "$f" "$(printf 'holiday-%03d.jpg' $i)"; i=$((i+1)); done

This renames JPEGs in the current folder to holiday-001.jpg, holiday-002.jpg and so on. Test on a copy first.

Rename by date taken

Install ExifTool with Homebrew and run:

exiftool '-FileName<DateTimeOriginal' -d '%Y-%m-%d_%H%M%S%%-c.%%e' .

Photos get names like 2026-10-04_153012.jpg. Try it on a copy first.

Screenshots

Mac screenshots are named by date and time, which says nothing about what's in them. Photsy can rename and file screenshots in folders you add, and every change can be undone. It also lets you search the text, so you don't need to rename at all. See how to organize screenshots on a Mac and how to search them.

Questions

How do I rename many files at once on a Mac?
Select them in Finder, right-click and choose Rename. Pick Replace Text, Add Text or Format, and click Rename.
How do I number files in order?
Choose Format, then Name and Counter (or Name and Index). Set a custom name and a starting number.
Can I undo a batch rename?
Yes. Press Command + Z right after in Finder. Do it before you do anything else.
Can I rename photos by the date taken?
Finder's Format option uses a counter, not the photo's date. Use Terminal with a loop, or Photsy for screenshots, to rename by date.

Keep reading