Guide · macOS Productivity
How to Batch Rename PDF Files on Mac
Overview: macOS comes with built-in batch renaming in Finder and Automator/Shortcuts. They work great for static text replacements, but they cannot read inside a document. If you need to rename invoices and receipts by date, vendor, and amount, you need content-aware tools.
Renaming files individually by pressing Return in Finder is tolerable for one or two documents. But when you download a dozen monthly statements, utility bills, and purchase receipts, manual renaming quickly eats up your afternoon.
Here is an honest review of the three main ways to rename PDF files on macOS, what each can do, and where they fall short.
Method 1: Native macOS Finder Batch Renamer
Apple includes a built-in batch renamer in macOS Finder. Many Mac users never discover it because it is tucked into the contextual menu.
How to use it:
- In Finder, select all the PDF files you want to rename (hold
Commandto select individual files orShiftfor a range). - Right-click (or two-finger tap) on the selected files and choose Rename....
- A popup panel will appear with a dropdown menu offering three options:
- Replace Text: Find a specific word or phrase and swap it (e.g. replace
Scan_withInvoice_). - Add Text: Append or prepend text before or after the existing filename.
- Format: Replace the entire filename with a new base name plus an index, a counter (e.g.
0001,0002), or the file creation date.
- Replace Text: Find a specific word or phrase and swap it (e.g. replace
- Click Rename.
When Finder is enough:
Finder is completely free, runs instantly, requires zero software installation, and is entirely safe. If you already have files named Invoice 2026-01.pdf and simply want to replace Invoice with Receipt, Finder handles it in two seconds.
Where Finder falls short:
Finder is completely blind to document content. It cannot look inside a PDF. It cannot determine who sent the bill, what date is printed on the letterhead, what the invoice number is, or how much was charged. If your files are named download.pdf or document_1.pdf, Finder cannot help you turn them into meaningful names.
Method 2: Apple Shortcuts & Automator
For more control without third-party apps, macOS provides the built-in Shortcuts app (and legacy Automator). Shortcuts can read PDF text using Apple's Vision framework and run custom logic.
How to build a basic renaming shortcut:
- Open the Shortcuts app on your Mac and create a new Shortcut.
- Add the action "Get Selected Files in Finder".
- Add a "Repeat with Each" block.
- Inside the loop, add the action "Extract Text from PDF".
- Use "Match Text" (regular expressions) to search for patterns such as date strings (
\d{4}-\d{2}-\d{2}) or dollar amounts (\$\d+\.\d{2}). - Add the action "Rename File" using the matched variables.
- Save the shortcut and run it from the Finder Quick Actions menu.
When Shortcuts works:
If you receive identical, machine-generated invoices from a single supplier every month that always put the invoice number in the exact same spot, a tailored Shortcut can work reliably.
Where Shortcuts breaks down:
- Fragile regex rules: Invoices from different vendors look completely different. Some print dates as
04/12/2026(is it April or December?), others as12 April 2026, and others as2026-04-12. Regular expressions quickly grow into unmaintainable spaghetti. - OCR noise: Scanned paper receipts often have faint printing, skewed text, or shadows. Generic text extraction often scrambles multi-column layouts.
- No visual verification: Shortcuts run blindly in the background. If a regex captures an account number instead of an invoice total, the file is renamed silently with no warning and no easy undo.
Method 3: Content-Aware Batch Renaming with StampName
If you regularly process invoices, tax receipts, bank notices, or utility bills, you need a tool designed specifically for document understanding.
StampName is a native Mac application built from the ground up to rename invoice and receipt PDFs using on-device intelligence.
How StampName works:
- Drop a folder of PDFs: Drop ten, fifty, or hundreds of PDF files or scanned receipts.
- On-Device Extraction: StampName reads the native PDF text layer or runs Apple's neural text recognition on scanned receipts. It extracts:
- The document date (resolving ambiguous regional formats using context cues)
- The trading vendor or biller name
- The invoice or statement reference number
- The total amount and currency
- Visual Review Mode: Before a single file is touched, StampName displays your documents with exact color-coded bounding boxes on the page. You see exactly where the date, vendor, and amount were found. Uncertain rows stay amber until you confirm them.
- One-Click Rename: Apply your chosen naming format (e.g.
YYYY-MM-DD - Vendor - Invoice # - Amount.pdf). - Complete Undo Journal: Every rename is logged to an internal SQLite journal. If you ever need to restore original names, click Undo at any time.
Comparison: Which Method Fits Your Needs?
| Feature | macOS Finder | Apple Shortcuts | StampName |
|---|---|---|---|
| Cost | Free (Built into macOS) | Free (Built into macOS) | $19.99/yr or $39.99 lifetime |
| Setup Time | Zero | High (Scripting/Regex) | Zero (Works out of the box) |
| Reads Inside PDF | No | Basic text extraction | Yes (On-device rules + OCR) |
| Detects Invoices & Receipts | No | Only with custom scripts | Yes (Date, Vendor, Number, Amount) |
| Visual Review UI | No (Renames directly) | No (Background execution) | Yes (Split-screen + Bounding boxes) |
| Undo Safety | ⌘Z (Single step only) | None (Manual recovery) | Full SQLite Undo Journal |
| Privacy | 100% Offline | 100% Offline | 100% Offline (Zero cloud uploads) |
Rename your invoices in seconds, not hours
Download StampName for Mac. Test the full flow on bundled sample invoices for free, then activate with a license key.
Get StampName for Mac