Sanitize PDF

Strip metadata (incl. XMP), JavaScript, embedded files/attachments, document actions and link/file actions — the safe-to-share version of a PDF.

Everything happens on your device. Nothing goes outside.

On-device
Everything happens on your device. Nothing goes outside.
This tool runs in your browser — your file is never uploaded, never stored, never logged.
Drop your file here or click to choose
Files stay on this device · max 100 MB

By using this tool you agree to the Terms of Service and Acceptable Use Policy — and for this tool, your file never left this device.

How sanitize pdf works here

Strip metadata (incl. XMP), JavaScript, embedded files/attachments, document actions and link/file actions — the safe-to-share version of a PDF. The whole job — parsing, processing and saving — happens in this browser tab using open-source libraries (pdf-lib / PDF.js). Close the tab and nothing remains anywhere.

People often pair this with encrypt pdf and unlock pdf — same deal there: free, private, no sign-up.

Parameters

This operation takes no parameters — just the file.

FAQ

Is Sanitize PDF free?

Yes — completely free, with no watermark, no sign-up and no trial clock. On the API/MCP side every key gets 250 guaranteed operations a day plus unlimited burst operations on spare capacity. See the pricing page for the full (short) policy.

Does my file get uploaded to a server?

No. This tool runs entirely in your browser with the same libraries the pros use — your file never leaves your device, so there is nothing to store, log or leak.

Can I automate Sanitize PDF with an AI agent or code?

Yes — the exact same operation is a tool on the pdfmcp MCP server (for Claude, Cursor, ChatGPT and other agents) and an endpoint on the REST API. One free key works for both; the guides walk you through setup in about a minute.

Are there limits?

Files up to 100 MB and 500 pages. Web tools are additionally bounded by your device's memory. The caps exist to stop abuse and keep the shared machine fair — they are not a paywall, and there is no paid tier to unlock.

Related tools

API · MCPEncrypt PDFProtect a PDF with a user password (AES-256).API · MCPUnlock PDFRemove password protection (the current password is required).On-deviceStrip AI metadata & provenanceRemove AI-generation provenance and identifying metadata from a PDF or image (JPEG/PNG/WebP): C2PA Content Credentials, XMP/EXIF/IPTC AI markers (incl. IPTC DigitalSourceType trainedAlgorithmicMedia), generator Software/Creator tags, EXIF GPS and device data. Metadata only — content and pixels are never modified, image pixels are not re-encoded, and pixel-embedded invisible watermarks (e.g. SynthID) are NOT removed: they live in the image data itself, not in metadata. The result reports exactly what was found and removed, by category.On-deviceSign PDF (visual signature)Place a visual signature on a PDF: upload the signature image as the SECOND file, or let the signer name be typeset. A self-signed certificate (SHA-256 fingerprint) is generated and recorded in the document metadata. This is an electronic signature stamp + certificate record — not a qualified/PKI document signature.API · MCPSet PDF permissionsEncrypt a PDF with an owner password and fine-grained permissions (print, copy, modify, annotate, ...).API · MCPRedact PDFTRUE redaction: content under the regions is removed from the file (not just covered). Modes: explicit regions, literal texts, and/or PII patterns (emails, SSNs, payment-card numbers — Luhn-checked).

Browse the protect & sign hub or the full tool index. Building something bigger? Read the features tour and the free usage policy.