How to Rename Multiple PDF Files at Once with Different Names on Mac
Renomee Team
Published on September 17, 2026 · Updated on 9/17/2026
How to Rename Multiple PDF Files at Once with Different Names on Mac
Select 30 PDFs in Finder, press Enter, type a name — you get Invoice 1.pdf, Invoice 2.pdf, Invoice 3.pdf. All the same base name with a counter.
The goal is something like this:
scan_0001.pdf → alibaba-invoice-2026-09-17.pdf
scan_0002.pdf → office-lease-agreement-2026.pdf
scan_0003.pdf → cmb-bank-statement-august.pdf
Each file gets a different, meaningful name. macOS gives you several tools to do this — which one to use depends on where each new name comes from.
Quick answer: Same base name + numbers → Finder Format. Swap one segment → Finder Replace Text or Terminal. Unique list of names → bash + CSV. Names from PDF metadata → Python. Names from document content or scans → Renomee for Mac.
What Kind of Rename Job Are You Dealing With?
| Your actual need | Example | Best method |
|---|---|---|
| Same base name + sequence numbers | Report_001.pdf, Report_002.pdf | Finder Format |
| Replace one segment across all files | 2025_report.pdf → 2026_report.pdf | Finder Replace Text or Terminal |
| You already have every target name | 200 PDFs, 200 different names in a spreadsheet | Terminal + CSV or Renomee |
| Names from the PDF's metadata | Title field: "Q3 Sales Report" | Python + PyMuPDF or Renomee |
| Names from inside the document | Vendor, date, invoice number, scanned text | Renomee for Mac |
The dividing line: if the name comes from a rule you can describe, built-in tools work. If each name has to be read out of the file itself, you need content-extraction capability.
Scenario 1: Rename All PDF Files to the Same Base Name with Sequence Numbers on Mac
The simplest case — all PDFs share one base name, differentiated only by a number.
Finder — Format (built-in, no tools needed)
- Select all target PDFs in Finder.
- Right-click → Rename Items.
- Choose Format.
- Set Name Format to
Name and Counter, enter a base name likeInvoice, set Start numbers at to1.
Result:
Invoice_1.pdf
Invoice_2.pdf
Invoice_3.pdf
Finder's Format mode gives more control than Windows F2: you choose the separator (_ or -), the starting number, and whether to use a counter, index, or date.
The catch: The sequence follows Finder's current sort order. Change the sort before renaming to control which file gets which number.
Renomee for Mac
- Open Renomee on Mac, add the PDFs.
- Describe the rule:
"Name all files 'Invoice', sorted by date modified, starting at 001 with three digits."
- Renomee shows the preview instantly:
Original name New name
scan_0001.pdf → Invoice_001.pdf
scan_0002.pdf → Invoice_002.pdf
scan_0003.pdf → Invoice_003.pdf
- Confirm and execute. Undo available.
You control the sort key (name / date / size), the number format, and the separator.
Scenario 2: Change One Segment Across All PDF Filenames on Mac
Every file keeps its unique part, and one shared segment changes — a year, a project code, a prefix.
2025_Q1_Boston.pdf → 2026_Q1_Boston.pdf
2025_Q2_Chicago.pdf → 2026_Q2_Chicago.pdf
2025_Q3_Denver.pdf → 2026_Q3_Denver.pdf
Finder — Replace Text (no Terminal needed)
- Select the PDFs.
- Right-click → Rename Items.
- Choose Replace Text, type
2025in Find and2026in Replace. - Click Rename.
Works for simple text swaps. No undo beyond Cmd+Z immediately afterward.
Terminal
Open Terminal, cd to the folder, then:
for f in *.pdf; do mv "$f" "${f/2025/2026}"; done
Adding a prefix to every PDF:
for f in *.pdf; do mv "$f" "Accounting_$f"; done
Dry run first — replace mv with echo to preview without changing anything:
for f in *.pdf; do echo mv "$f" "${f/2025/2026}"; done
The catch: No undo. A wrong pattern silently renames everything incorrectly.
Renomee for Mac
- Open Renomee on Mac, add the PDFs.
- Describe the change:
"Replace '2025' with '2026' in every filename."
- Renomee shows every file side by side immediately:
Original name New name
2025_Q1_Boston.pdf → 2026_Q1_Boston.pdf
2025_Q2_Chicago.pdf → 2026_Q2_Chicago.pdf
2025_Q3_Denver.pdf → 2026_Q3_Denver.pdf
- Confirm and execute. Full undo after execution.
Scenario 3: Rename Multiple PDF Files from a Pre-Defined List on Mac
You have a spreadsheet or list with the exact target name for each file.
Terminal — bash + CSV
Create names.csv with old and new names, one pair per line:
scan_0001.pdf,alibaba-invoice-2026-09-17.pdf
scan_0002.pdf,office-lease-agreement-2026.pdf
scan_0003.pdf,cmb-bank-statement-august.pdf
Apply from the folder containing the PDFs:
while IFS=, read old new; do
mv "$old" "$new"
done < names.csv
Dry run first (print intended renames without executing):
while IFS=, read old new; do
echo "mv \"$old\" \"$new\""
done < names.csv
Things that go wrong most often:
- Spaces in filenames — wrap variables in quotes:
"$old", not$old. - Trailing whitespace in the CSV — a space after the comma causes the
mvto fail silently. - Row/file count mismatch — more CSV rows than files, or vice versa.
The catch: No undo once the loop runs. Keep a backup:
ls *.pdf > filenames_backup.txt
Renomee for Mac
No Terminal loop required — import the CSV directly.
- Open Renomee on Mac, add the PDFs.
- Click "Import Name List" and select your CSV file.
- Renomee matches each row to the correct file and shows the preview:
Original name New name (from CSV)
scan_0001.pdf → alibaba-invoice-2026-09-17.pdf
scan_0002.pdf → office-lease-agreement-2026.pdf
scan_0003.pdf → cmb-bank-statement-august.pdf
Before executing, Renomee flags any duplicate target names and row/file count mismatches.
- Confirm and execute. One-click undo afterward.
Scenario 4: Rename PDF Files Using Metadata Stored Inside the Document on Mac
PDF files carry embedded metadata: Title, Author, Subject, Keywords. When the Title field is filled in — common in PDFs from Word, ERP systems, or academic databases — it's the cleanest naming source without reading the full page.
Checking metadata on Mac
Select a PDF → Cmd+I (Get Info). Under More Info, look for Title. If it shows useful text like "Q3 2026 Sales Report", that's usable. If it's blank or generic, the field isn't populated.
Python + PyMuPDF (free, runs on Mac)
pip3 install pymupdf
import fitz # PyMuPDF
import os
folder = "/Users/you/Documents/PDFs"
for filename in os.listdir(folder):
if not filename.lower().endswith(".pdf"):
continue
path = os.path.join(folder, filename)
doc = fitz.open(path)
title = doc.metadata.get("title", "").strip()
doc.close()
if not title:
print(f"No title metadata: {filename}")
continue
# Remove characters invalid in macOS filenames
safe_title = title.replace("/", "-").replace(":", "-").strip()
new_name = safe_title[:120] + ".pdf"
new_path = os.path.join(folder, new_name)
if os.path.exists(new_path):
print(f"Target exists, skipping: {new_name}")
continue
os.rename(path, new_path)
print(f"{filename} → {new_name}")
Dry-run mode: Comment out os.rename() and run once to check the output before committing.
Renomee for Mac
No Python required — drop the files in.
- Open Renomee on Mac, add the PDFs.
- Describe the rule:
"Use the PDF Title field as the filename. If the title is empty, fall back to the vendor name and date from the first page."
- Renomee reads each file's metadata and shows the preview:
Original name Title field New name
report_A.pdf Q3 2026 Sales Report - Boston → Q3-2026-Sales-Report-Boston.pdf
report_B.pdf (empty — fell back to content) → alibaba-2026-09-17.pdf
report_C.pdf 2026 Annual Financial Audit → 2026-Annual-Financial-Audit.pdf
- Confirm and execute. Undo available.
Scenario 5: Let the PDF Content Decide the Filename on Mac — OCR and Text Extraction
Finder, Automator, and Terminal can only work with what's already in the filename. A file named scan_0042.pdf gives no information about whether it's an invoice, a lease, or a bank statement.
Rule-based rename: Filename → Filename
Content-driven rename: Document Text → Filename
Target output:
scan_0042.pdf → alibaba-invoice-2026-09-17.pdf
scan_0043.pdf → office-lease-agreement-2026.pdf
scan_0044.pdf → cmb-bank-statement-august.pdf
Searchable PDFs — Python + PyMuPDF
import fitz
import os
import re
folder = "/Users/you/Documents/PDFs"
for filename in os.listdir(folder):
if not filename.lower().endswith(".pdf"):
continue
path = os.path.join(folder, filename)
doc = fitz.open(path)
text = doc[0].get_text("text") if doc.page_count > 0 else ""
doc.close()
# Example: extract a date pattern
date_match = re.search(r'\d{4}-\d{2}-\d{2}', text)
date_str = date_match.group() if date_match else "unknown-date"
new_name = f"document-{date_str}.pdf"
print(f"{filename} → {new_name}")
# os.rename(path, os.path.join(folder, new_name))
This works only if the PDFs have a text layer. Scanned PDFs return empty text, so get_text() yields nothing. On Mac, you can install Tesseract via Homebrew (brew install tesseract) and add pytesseract for OCR — but combining OCR + text parsing + renaming into a reliable pipeline requires significant setup.
Renomee for Mac
Built-in OCR. No Homebrew, no Tesseract install.
- Open Renomee on Mac, add the PDFs.
- Describe what to extract:
"Pull the vendor name, invoice date, and invoice number from each file. Format: vendor-date-invoicenumber.pdf."
- Renomee processes each file and shows the preview:
Original Extracted fields New name
scan_0042.pdf Vendor: Alibaba | Date: 2026-09-17 | Invoice: ALY-88421 → alibaba-2026-09-17-ALY88421.pdf
scan_0043.pdf Type: Lease | Date: 2026 | Title: Office Rental → office-lease-agreement-2026.pdf
scan_0044.pdf Vendor: CMB Bank | Month: August 2026 → cmb-bank-statement-august-2026.pdf
- Confirm and execute. Undo available.
Renomee works identically on Mac and Windows. For the full PDF content-naming workflow, see how to rename PDF files based on content.
Quick Comparison: Mac Methods for Renaming PDFs
| Method | Setup required | Undo | OCR / Content | No-code |
|---|---|---|---|---|
| Finder Rename Items | None | Cmd+Z (immediate only) | No | ✅ |
| Terminal bash | None | No | No | Minimal |
| Python + PyMuPDF | pip3 install | No | Text layer only | No |
| Tesseract + Python | brew + pip3 | No | OCR | No |
| Renomee for Mac | App install | ✅ Any time | OCR + AI | ✅ |
Before You Run It: Quick Checklist
- Keep the
.pdfextension —${f/2025/2026}in bash preserves the extension only if the pattern doesn't include it. Double-check. - Dry run first — replace
mvwithecho mvin bash to preview without executing. - Test on a copy — duplicate 5–10 files to a test folder and validate there before touching the originals.
- Quote your variables — always use
"$f"not$fin bash, especially with filenames that contain spaces. - Back up current filenames —
ls *.pdf > filenames_backup.txt
Frequently Asked Questions
Does macOS have a built-in tool to rename PDFs with completely different names?
Finder handles uniform rules — replace one text segment, add a prefix, or apply sequence numbers. For truly different names per file (from a list or from content), you need Terminal, Python, or Renomee for Mac.
What is the fastest no-code way to rename many PDFs differently on Mac?
Finder's Replace Text or Add Text handles simple swaps with no scripting. For list-based or content-based renaming without code, Renomee for Mac is the option — describe the rule in plain language, review the per-file preview, and confirm.
How do I batch rename PDFs on Mac using data from Numbers or Excel?
Export as CSV. Apply with a bash loop:
while IFS=, read old new; do mv "$old" "$new"; done < names.csv
Or import the CSV directly into Renomee for Mac — it matches rows to files, shows the preview, and flags mismatches before running.
Is there a Mac equivalent of Windows PowerRename for PDF files?
Not a direct built-in equivalent. Finder's batch rename covers basic find-and-replace. For a richer interface with per-file preview, third-party tools like Renomee for Mac fill the gap.
How do I rename scanned PDF files on Mac without coding?
Install Renomee for Mac. Drop the scanned PDFs in, describe what to extract (e.g., "vendor name and date from each invoice"), and Renomee runs built-in OCR on each file to generate unique name suggestions. You review the preview before anything changes.
Can I undo a batch PDF rename on Mac?
Finder rename supports Cmd+Z immediately after. Terminal mv and Python os.rename() are permanent — no undo. Renomee for Mac logs every operation and supports one-click undo at any time after execution.
Does Renomee for Mac work on Apple Silicon?
Yes. Renomee runs natively on both Apple Silicon (M1/M2/M3/M4) and Intel Macs.
Summary
Renaming multiple PDFs with different names on Mac comes down to where each name comes from:
- Same base name + sequence numbers → Finder Format
- Swap one segment → Finder Replace Text or Terminal
- Names from a list you already have → bash + CSV, or Renomee for Mac
- Names from PDF metadata → Python + PyMuPDF
- Names from document content or scans → Renomee for Mac
Finder and Terminal are lowest-friction for clear rules. If each name must come from inside the PDF — especially for scanned documents — Renomee handles both searchable and scanned files with a preview and no OCR setup required.
Tags
About the Author
The Renomee team is dedicated to providing users with the best file management solutions, sharing practical tips and in-depth technical articles.
Table of Contents
Start Using Renomee
Download Renomee and experience smart file management today
Quick Links
Related Articles
Batch Remove Special Characters from Filenames: 4 Methods
Batch remove special characters from filenames in Windows 11. Compare 4 methods: manual F2, PowerShell regex, PowerRename, and AI tools. Clean 1000+ files in 15 seconds with step-by-step guides.
How to Remove Text from Filenames in Bulk (Without Renaming One by One)
Need to remove a specific word or phrase from multiple filenames at once? Compare PowerShell, PowerRename, and Renomee AI — with copy-paste scripts and real examples for each method.
Batch Rename 200 PDF Papers in 1 Minute (Instead of 40)
Downloaded 200 papers and they're all named 'Author - 2024 - Some Very Long Title'? Skip the Excel + batch script nightmare. Renomee uses AI to clean up your entire library in under a minute.