Rename and file hundreds of documents with Claude

The struggle: A client sent files with random names and you need them renamed and filed so you can find anything.

What you end up with: A folder of copies renamed and sorted by a consistent pattern, with a log you checked.

Cowork can rename and organise files in a folder you choose. Work on a copy, start with five files, check the log, and only then run the full set.

Tools: Claude. Level: Pro. Time: 45 min.

Use it if

  • You have a folder of files with names like scan001
  • You file by client, date or type
  • You can work from copies

Skip it if

  • The files are the only copy of something important
  • You cannot use Claude Desktop

What you need first

  • A paid Claude plan (Pro, Max, Ultra, Team or Enterprise) with Claude Desktop open and connected
  • A copy of the folder, not the original

The method

  1. Make a safe copy (Claude: Cowork)

    Copy the folder somewhere new and work only in that copy. In Claude Desktop, start a Cowork task and select the copied folder. Open the mode selector in the chat box and choose Manual, so you approve each action.

    You get: Claude can only touch the copy.

    Tip: Claude can only work in folders you connect. Do not connect the original.

  2. Describe the naming rule (Claude: Cowork)

    Write the pattern you want, with real examples, and ask Claude to inspect the folder and report what it found before it changes anything.

    Prompt to copy:

    Look at the files in this folder. Do not rename or move anything yet. Propose a naming pattern: YYYY-MM-DD_[client]_[type]_[short title]. List five examples of old name to new name, and the files where you cannot tell the date, client or type. Ask me about those.

    You get: A plan of changes, not changes.

    Tip: Use an example like 2026-11-15_ClientName_Invoice and say what to do when the date is missing.

  3. Test on five files (Claude: Cowork)

    Approve a run on five files only. Open the folder and check each new name and where the file went. Look at the file contents for at least two of them, because a name can be wrong even when the pattern is right.

    Prompt to copy:

    Apply the pattern to these five files only: [list]. Show a table of old name, new name, folder. Do not delete anything. If a file is unclear, leave it unchanged and say why.

    You get: Five files you have checked.

    Tip: Look for wrong clients and dates. They are the common errors.

  4. Run the rest in batches (Claude: Cowork)

    Run the remaining files in batches of about fifty, checking each batch. Ask for a log file with old and new names. Cowork asks for your permission before permanently deleting, so choose Deny if it asks.

    Prompt to copy:

    Continue with the next batch of files. Rename and move them using the same pattern. Write every change to a log file (old name, new name, folder). Do not delete or overwrite any file. Put unclear files in a folder called Needs review.

    You get: A renamed and filed set with a log.

    Tip: Keep the log. It lets you reverse a bad rename.

  5. Check the result yourself (Claude: Cowork)

    Open Needs review and sort those by hand. Spot check twenty files across folders, then check the file count matches the original. Only then replace your working folder with the sorted copy.

    You get: A filed set you trust.

    Tip: If the counts differ, use the log to find missing files before you touch the original.

Where this goes wrong

  • Work on copies. A wrong run on the only copy cannot be undone.
  • Auto is the default mode on Pro, Max, Ultra and Team, so switch to Manual yourself. Do not use Skip mode on client files.
  • Client files may carry confidentiality rules. Check them before you connect the folder.

Sources

More like this

Updated . Written with AI help and checked by an independent review step, as described in our editorial standards.