Back to All Blog Posts
PDF Guides

How to Remove Hidden Data from a PDF Before You Share It

By 7 min read
Hidden data inside a PDF being removed before sharing
Short answer

Check the document properties first; they often hold your name, company and the software you used. Remove them with Remove PDF Metadata, which also deletes comments and rebuilds the file so earlier saved versions, bookmarks and attached files are dropped. Never “redact” with black boxes: either remove the text in the original and export again, or turn the pages into images. Finally, copy and paste the redacted area into a text editor to prove nothing is underneath.

In January 2019, lawyers for Paul Manafort filed a court document with several passages blacked out. Reporters selected the black bars, copied them, pasted them into a text editor and read every word underneath. The bars were just shapes drawn over the text. The American Bar Association’s Judges’ Journal later used it as a textbook example, alongside more than a decade of similar failures in court filings.

Most of us aren’t filing in federal court. But we do send CVs with our old employer’s name in the properties, quotes with a colleague’s comments still attached, and “final” PDFs that quietly contain the previous draft. Here is what can hide in a PDF and how to clean it out.

What can hide inside a PDF

Hidden itemWhat it can revealWhere it comes from
Author and companyYour full name, your computer’s user name, your employerCopied from Word, Excel or your operating system account
Title and subjectAn old document name, such as “Offer – Candidate B – DO NOT SEND”The original file’s properties, often never updated
Creator and producerThe exact software and version you usedAdded automatically on export
DatesWhen the file was really created and last changedAdded automatically
XMP metadataA second copy of all the above, sometimes with edit historyEmbedded by many apps alongside the basic properties
Earlier versionsText you deleted in a later save“Incremental saves”: new edits are appended and the old content stays in the file
Comments and markupInternal notes, reviewer names, sticky notesReview comments and annotations
AttachmentsWhole other filesFiles embedded in the PDF
Text under black boxesExactly what you meant to hideShapes or highlights drawn over text instead of removing it
Cropped-away areasContent outside the visible pageCropping that hides content without deleting it

None of this is visible when you simply read the PDF. That is precisely why it gets missed.

How to check what your PDF is carrying

  1. Look at the properties. In most desktop readers this is under File → Properties (Ctrl+D in Adobe Reader). Or open the file in Edit PDF Metadata, which shows the title, author, subject, keywords, creating application, producer and dates in one place.
  2. Search for names. Use Find (Ctrl+F) for your own name, your client’s name and any word you think you removed.
  3. Open the comments panel. If your reader shows a comments or annotations list, make sure it’s empty.
  4. Do the copy-paste test. Select across any blacked-out area, copy, and paste into a plain text editor. If words appear, the redaction failed.

Step 1: Clean the source document

The easiest hidden data to remove is the data that never makes it into the PDF. Before exporting from Word or another editor:

  • accept or reject all tracked changes, and delete every comment,
  • delete confidential text rather than colouring it white or covering it,
  • check the file’s own properties (in Word: File → Info), and
  • use Word’s Inspect Document feature to find hidden content and personal information.

Then export a fresh PDF. A new export also avoids carrying old revisions forward.

Step 2: Strip the metadata from the PDF

Open the PDF in Remove PDF Metadata. It:

  • clears the title, author, subject, keywords, creator and producer,
  • resets the creation and modification dates to a neutral value,
  • deletes the XMP metadata stream completely, and
  • removes review comments, sticky notes, highlights and files attached to pages, while keeping links and form fields, and
  • rebuilds the file from its pages, so earlier saved versions, bookmarks, files attached to the document and document-level scripts are not carried over.

The tool shows you what it found before cleaning, which is a useful (and occasionally alarming) look at what you would have sent. Everything happens in your browser, so the document you are trying to keep private isn’t uploaded anywhere in the process.

What it doesn’t touch: the visible content of your pages. Text that is on the page, even if it is covered by a black box or coloured white, stays there. That is a redaction problem, covered in step 3.

