← All guides

How to Batch Rename Files with AI (The 68-Icon Problem)

My designer sent 68 icons named 1 through 68. Claude renamed every one by what it actually shows, in minutes. The exact two-sentence prompt inside.


My creative director delivered a beautiful set of 68 icons for my brand, and every file was named 1, 2, 3, 4, 5, and so on. If you've ever worked with a designer, you know this folder. And if you've ever needed "the calendar icon" out of a numbered folder, you know the problem.

Renaming them by hand wasn't a good use of her time or mine. So I handed it to Claude Cowork (Claude's mode for working directly with the files on your computer; plain-English tour in Claude 101), and this was my entire prompt:

Inside of this folder is a folder called 04 Icons with a series of
icons inside. Will you rename these icon files by what they are
icons of?

Two casual sentences. No magic words, no formatting tricks, not even a period in the right place probably. Here's what happened next: Claude looked at the folder, found 68 SVG files, and then rendered each icon so it could actually SEE what it was looking at before renaming it. A few minutes later I had a folder full of names like mouse, pen, martini, and star instead of 1, 2, 3, and 4.

And here's the honest math, because it's the whole point: the rename took about the same 5 minutes it would have taken me. But I sent 3 emails while it ran. The task took the same time it always did; it just ran without me. Multiply that across every little file chore in a week and it stops being little.

Where else this exact move works

Same prompt shape, different folder:

  • Design exports. Any asset delivery named by export order instead of contents.
  • Your downloads folder. "Look at the files from this month and rename them so I can tell what they are, then sort them into folders by type."
  • Screenshots. The graveyard of Screenshot 2026-07-08 at 9.41.12 AM. Have it rename by what's actually in the image.
  • Scanned documents. Receipts and PDFs named by scanner timestamp.

The pattern every time: point at the folder, say what you want the names to reflect, let it look at the actual contents. If keeping your files AI-readable sounds like a bigger idea worth doing properly, that's the second brain setup.

FAQ

Will it overwrite or delete anything? Renaming keeps the files and changes only the names. If you're nervous, duplicate the folder first, or add "show me the proposed names before renaming" to the prompt.

Does it work on images other than SVGs? Yes. PNGs, JPGs, PDFs, screenshots: if it can open and look at the file, it can name it by the contents.

What if I want a naming convention, not just plain names? Say so in the prompt: "rename using kebab-case with an icon- prefix, like icon-calendar.svg." You'll get the convention applied consistently across all 68, which is more than I can say for most humans, me included.

Do I need Claude Cowork specifically? You need a mode that can access your local files, and Cowork is that mode inside the Claude app. The chat-only version can't reach your folders.

Draft notes (internal, strip before publish)

  • Prompt is Audrey's verbatim (screenshot, July 8). The render-then-rename detail is from Claude's actual response in her screenshot.
  • Example names (mouse, pen, martini, star) are hers from take 0011.
  • Screenshot needed at publish: the before/after folder, and her prompt screenshot.