Rename files with AI on a Mac, safely

Names like IMG_4821.pdf and scan (3).pdf are hard to find. AI can suggest better names; the trick is to review them before anything changes.

Start with Finder (no AI needed)

Select the files, right-click and choose Rename…. Finder can replace text, add text, or apply a format such as Invoice 001, Invoice 002. It shows an example before you confirm, and Edit → Undo Rename works right after.

A simple naming rule

Pick one pattern and stick to it: YYYY-MM-DD what who.ext, for example 2026-03-01 invoice Acme.pdf. Dates first sort correctly in every app.

Let an AI suggest names

  1. List the names (read-only):
     Terminal
    cd ~/Desktop/to-rename
    ls -1 > names.txt
  2. Give names.txt to your AI assistant and ask for a two-column CSV, old,new, following your naming rule, keeping each file's extension. Only the names leave your Mac, not the contents.
  3. Read the CSV. Fix anything wrong. AI guesses from the name alone, so a vague name gets a vague guess.
  4. Preview the commands (read-only, prints only):
     Terminal
    while IFS=, read -r old new; do echo mv -n "$old" "$new"; done < renames.csv
  5. Run them (changes file names). -n means an existing file is never overwritten:
     Terminal
    while IFS=, read -r old new; do mv -n "$old" "$new"; done < renames.csv
Keep renames.csv. To undo, swap the columns and run the same loop. Avoid commas in names, or use a tab-separated file instead.

Shortcuts

The Shortcuts app has a Rename File action, so you can build a Quick Action that renames selected files by a pattern, for example adding the creation date.

Junk Raccoon does not rename files. Its AI sorts files into folders and keeps their names, adding (2) only if a file with the same name is already there.
Let the raccoon do it, safely

Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.

Download for Mac