Home›Blog›File Security & Privacy
File Security & Privacy
14 min read 1 views

How to Remove Metadata From a PDF Before Sharing It

MojoPDF

MojoPDF

November 17, 2026

Imagine emailing a finalized client proposal or an anonymized whistleblower report, only for the recipient to open Document Properties and see your former contractor’s full legal name, your internal company server path, and the exact Word template filename you copied from a rival bid. Knowing how to remove metadata from a PDF solves that exact leak: you purge both the legacy Document Information Dictionary (/Info) and the embedded XML Extensible Metadata Platform (/Metadata XMP stream), strip hidden revision histories and embedded thumbnails, and re-serialize the PDF structure so zero background author or software fingerprints survive.

How to Remove Metadata From a PDF Before Sharing It

Simply deleting the “Author” field in a basic file viewer rarely finishes the job. Modern PDFs store metadata in at least two separate internal structures simultaneously—plus inside embedded images and incremental save histories—meaning clearing one box often leaves identical identifying strings sitting untouched inside the raw file stream.

What Hidden Data Actually Lives Inside a PDF File

When you export a document from Microsoft Word, Google Docs, Adobe InDesign, or a scanner utility, the software quietly packs a surprising amount of background telemetry into the PDF container. Under the ISO 32000 PDF specification, that background data lives in several distinct places:

  • The Document Information Dictionary (/Info): The classic key-value metadata block present since PDF 1.0. It stores Title, Author, Subject, Keywords, Creator (the application that originally authored the file, such as Microsoft® Word for Microsoft 365), Producer (the engine that generated the PDF, such as Acrobat Distiller or macOS Quartz PDFContext), CreationDate, and ModDate.
  • The XMP Metadata Stream (/Metadata): Introduced in PDF 1.4 and governed by the ISO 16684-1 Extensible Metadata Platform standard, XMP embeds a raw, uncompressed XML packet inside the PDF. It duplicates the /Info fields while adding custom application namespaces, document GUIDs, edit revision counts, font lists, and color-profile histories.
  • Embedded Image EXIF and IPTC Data: If you dragged a smartphone photo or scanned receipt into your document before exporting to PDF, the embedded JPEG stream often retains its original camera serial number, lens model, capture timestamp, and exact GPS latitude and longitude coordinates.
  • Comments, Form Fields, and Hidden Layers: Reviewer sticky notes, tracked-change balloons, hidden CAD/Illustrator layers (OCGs), and unflattened form fields carry individual reviewer usernames and timestamps.
  • Incremental Save History: Whenever a PDF editor saves changes incrementally rather than rewriting the entire file, older versions of deleted paragraphs and previous metadata blocks remain appended inside earlier byte offsets of the file.
DefinitionPlain-English explanation of the term

`/Info` Dictionary vs. XMP Stream: The `/Info` dictionary is a small legacy metadata table at the trailer of a PDF, whereas XMP (`/Metadata`) is a full XML packet embedded inside the document catalog. Because modern PDF viewers display XMP fields first, deleting only the `/Info` dictionary leaves the XMP XML stream completely intact—and vice versa.

Why “Clear Properties” in Windows File Explorer Often Fails

Many Windows users right-click a PDF, open Properties > Details, and click Remove Properties and Personal Information, assuming the file is now sanitized. In practice, Windows Shell property handlers only understand standard /Info keys and frequently leave the embedded XMP XML stream, custom application tags, embedded photo EXIF data, and incremental save tails untouched. Worse, if the PDF was created on macOS or Linux with custom XMP namespaces, Windows Explorer displays blank property fields on screen while the raw XML strings remain plainly readable inside the file.

Five Real-World Situations Where PDF Metadata Leaks Sensitive Details

