How I renamed 5,000 files with AI (without touching a single one by hand)

I had a folder I'd been ignoring for three years. 5,000 files. Scanned invoices, receipts, bank statements, contracts, all with names like:

  • Scan_0043.pdf

  • IMG_2231.HEIC

  • document(7).pdf

  • Untitled 12.pdf

Search was useless. Finding one invoice meant opening twenty files.

So I used the new Magic Rename templates in Files Magic AI. Here's how it went.

Step 1: Pick a template

Instead of the AI guessing a name, you choose the format. The built-in templates:

  • Invoices: date, vendor, invoice number, amount

  • Receipts: date, merchant, type, amount

  • Statements: date, bank, account holder, type

  • Contracts & Agreements: date, type, both parties

  • Business Documents: date, type, sender, recipient

  • Certificates, Clinic Records, and General Documents for everything else

You can also build your own with custom fields. Tell it "the issuer is the hotel" or "add the project code", and it looks for that.

Step 2: The AI reads every file

Not the filename, the contents. PDF text, spreadsheet cells, and OCR on scans and photos of receipts.

Scan_0043.pdf became 2026-03-14 Invoice Acme-Studios INV-2041 $1,250.pdf
IMG_2231.HEIC became 2026-02-02 Starbucks Receipt $8.40.heic
document(7).pdf became 2025-12-31 Chase Bank Statement Gowtham.pdf

Step 3: Review before anything changes

Every suggested name shows up in a list before it's applied. Edit any name you don't like, untick files you want to skip, then rename.

Step 4: Repeat in batches

Each run handles up to 500 files, so 5,000 files took 10 batches: Add folder → pick template → review → rename. Most of the time was me skimming the list. The renaming itself takes seconds.

The safety net

This is what made me comfortable doing 5,000 at once. Revert to Original puts any file back to its first name, even if it's been renamed more than once. Nothing is permanent.

Pick your engine

  • On-device (Apple Intelligence or the built-in model): nothing leaves your Mac.

  • Cloud AI: fastest, and reads any language.

Other ways to rename

  • Batch Rename: classic rules like find & replace, numbering and case, across a whole folder.

  • Magic Folders: point it at a folder like Downloads, and every new file gets named with your template as it arrives.

The result: 5,000 files I can actually search. Typing "Acme invoice 2026" now finds the file instantly.

Try it free: the free plan includes 25 Magic Renames, on any engine, including Cloud AI.
👉

What's the worst-named file on your Mac right now? Drop the filename below. 👇

61 views

Add a comment

Replies

Be the first to reply

Have a question or a thought to share? Add a comment above to start the conversation.