Sanitize PDF: Remove Hidden Data
Clean selected PDF metadata, scripts, attachments and links. Review cleanup options, save a separate copy and check the result before sharing.
Preparing your workspace
The PDF tool will appear here when it’s ready.PDFs can hide things you did not mean to share: author names, scripts, attached files, links and comments. Pick what to remove, then download a cleaner copy.
You can also flatten form fields so answers become part of the page.
How to sanitize a PDF
- Open the PDF to clean — Choose an unlocked PDF and keep your original, especially if it contains signatures or forms.
- Select the content to remove — Choose metadata, JavaScript actions, attachments, links or annotations. Flattening supported forms turns their field values into page content.
- Check the cleaned copy — Download and review your PDF. This is selected-content cleanup, not malware detection, secure redaction or guaranteed forensic erasure.
Sanitize PDF online for free
Remove supported metadata, JavaScript actions, attachment entries, link annotations or other annotations. Review the options individually. Flattening supported form fields retains their displayed values as static page content and removes their interactive widgets.
Cleanup changes the document and can invalidate signatures. It does not inspect attachments for malware, redact confidential page text or guarantee forensic erasure of every hidden object. Keep your original and verify the downloaded copy in a PDF reader.
When to sanitize a PDF
- Share a file publicly without your name or company details inside.
- Remove old comments and attachments before sending a final copy.
- Strip scripts from a PDF you received.
Sanitize PDF tips
- Keep your original, especially if it is signed.
- This removes the items you choose. It is not a virus scanner.
- For a deeper metadata clean-up, use Clean Hidden PDF Metadata Thoroughly.
Sanitize PDF features
Metadata clears the title, author, apps and dates stored in the file. JavaScript removes scripts, which are rarely needed and can be a security risk. Attachments removes files stored inside the PDF. Links removes clickable web and page links. Annotations removes comments and markup. Flattening forms turns filled-in answers into part of the page.
Sanitize PDF FAQ
What can I remove?
Metadata, JavaScript actions, attachments, links and annotations.
Does it remove viruses?
No. It removes selected content, but it is not malware protection.
Is my file uploaded?
No. Cleanup runs in your browser.
Should I keep my original?
Yes. Cleaning can remove things you later need, and signed files lose their signature.
Is it safe to sanitize a PDF online?
These tools run directly in PDFzelo. Keep your original file and review the downloaded result before sharing it. Read our privacy policy before working with sensitive documents.
Find similar tools among our PDF security tools, or go back to more free PDF tools.