Metadata hygiene is not paranoia—it prevents concrete operational, legal, and competitive embarrassments across everyday workflows:

  1. Submitting Blind Resumes, Grant Applications, or Academic Peer Reviews: An applicant or researcher carefully removes their name from page one, exports to PDF, and leaves their full legal name and university workstation username sitting in the Author and Creator fields.
  2. Sending Competitive Bids, Quotes, and Client Proposals: Agencies frequently duplicate last month’s winning proposal for Client A to draft a quote for Client B. If you forget to strip metadata, Client B can inspect the Title or XMP xmpMM:History log and see Client A’s company name in the original template filename.
  3. Sharing Legal Discovery, Contracts, and Redacted Exhibits: Opposing counsel routinely inspects PDF metadata to verify who drafted an agreement, when specific clauses were modified, and whether earlier incremental saves still sit inside the file. If you also need to remove visible text or numbers from the page itself, combine metadata scrubbing with true character purging—see our guide on how to flatten a PDF without ruining print quality for locking down interactive layers safely.
  4. Publishing Public Reports, Whitepapers, and Government Filings: Organizations publishing PDFs on public websites often leak internal network folder paths (such as C:\Users\j.miller\Desktop\Project_Valkyrie_Confidential\) embedded inside hyperlink base URIs or image source tags.
  5. Whistleblowing, Journalism, and Confidential Disclosures: Scanners and multifunction office printers routinely stamp the machine’s hardware model, serial number, and local timezone into the PDF Producer string, allowing an investigator to trace a scanned document back to a specific office floor.
Common MistakeEasy to miss, costly to fix

Never assume that printing a PDF to a new PDF or converting it to Word and back automatically strips all metadata. While “Print to PDF” clears the old `Author` and `ModDate` fields, the virtual printer immediately writes new metadata identifying your operating system, printer driver version, and exact local timestamp—and it destroys clickable bookmarks and text searchability in the process.

X-ray diagram showing the five hidden data layers you clear when learning how to remove metadata from a PDF
Click on image to view HD

Four Methods for How to Remove Metadata From a PDF (Compared)

Different tools scrub different depths of a PDF. A lightweight property editor might let you type a new Title, whereas a true sanitization engine rewrites the entire object tree and strips XMP packets, embedded thumbnails, and incremental save history.

MethodClears /Info Dictionary?Clears XMP XML Stream?Strips Embedded Image EXIF & Save History?Preserves Vector Text & Bookmarks?Best For
Dedicated PDF Metadata & Sanitize WorkspaceYesYesYes (re-serializes clean object tree)YesFast browser-based scrubbing of contracts, proposals, and client files
ExifTool + QPDF Command-Line PipelineYes (-all=)Yes (when linearized via QPDF)Yes (strips incremental save tails)Yes (100% lossless vector & links)Developers, journalists, and forensic-grade privacy workflows
Adobe Acrobat Pro Sanitize / Remove Hidden InfoYesYesYes (removes hidden layers, comments & XMP)Yes (configurable per category)Enterprise legal and compliance teams on Windows/Mac
macOS Preview / Windows PropertiesPartial (only basic fields)Often leaves XMP intactNo (keeps incremental history & EXIF)YesQuick visual title edits where strict privacy is not required

Method 1: Cleaning Metadata in a Browser-Based PDF Workspace

For everyday business documents—such as scrubbing author names from a freelance proposal or clearing template histories from an invoice—installing command-line forensic utilities is overkill. A browser-based metadata editor lets you inspect existing /Info and XMP fields side by side, edit or wipe them cleanly, and export a re-indexed PDF.

When the document itself is confidential, where that cleanup runs matters just as much as what it removes. An AI PDF editor like MojoPDF runs its metadata inspection and sanitization directly in your browser on your own device, purging hidden author tags, software fingerprints, and XMP streams locally without uploading your sensitive file to an external server.

Method 2: Forensic-Grade Metadata Removal With ExifTool and QPDF

If you are a journalist, security researcher, or paralegal who needs cryptographic-level certainty that zero residual XMP bytes or incremental save histories remain in a PDF, combine ExifTool with QPDF. As Phil Harvey’s official ExifTool PDF tag documentation explains, ExifTool alone appends an incremental update when modifying PDFs—which means the old metadata still sits inside earlier byte offsets until you linearize or rewrite the file with QPDF.

