Rename hundreds of photos at once
You can do this after: Intermediate
💻 This only works on a computer. You'll need Claude Code or the Claude desktop app.
In one line
Open Claude Code in your photo folder and say “Rename them in the format date taken_place_number.” At first, use a copy of the folder.
When to use it
- When your vacation photos are named things like IMG_4821 and are hard to find
- When you want to line up photos gathered from several phones in date order
- When photo files you’re submitting at work need to follow a naming rule
Follow along
Step 1. Copy the photo folder
Copy the whole photo folder you want to rename and name it something like “photos_practice.” Even if something goes wrong, the originals stay as they are.
Step 2. Open Claude Code in that folder
In the terminal (PowerShell on Windows), type cd and a space, then drag the folder into the window and the path fills in on its own. Press Enter, then type claude. If it’s your first time, press Shift + Tab so ⏸ manual mode on shows at the bottom of the screen. That way it asks before renaming.
Step 3. State the rule and preview
Illustration (may look a little different from the real screen)
I want to rename the photos in this folder in the format "date-taken_Hawaii_number." Example: 2026-10-03_Hawaii_001.jpg. Use the date-taken info stored in each photo, and if there isn't any, use the date the file was created. First, preview just 10 of the new names.
Sample replyI found 214 photos. Here's how the first 10 will change.
IMG_4821.jpg → 2026-10-03_Hawaii_001.jpg
IMG_4822.jpg → 2026-10-03_Hawaii_002.jpg
IMG_4830.HEIC → 2026-10-04_Hawaii_001.HEIC
…
For 5 photos with no date info, I used the file creation date. Shall I go ahead?
Step 4. If it looks good, run it
Check the result, and if it’s good, you can do it in the original folder from now on.
Make it your own
- “Also make JPG copies of the iPhone photos (HEIC)”
- “Put them into folders by date”
- “Separate the landscape photos from the portrait ones”
Watch out for
- Claude Code may want to install a small program to read the photo info. Ask what it’s installing, and if you’re not sure, say “Do it a way that doesn’t need installing anything.”
- Always get a preview before renaming. If the rule is wrong, hundreds of photos go wrong at once.
I'm stuck here
Stuck while following along? Tell me where. Only the site owner sees this. Leave your email only if you'd like a reply.
💌 Get new tips by email
I'll email you when a new tip goes up. No ads, ever.