Sometimes you don’t want empty metadata but correct metadata, for example a proper title so the PDF shows a sensible name in search results and browser tabs. In that case use Edit PDF Metadata instead: set the title and author you want and clear the rest.

Step 3: Redact properly

Drawing a black rectangle over text, or highlighting it in black, is not redaction. The text is still there; it’s just covered. There are two reliable ways to do it instead.

Option A: remove it at the source

Delete the sensitive words in the original document, replace them with “[REDACTED]” or a black bar character if you want the gap to show, and export a new PDF. This is the cleanest method and keeps the rest of the text searchable.

Option B: flatten the pages to images

If you only have the PDF, draw your black boxes, then turn the pages into pictures and back into a PDF. Converting with PDF to JPG and then JPG to PDF throws away everything except what is visible: hidden text, comments, form data and layers all disappear. The trade-off is that the text is no longer selectable or searchable, and the file may get bigger. Use it for the pages that need it, and keep the original somewhere safe.

Always run the copy-paste test afterwards. It takes ten seconds and it’s the only way to be sure.

Filled forms are data too

If you filled in a PDF form, your answers are stored in the form’s fields, and anyone who opens the file can edit, copy or extract them. That is fine when you are sending the form to its intended recipient. If you are sharing a completed form as an example, or forwarding it beyond that, flatten it first with Fill PDF Form so the answers become part of the page, or remove the answers altogether.

Don’t forget the photos inside

Photos taken with a phone can contain their own metadata, sometimes including the GPS location where they were taken. When a photo is placed into a document, that information can come along inside the image. If you are publishing photos of your home, your children or a confidential site, strip the photo’s metadata before you put it in the document, or flatten the final pages as in option B.

A quick checklist before you hit send

  • Comments and tracked changes removed in the source
  • Fresh export, not an edited old PDF
  • Metadata removed, or set to what you actually want
  • Redactions done by removal or flattening, never by boxes alone
  • Copy-paste test passed and a search for sensitive words finds nothing
  • File name says nothing you wouldn’t want seen

Common mistakes

  • White text on a white background. Invisible on screen, perfectly readable when copied or searched.
  • Cropping out a section and assuming it’s gone. Cropping often only hides content.
  • Editing a PDF several times and sending the last save. Incremental saves can keep earlier text.
  • Trusting a “Redacted” stamp from a tool you haven’t tested with the copy-paste check.
  • Cleaning the PDF, then editing it again. The new edit can add fresh metadata. Clean last.

Frequently asked questions

What hidden information can a PDF contain?

Author and company names, document title and subject, the software used, creation and edit dates, XMP metadata, earlier saved versions, comments, attachments, bookmarks and text hidden under shapes or cropped out of view.

How do I see the metadata in a PDF?

Open File → Properties in your PDF reader (Ctrl+D in Adobe Reader), or open the file in a metadata viewer such as CleanPDF’s Edit PDF Metadata, which lists the title, author, keywords, creator, producer and dates.

Does removing metadata change the content of my PDF?

No. The pages, text, images, links and form fields stay the same. The hidden properties, comments and attachments are removed, and the rebuilt file drops earlier saved versions and bookmarks.

Why is a black box not a real redaction?

Because the text underneath is still in the file. Anyone can select it, copy it and paste it elsewhere. True redaction removes the text, either at the source or by flattening the page to an image.

How can I check that a redaction worked?

Select the redacted area, copy it and paste it into a plain text editor. Also search the PDF for the hidden words. If nothing appears in either test, the text is gone.

Is it safe to remove metadata with an online tool?

It depends where the file goes. CleanPDF’s Remove PDF Metadata runs in your browser, so the document is never uploaded. With server-based tools, the file you are trying to keep private is sent to someone else’s server.

Clean your PDF before you share it

See the hidden properties, remove them and rebuild the file, all in your browser.

Open Remove PDF Metadata
Akhtar Ali

Runs CleanPDF and builds its browser-based PDF, image and QR tools. Writes the site’s guides on everyday document problems.