How to find and remove hidden data in a PDF before you share it

Check a PDF for author names, XMP metadata, attachments, comments, and scripts, then strip its document information and XMP metadata in your browser and check the copy again.

Open the PDF privacy inspector toolOpen the Edit PDF metadata tool

Your PDFs are processed in your browser and are not uploaded to any server.

A document you are about to send carries more than the words on its pages. The program that saved it usually wrote in an author name, often the account name of whoever was signed in. A title may still read like the first draft. Reviewers leave comments with their names attached, and a file can hold attachments, scripts, or layers that nobody sees unless they go looking.

This guide works in two stages, with one tool for each. The PDF privacy inspector reads the file and reports what it finds without changing anything. Edit PDF metadata then removes the document information and XMP metadata, which is where names and titles usually hide. Both run in your browser, so the file you are cleaning is never sent anywhere.

Where hidden details live in a PDF

  • Document information: the title, author, subject, and keywords, plus the names of the programs that made the file and when it was created and last changed. Readers show it under document properties.
  • XMP metadata: a second copy of much of the same information, stored in a different format. Removing one copy and not the other leaves the details in the file.
  • Attachments: whole files embedded in the PDF, such as a spreadsheet behind a chart.
  • Comments and other annotations: notes and highlights, each with the name of whoever made it.
  • Form fields: boxes that may still hold earlier answers.
  • JavaScript and layers: code that runs as the document opens, and content that can be switched on or off.

Step 1: see what the file carries

  1. Open the PDF privacy inspector.
  2. Press Choose PDF file and pick the document you plan to share.
  3. Press Start check. Nothing is read until you press it.
  4. Read the report from top to bottom. Each category either says nothing was found or lists what is there: each document information entry with its value, whether XMP metadata is stored, attachment names and sizes, each comment's page and author, and so on.

Note which categories matter for this document. An author name on a public flyer may be fine; the same name on an anonymous review is not.

Step 2: remove the document information and XMP metadata

  1. Open Edit PDF metadata and choose the same file.
  2. The four editable fields fill in with what the file holds now: title, author, subject, and keywords. Under Also stored in this file you see the creator, producer, and dates, which are shown for checking only.
  3. Under What should happen?, choose Remove all document information and XMP metadata.
  4. Press Save PDF. The result line says what was removed, for example that no document information entries remain and that the XMP metadata was removed too.
  5. Save the copy. Its name ends in -metadata, such as report-metadata.pdf. The pages, text, forms, and attachments are untouched, and your original file is not changed.

Step 3: check the copy again

Go back to the inspector and run the new copy through it. The document information and XMP categories should now report nothing. If those were the only findings, the report says that nothing was found in any of the checked categories. Do this every time: it takes seconds and shows the result rather than assuming it.

Keep a title, remove the rest

Removing everything also removes the title. A title helps people and screen readers recognise the document, and the PDF accessibility preflight looks for one. To keep a neutral title, use the other choice instead:

  1. Type the title you want, for example “Quarterly report”, and clear the author, subject, and keywords fields.
  2. Keep Save the fields above selected and press Save PDF.
  3. If the file had XMP metadata, it is rewritten with your new values; the result line says so.

This choice has a limit. The creator, producer, and dates cannot be edited here, so they stay exactly as they were. If the name of the app or the date the file was made gives something away, use the remove choice and accept losing the title.

What needs a different fix

Removing metadata does not deal with every finding. Run the inspector again after each of these fixes.

  • Comments and form fields: Flatten PDF turns form fields, and comments that carry a stored appearance, into ordinary page content, so they can no longer be edited as fields or notes. Other comments are removed with nothing drawn in their place. Check the flattened copy with the inspector to see what is left.
  • Attachments, JavaScript, and layers: these can only be taken out in the program that created the PDF. Save a new copy there, then start again from step 1.
  • Text on the pages themselves: the inspector does not read page text, and removing metadata does not touch it. To black out a name or number on a page, use Redact PDF, as described in How to redact a PDF without uploading it.

If you need both, redact first, then remove the metadata from the redacted copy, then check that copy. Redaction keeps the document information and XMP metadata as they were, so removing them should be the last change you make.

Know the limits of the check

The inspector covers the categories listed above and nothing more. It does not look at details stored inside pictures, such as where a photo was taken, at content covered up or hidden on a page, or at earlier versions of edited content that some files keep. A report with nothing found is a good sign, not proof that the file holds no personal data. When a document is sensitive, the safest copy is often one you export fresh from the original app, then check here.

Neither tool can open a PDF that has a password or editing restrictions. With the password at hand, take the protection off with Unlock PDF first, then work on the unlocked copy.

See for yourself that the file stays put

Both tools read and write the file in your browser tab. The verify page shows how to watch the network while they run, so you can confirm that no request carries your document.

Menu

Up and down arrows choose a tool, Enter opens it, Escape closes. Open this search from any page with Ctrl+K or /.