How to Make a PDF Title Match Its File Name in Bulk
Question details
The user needs to batch-process hundreds of PDF files to either remove the metadata title entirely or update the internal PDF title to exactly match the external file name.

- Product
- Device & OS
- not provided
- Scenario
- Managing a large collection of PDF documents where the internal metadata titles differ from the file names, causing incorrect or confusing names to appear in PDF viewers.
- Observed behavior
- When opening the PDF files, the PDF viewer displays the internal metadata title in the top bar or tab instead of the actual file name, creating confusion.
Before running any batch processing scripts or metadata utilities on your documents, copy your target PDF files into a separate folder to act as a backup in case of script errors.
Use ExifTool to Batch Update PDF Titles
Utilize the free, open-source ExifTool command-line utility to automatically extract the file name and write it into the PDF Title metadata field across multiple files.
ExifTool is a powerful metadata editor that can run on Windows without installation or administrator privileges. You can set up a simple batch script to loop through a folder and apply the file name to the title field.
Download the Windows executable from the official ExifTool website. Create a new master folder on your computer, create a subfolder named 'ExifSys' inside it, and place the unzipped 'exiftool.exe' into the 'ExifSys' folder.
Open Notepad and create a file named 'PDF-Properties.bat' inside the 'ExifSys' folder. Add the following code: "ExifSys\exiftool.exe" -overwrite_original -Title="%~n1" -Author="Your Author Name" "%~1"
Open Notepad again and create a file named 'Run-Batch.bat' in the master folder. Enter the following code to loop through your PDFs: for /r "%cd%" %%x in (*.pdf) do call "ExifSys\PDF-Properties.bat" "%%x"
Place all the target PDF files into the master folder and double-click the 'Run-Batch.bat' script. ExifTool will automatically update the Title metadata of each PDF to match its file name (without the .pdf extension).

Change Display Preferences in Acrobat Reader
If you only want to change how the PDFs are displayed on your own computer without modifying the actual file metadata, you can adjust the viewer's preferences.
Use Action Wizard in Adobe Acrobat Pro
For users with a paid Adobe Acrobat Pro subscription, the Action Wizard can be used to run a batch metadata update.
Easily Read and Manage PDFs with WPS Office
While batch metadata editing requires specialized scripts, managing individual PDF files and ensuring they display correctly is incredibly simple with WPS Office. WPS PDF offers a lightweight, fast, and highly compatible reading and editing experience.
- 1. Launch WPS Office: Open WPS Office on your computer and navigate to the PDF toolkit section.
- 2. Open Your Document: Click 'Open' and select your target PDF file. The interface will intuitively display the file name on the document tab.
- 3. Access Document Properties: To view or modify internal metadata, click on 'Menu' in the top-left corner and select 'Document Properties'.
- 4. Edit the Title: In the Description tab, you can manually type a new Title to match your file name, add authors, and save the document.

Frequently Asked Questions
Why does a different name appear at the top of my PDF?
PDFs contain internal metadata, including a 'Title' property. If a document was originally created from a template or a uniquely named Word file, that old name is often embedded as the Title. Many PDF viewers prioritize displaying this internal Title over the external file name.
Does renaming a file on my computer automatically update the PDF metadata title?
No. The file name (managed by your operating system) and the internal PDF Title (managed within the document's metadata) are completely separate. Renaming the file on your desktop will not change the internal title.
Can I remove the PDF title metadata entirely instead of making it match the file name?
Yes. When using a batch processing tool like ExifTool, you can clear the Title field entirely by modifying your script parameter to -Title="" instead of passing the file name variable.




