PDF Editing Issues

How to Make a PDF Title Match Its File Name in Bulk

Algirdas JasaitisAlgirdas Jasaitis Nov 2, 2026 869 views

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.

How to Make PDF Titles Match Their File Names in Bulk
Product
PDF
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 you start

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.

Solution 1Recommended

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.

1
Download and Setup ExifTool

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.

2
Create the Properties Batch File

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"

3
Create the Main Execution Script

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"

4
Run the Batch Process

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

Use ExifTool to Batch Update PDF Titles
Metadata Updated: The -overwrite_original flag ensures that ExifTool updates the files directly without leaving duplicate backup files in your directory.
Efficient PDF Management Alternative

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. 1. Launch WPS Office: Open WPS Office on your computer and navigate to the PDF toolkit section.
  2. 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. 3. Access Document Properties: To view or modify internal metadata, click on 'Menu' in the top-left corner and select 'Document Properties'.
  4. 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.
Free and lightweight PDF reader and editorFully compatible with standard PDF and Microsoft Office formatsClean tabbed interface displaying clear file namesEasily view and modify document properties for individual files
microsoft office alternative - wps office

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.