PDFSafe
Log in
← Back to all tools

Sanitize PDF

Strip hidden metadata, embedded scripts, and annotations from a PDF, right in your browser.

Drop your PDF file here, or click to browse

Max 20MB · processed entirely in your browser

How to sanitize a PDF before sharing it

Upload your PDF and choose what to strip: hidden metadata (title, author, and other document properties, including the embedded XMP copy), embedded JavaScript actions, or annotations like comments and highlights.

This is worth doing before sending a document outside your organization — a PDF's metadata can reveal who last edited it and with what software, details you may not want attached to the file you're sharing.

Frequently asked questions

Why would a PDF need sanitizing?

PDFs can carry hidden information beyond what's printed on the page — author names and edit history in metadata, or JavaScript actions left over from a form template. Sanitizing strips that before you share the file.

What exactly does removing metadata clear?

It clears the title, author, subject, keywords, creator, and producer fields, plus any embedded XMP metadata stream — a second, separate place the same details are often duplicated.

Will removing JavaScript break my form?

It removes scripting actions (like a script that runs when the file opens), not the form fields themselves. If your form relies on JavaScript for validation or calculations, that behavior will stop working — leave that option unchecked if you need it.

Is this the same as Remove Annotations?

Removing annotations here is one of three options you can combine. If you only want to strip comments and highlights without touching metadata or scripts, use the dedicated Remove Annotations tool instead.

Related tools

  • Remove Annotations — Strip comments, highlights, and other annotations from a PDF.
  • Edit Metadata — View and edit a PDF's title, author, subject, keywords, and creator.
  • Flatten PDF Form — Make a filled-in form's field values permanent and non-editable.