How to Remove Metadata from PDF Files
Why metadata matters and how to strip it before sharing
PDF files often carry hidden metadata — the author's name, the software used to create the document, internal keywords, and sometimes revision history. Before sharing PDFs externally, stripping this metadata is a simple privacy and security best practice.
Method 1: Using Papiral (fastest, no software needed)
- 1Go to the Remove PDF Metadata tool on Papiral.
- 2Upload your PDF or a ZIP of PDFs.
- 3Click Process — Papiral clears author, title, subject, keywords, producer, and creator fields.
- 4Download the cleaned PDFs.
This is the fastest way to clean metadata from a batch of PDFs without installing any software.
Method 2: Python with PyPDF2
- 1Install PyPDF2: pip install PyPDF2
- 2Use the script below to overwrite metadata fields.
python
from PyPDF2 import PdfReader, PdfWriter
reader = PdfReader("input.pdf")
writer = PdfWriter()
for page in reader.pages:
writer.add_page(page)
writer.add_metadata({
"/Author": "",
"/Creator": "",
"/Producer": "",
"/Title": "",
"/Subject": "",
"/Keywords": "",
})
with open("output.pdf", "wb") as f:
writer.write(f)Method 3: ExifTool (command line)
- 1Install ExifTool: brew install exiftool (Mac) or download from exiftool.org.
- 2Run the command below to clear all metadata.
bash
exiftool -all:all= input.pdfExifTool can also process a whole directory: exiftool -all:all= /path/to/folder/
Frequently asked questions
What metadata is stored in a PDF?
Standard PDF metadata fields include: Title, Author, Subject, Keywords, Creator (the application used to create the file), Producer (the PDF library), and creation/modification dates.
Does removing metadata affect the content of the PDF?
No. Removing metadata only affects the document information fields. All text, images, fonts, and structure are preserved exactly.
Can metadata removal be detected?
The absence of metadata can be noticed by someone inspecting the document properties, but there is no way to recover metadata that has been overwritten.
Ready to try the fastest method?
Strip author, title, keywords, and other metadata from PDF files. Protect privacy before sharing documents.
Remove Metadata — free
Papiral
Tabular