New to AI? Start here → Start 1. What can you do with Claude?

Last checked: November 10, 2026

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

Leave the repetition to Claude Code!

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

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.

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?

Step 2: have it explain the method before it starts

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

Check that the number of converted files matches the original count, and tell me if any failed.

More ways to use it

Where people get stuck

Lots of people get stuck here. Find the one that matches your situation!

“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.

Next tip

Understand Claude Code's permission requests →

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.