Home/Blog/Tutorials/How to Rename Multiple PDF Files at Once with Different Names on Mac
Tutorials12 min read

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 needExampleBest method
Same base name + sequence numbersReport_001.pdf, Report_002.pdfFinder Format
Replace one segment across all files2025_report.pdf → 2026_report.pdfFinder Replace Text or Terminal
You already have every target name200 PDFs, 200 different names in a spreadsheetTerminal + CSV or Renomee
Names from the PDF's metadataTitle field: "Q3 Sales Report"Python + PyMuPDF or Renomee
Names from inside the documentVendor, date, invoice number, scanned textRenomee 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)

  1. Select all target PDFs in Finder.
  2. Right-click → Rename Items.
  3. Choose Format.
  4. Set Name Format to Name and Counter, enter a base name like Invoice, set Start numbers at to 1.

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

  1. Open Renomee on Mac, add the PDFs.
  2. Describe the rule:

    "Name all files 'Invoice', sorted by date modified, starting at 001 with three digits."

  3. 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
  1. 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)

  1. Select the PDFs.
  2. Right-click → Rename Items.
  3. Choose Replace Text, type 2025 in Find and 2026 in Replace.
  4. 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

  1. Open Renomee on Mac, add the PDFs.
  2. Describe the change:

    "Replace '2025' with '2026' in every filename."

  3. 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
  1. 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:

  1. Spaces in filenames — wrap variables in quotes: "$old", not $old.
  2. Trailing whitespace in the CSV — a space after the comma causes the mv to fail silently.
  3. 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.

  1. Open Renomee on Mac, add the PDFs.
  2. Click "Import Name List" and select your CSV file.
  3. 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.

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

  1. Open Renomee on Mac, add the PDFs.
  2. 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."

  3. 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
  1. 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.

  1. Open Renomee on Mac, add the PDFs.
  2. Describe what to extract:

    "Pull the vendor name, invoice date, and invoice number from each file. Format: vendor-date-invoicenumber.pdf."

  3. 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
  1. 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

MethodSetup requiredUndoOCR / ContentNo-code
Finder Rename ItemsNoneCmd+Z (immediate only)No✅
Terminal bashNoneNoNoMinimal
Python + PyMuPDFpip3 installNoText layer onlyNo
Tesseract + Pythonbrew + pip3NoOCRNo
Renomee for MacApp install✅ Any timeOCR + AI✅

Before You Run It: Quick Checklist

  1. Keep the .pdf extension — ${f/2025/2026} in bash preserves the extension only if the pattern doesn't include it. Double-check.
  2. Dry run first — replace mv with echo mv in bash to preview without executing.
  3. Test on a copy — duplicate 5–10 files to a test folder and validate there before touching the originals.
  4. Quote your variables — always use "$f" not $f in bash, especially with filenames that contain spaces.
  5. 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

#rename PDF mac#batch rename PDF mac#rename multiple PDF files mac#PDF file management mac#bulk rename mac

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.