Run this two-step command sequence on a duplicate copy of your PDF:

  1. Strip all /Info and XMP metadata tags with ExifTool:
exiftool -all= -overwrite_original document_copy.pdf
  1. Rewrite the entire PDF structure with QPDF to purge incremental save history:
qpdf --linearize document_copy.pdf sanitized_final.pdf

Why does that second command matter? Because --linearize forces QPDF to rebuild every single object from byte zero, permanently discarding all old incremental save blocks where ExifTool’s overwritten metadata used to hide.

Method 3: Adobe Acrobat Pro’s “Remove Hidden Information” Tool

If you already license Adobe Acrobat Pro on desktop, skip the basic File > Properties dialog (which only clears /Info fields) and use the deep sanitization inspector instead:

  1. Open your PDF in Adobe Acrobat Pro.
  2. Open the All Tools menu on the left and select Redact a PDF > Remove Hidden Information (or Sanitize Document).
  3. Wait for Acrobat to scan the file; the left-hand results pane will list every hidden category found—including Metadata, Embedded search index, Comments and markups, Hidden text, and Deleted or cropped content.
  4. Check every category you want purged, click Remove, and save the file under a new name.
Three-step workflow showing how to remove metadata from a PDF including XMP streams and incremental save histories
Click on image to view HD
Pro TipShortcut the learning curve

Before exporting a Word or Google Docs file to PDF in the first place, strip the document properties at the source. In Microsoft Word, go to File > Info > Check for Issues > Inspect Document and remove Document Properties and Personal Information before clicking Export to PDF—that prevents Word from writing your username and company path into the XMP stream at all.

How to Verify That PDF Metadata Is Actually Gone

Never trust a tool’s “Metadata Removed” confirmation banner at face value. Before sending a sensitive PDF externally, run three quick verification checks to prove the file is clean:

  1. Check Document Properties (Ctrl + D / Cmd + D): Open the sanitized PDF in Adobe Reader, Chrome, or Preview and press Ctrl + D (Windows) or Cmd + D (Mac). Confirm that Title, Author, Subject, Keywords, Application, and PDF Producer are either completely blank or show only generic neutral values.
  2. Inspect the Raw File in a Text Editor or Terminal: Open the sanitized PDF in a plain-text editor (like Notepad, TextEdit, or VS Code) or run strings sanitized_final.pdf | grep -iE "author|creator|producer|xmp" in your terminal. Because XMP metadata is stored as plain ASCII/UTF-8 XML inside most PDFs, any surviving <dc:creator> or <xmp:CreatorTool> tag will show up immediately in plain text.
  3. Audit Embedded Images With ExifTool: Run exiftool sanitized_final.pdf in your terminal to verify that no embedded JPEG streams still carry GPSPosition, Make, Model, or SerialNumber tags from a camera or scanner.

Worked Example: Sanitizing a 28-Page Client Proposal Template Before Bidding

Let’s walk through a realistic agency scenario. Suppose a marketing consultancy wins a project for Northstar Logistics, then duplicates that 28-page winning PDF proposal to create a pitch for a competing freight firm, Apex Cargo. Even after updating every visible heading and logo on the pages, the raw PDF still leaks five hidden clues:

  • /Info Title: Northstar_Logistics_Q4_Pitch_v6_FINAL
  • /Info Author: sarah.chen (an account director who left the firm three months earlier)
  • XMP xmp:CreatorTool: Adobe InDesign 20.1 (Macintosh) with a document modification count of 47
  • Embedded Case-Study Photo (Page 14): JPEG EXIF data containing GPS coordinates for Northstar’s warehouse in Newark, New Jersey
  • Incremental Save Tail: Two older trailer blocks from earlier drafts still appended at the bottom of the file

