New to AI? Start here → Start 1. What can you do with Claude?
Batch-process files with Claude Code
In one line
Just state the rule, and it processes hundreds of files in one go. Jobs like renaming, converting formats, and finding duplicates that take hours by hand. At first, do it on a copy.
The big picture
★ One at a time vs. one line of rules ★
▶ By hand
300 clicks and 300 entries
1–2 hours, and mistakes happen.
★ Claude Code
"Change them all using this rule"
Preview → approve → a few minutes
Follow along
Step 1. Make a copy of the folder
Copy the whole folder with the files you want to process, name it something like “practice,” and start Claude Code in that folder.
Step 2. State the rule and preview
Illustration (may look a little different from the real screen)
Make JPG copies of all the HEIC photos in this folder and put them in a "jpg" folder. Leave the originals alone. First, tell me how many there are and how you'll convert them.
Sample replyThere are 214 HEIC photos.
I'll convert them with a tool called sips that comes built into your Mac. Nothing extra to install.
May I create the "jpg" folder and convert the 214 photos?
Remember the story in What can you do with Claude?, where Ella tried to turn HEIC photos she got by AirDrop into JPGs, and chat Claude only explained how? Claude Code converts them for you.
Step 3. Check the result
More ways to use it
- “Add the date to the front of each file name: 2026-11-10_original-name”
- “Find files with the same name or the same contents, and just show me a list”
- “Merge these 30 PDFs into one, in order of file name”
- “Make copies of the photos resized to 1200 pixels wide” (for blogs or email attachments)
Where people get stuck
“It wants to install a program”
Some jobs need a small tool. Ask “what are you installing, and why,” and if you’re not sure, say “Do it a way that doesn’t need installing anything.”
“I heard Windows does it differently”
That’s right. Claude Code picks the method that fits your computer on its own. You don’t need to tell it you’re on Windows.
“I made a mistake partway through”
If you did it on a copy, just delete the folder and start over. That’s why the copy is your most important safety net.
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.