← Ideas · 🗂️ Computer cleanup · Last checked: November 10, 2026

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

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

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.

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 3: ask to see a few of the new names first

Step 4. If it looks good, run it

OK, rename them all. Tell me how many were renamed when you’re done.

Check the result, and if it’s good, you can do it in the original folder from now on.

Make it your own

Watch out for

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.