The four-minute cleanup sequence:

  1. Clear /Info and XMP fields: Open a duplicate of the Apex Cargo PDF in a metadata sanitizer and wipe Title, Author, Subject, Keywords, and all custom XMP namespaces (or set a clean public Title like Apex Cargo — 2027 Supply Chain Proposal).
  2. Flatten annotations and strip hidden layers: Merge any remaining review comments into static page content and remove unused InDesign guide layers so no reviewer initials linger in /Annots.
  3. Re-serialize the PDF structure: Export or linearize the file from scratch so the 47 incremental save revisions collapse into a single clean object tree.
  4. Run the plain-text grep check: Search the exported PDF in a text editor for Northstar and sarah—zero matches return.

If you also need to remove sensitive dollar figures or client names visible on the page itself, remember that metadata removal only cleans background properties; for visible text, follow our guide on how to make a PDF editable or use a dedicated redaction tool to purge the visible characters permanently.

Metadata Removal vs. Sanitization vs. Redaction: What Each One Covers

People frequently search how to remove metadata from a PDF when their document actually contains three different layers of hidden or sensitive information. Use this comparison to make sure you are using the right tool for each layer:

Privacy OperationWhat It RemovesWhat It Leaves BehindWhen to Use It
Edit / Remove PDF Metadata/Info keys (Author, Title, Creator, Producer, dates) and XMP XML packetsVisible page text, embedded images, comments, and incremental save historyBlind resumes, proposals, academic submissions, and general file sharing
Full Document SanitizationMetadata, XMP, comments, form fields, hidden layers, scripts, embedded search indexes, and save historyOnly the visible flat page contentLegal discovery, FOIA/public records releases, and executive board packets
Permanent PDF RedactionSpecific visible words, numbers, or image regions (plus underlying character codes)The rest of the document layout and metadata (unless also sanitized)Hiding SSNs, bank account numbers, pricing, or witness names on the page
Real World ExampleHow it looks in actual practice

A municipal public-records officer preparing a 140-page zoning report for public website upload ran a full metadata and sanitization pass before publishing—and caught that an embedded site-inspection photograph on page 88 still contained the inspector’s home GPS coordinates in its EXIF header, which had survived an earlier basic property wipe.

Common Mistakes When Stripping PDF Metadata

Even privacy-conscious professionals make four avoidable mistakes when cleaning PDFs:

  • Editing the original file without keeping a master copy: Once you strip Title, Keywords, and internal version IDs from a PDF, your own desktop search and document management system can no longer index the file by author or project tag. Always keep an internal _MASTER.pdf with full metadata and distribute a separate _CLEAN.pdf copy.
  • Forgetting that cloud drives add new metadata on upload: Uploading a sanitized PDF to SharePoint, Google Drive, or an enterprise CMS does not alter the internal PDF bytes, unless you open and re-export the file inside that cloud viewer—which stamps the cloud platform’s PDF generator into the Producer tag.
  • Leaving clickable hyperlinks pointing to internal network drives: Word and InDesign occasionally convert local file paths or staging URLs into clickable /URI link annotations inside a PDF. Run a quick link audit alongside your metadata check so external readers do not see internal staging links.
  • Confusing password protection with metadata removal: Encrypting a PDF prevents unauthorized users from opening it, unless you use weak permissions-only encryption—and anyone who does have the open password can still inspect every metadata field immediately. If you are dealing with locked files, see our breakdown of how to remove a password from a PDF to understand how encryption and document dictionaries interact.
Comparison chart showing how to remove metadata from a PDF versus full document sanitization and permanent redaction
Click on image to view HD

Final Thoughts

Mastering how to remove metadata from a PDF takes less than two minutes once you know where PDFs hide background data. Because modern documents store identifying details across both the legacy /Info dictionary and the embedded XMP XML stream—and retain older edits inside incremental save tails—a thorough cleanup means wiping both metadata structures, flattening annotations, and re-serializing the file from byte zero. Keep an internal master copy for your own archive, verify your exported file with Ctrl + D and a quick plain-text search, and send every external PDF with complete confidence.

