Home / PDF Tools / Sanitize PDF
Sanitize PDF
Remove JavaScript, embedded files, links, metadata, comments and hidden layers before sharing.
Free, no uploads, no sign-up. Runs 100% in your browser.
How Sanitize PDF works
Every object in the file is scanned with pdf-lib. Scripts and risky actions are neutralised, and the parts you choose (files, metadata, links, layers and more) are removed before the file is rewritten.
Input: PDF. Output: PDF.
How to use Sanitize PDF
- Drop your PDF onto the Sanitize PDF area, or click to choose it.
- Wait a moment while page thumbnails render locally.
- Choose the pages and options you need. Previews update as you go.
- Press the main action button and download the finished PDF.
Tips
- Encrypted PDFs must be unlocked first with Unlock PDF.
- Large scanned PDFs are mostly images. Compress PDF shrinks them the most.
- Your original file is never modified; you always download a new copy.
Sanitize PDF FAQ
- Are my files uploaded?
- No. This tool runs entirely in your browser tab. Files are read from your disk into memory and the result is generated locally.
- Is it free? Are there limits or watermarks?
- Free and open source (MIT). There are no file-size caps, daily quotas, accounts or watermarks.
- Does it work offline?
- Yes, once the page (and any engine it needs) has loaded, it keeps working without a connection thanks to the service worker cache.
Related tools
- PDF Metadata: View and edit title, author, subject, keywords and dates.
- Redact PDF: Black out areas or auto-find emails, phones and card numbers, then flatten.
- Remove Annotations: Strip comments, highlights, drawings, stamps, links or form fields, by type and page.
- PDF Inspector: See page sizes, fonts and whether they are embedded, images, scripts, version, encryption and word counts.