Sanitize PDF — Clean Hidden Data, Scripts & Attachments

Strip potentially harmful content from a PDF before sharing it — JavaScript, embedded files, external links, form fields, metadata, and annotations. Choose what to remove and download a safer copy. All processing stays in your browser.

Key Features

Remove Hidden Content

Strip JavaScript, embedded files, external links, form fields, metadata, and annotations that may carry hidden or unwanted content.

Safer Sharing

Reduce the risk of scripts and embedded objects executing when the document is opened by others.

Full Control

Tick exactly which items to remove and see a summary of what was cleaned from your file.

100% Private

All processing happens locally in your browser. Files are never uploaded to any server.

No Install, Free

Works on any device with a browser. No sign-up, no watermarks, and completely free.

What Is PDF Sanitization?

Sanitizing a PDF removes content that is not needed for reading but could be risky, hidden, or unwanted. This includes JavaScript that can run when the file is opened, embedded file attachments, external links that point to websites, fillable form fields that may carry data, document metadata such as author and creation history, and annotations. Cleaning a document before sharing is good practice for privacy and security, especially when sending files to people you do not fully trust. The visible pages and their quality are preserved.

How to Sanitize a PDF

Sanitizing a PDF takes just a few steps. Everything runs in your browser.

1

Upload your PDF

Drag and drop a PDF file or click the upload area to select one.

2

Choose what to remove

Tick the items you want to strip: JavaScript, attachments, links, forms, metadata, or annotations.

3

Sanitize the file

Click Sanitize PDF. The tool scans the document and removes the selected content.

4

Review and download

Check what was removed in the summary, then download the cleaned PDF.

Good to Know

Encrypted PDFs must be decrypted before sanitizing. Sanitization preserves the visible pages and their quality, but it removes the selected hidden content — so links and form functionality may stop working. Removing annotations also removes highlights, comments, and sticky notes. If nothing is listed as removed, your PDF did not contain the selected content. Only sanitize files you own or have permission to modify.

Frequently Asked Questions