Key TakeawaysThe essentials at a glance
  • PDFs store hidden background data in two separate structures—the `/Info` dictionary and the embedded XMP XML stream—so clearing one without the other leaves identifying data behind.
  • Always strip metadata on a duplicate copy (`_CLEAN.pdf`) and keep your original `_MASTER.pdf` intact for internal search and archiving.
  • For maximum privacy, re-serialize or linearize the PDF after wiping tags (such as with QPDF or a full sanitization pass) so old incremental save histories are permanently purged.
  • Remember that embedded JPEG photos inside a PDF can still carry camera serial numbers and GPS coordinates in their EXIF headers.
  • Verify every cleaned file by pressing `Ctrl + D` / `Cmd + D` in your PDF viewer and searching the raw file in a plain-text editor for old author names or template titles.
MojoPDF
Written By

MojoPDF

Taj

A professional SaaS founder offering great value to it's customers.

Frequently Asked Questions

To remove metadata completely, you must clear both the legacy Document Information Dictionary (/Info) and the embedded XMP XML metadata stream, then re-serialize the PDF so incremental save history is purged. Using a dedicated PDF sanitization tool or running ExifTool followed by QPDF (--linearize) ensures zero residual author or software tags remain inside the file.

PDF metadata typically stores the Author name (often pulled from your Windows or macOS login username), the original document Title, the software used to create and convert the file (Creator and Producer), exact creation and modification timestamps, custom keywords, and occasionally embedded image EXIF data like camera serial numbers and GPS coordinates.

Windows File Explorer only edits the legacy /Info dictionary and often leaves the embedded XMP (Extensible Metadata Platform) XML stream untouched. Because modern PDF readers like Adobe Acrobat and Chrome prioritize XMP tags over /Info tags, your name continues to appear until the XMP stream is also wiped.

Printing to PDF strips the original Author name, Title, and XMP revision history, which makes it a quick workaround for basic privacy. However, the virtual print driver immediately writes new metadata showing your operating system, printer driver, and current timestamp, while also stripping clickable bookmarks, hyperlinks, and sometimes text searchability.

It is safe only if the tool processes the file locally in your browser or encrypts uploads over TLS and deletes files immediately without storing or training on your documents. For highly confidential legal, medical, or whistleblower files, use a client-side browser editor or offline command-line utilities like ExifTool and QPDF.

Open the PDF in Apple’s built-in Preview app, press Command + I to open the Inspector, click the magnifying glass (Keywords) tab to delete any listed tags, and then choose File > Export to save a fresh copy. Keep in mind that Preview still writes macOS Quartz PDFContext into the Producer field, so use ExifTool or a dedicated sanitizer if you need a completely blank Producer string.

Yes, if the PDF was saved using incremental updates, earlier versions of modified objects and previous metadata blocks can remain appended inside the file’s byte stream. Rewriting or linearizing the PDF from scratch removes all incremental save history so only the final visible state exists.

Open the cleaned PDF in Adobe Reader or Chrome and press Ctrl + D (Windows) or Cmd + D (Mac) to inspect Document Properties. For a deeper check, open a copy of the PDF in a plain-text editor like Notepad or TextEdit and search for your name, company name, or the word xmp to confirm no raw XML tags remain.

No. Stripping /Info and XMP metadata only removes non-visual background text dictionaries from the PDF catalog and trailer. Your page dimensions, embedded vector fonts, hyperlinks, and image resolution remain 100% unchanged.

Always remove metadata before applying a cryptographic certificate-based signature. Modifying or stripping metadata after a PDF has been cryptographically signed alters the file’s byte hash and invalidates the digital signature.

567 tools, one workspace

Every PDF tool you need, in one place

Convert, edit, sign, organize and secure your documents — or let the AI read them for you. Pick a tool, drop your file and finish in the Mega AI Studio.