Sanitize a PDF

Drop a PDF and the parts that can run code or carry other files are taken out. Text, images and form fields are untouched. Nothing is uploaded.

Files are processed entirely in your browser. Your file's contents never leave your device.

Your PDF never touches a server. There's nothing here to ration.

No daily caps. No spinner that turns into a paywall after the third file.

Private by architecture

Your PDF never leaves your device.

Unlimited use

No daily caps or hourly throttling. The heavier tools cap files at 100 MB.

No signup, no watermarks

Every tool below works with or without an account.

Works offline

A tool you've already loaded keeps working offline. Tools you haven't opened yet still need the network.

About this tool

A PDF is not just a picture of a page. The format lets a file carry JavaScript, and lets that script be wired to run the moment the document is opened, or when a page is turned, or when it is printed or closed. It can also carry whole other files inside it, riding along invisibly. Almost no everyday document needs any of that, which is why those features are a favorite of people sending attachments they hope you will open. It is also why a document arriving from outside your organization is worth cleaning before it goes any further.

Drop a PDF and it is stripped immediately: embedded scripts, the open/close/print action slots that trigger them, and files attached inside the document. The page content is not touched. Text stays selectable, images keep their resolution, form fields still work, and nothing is rasterized. The result tells you exactly what came out, because a sanitized PDF looks identical to the one that went in and the count is the only evidence you get. A file that was already clean is handed back untouched and says so, rather than being re-saved to look like something happened.

All of it runs in your browser with pdf-lib, which is the part that matters for a security tool: a document you are unsure about is never uploaded to be inspected, so it is never sitting on someone else's disk. Removal is real rather than cosmetic. Each script and each embedded file is deleted from the document along with the objects it owns, not merely unlinked, so the payload is not left readable in the bytes. Your original file is not modified; the cleaned copy downloads as its own PDF.

Frequently asked questions

What exactly does it remove?
Embedded JavaScript wherever a viewer would run it: the document-level script name tree, an /OpenAction set to run on open, and the additional-action slots on the document, on individual pages, and on annotations. It also removes files embedded in the PDF, whether attached at the document level, pinned to a page as a paperclip, or listed as associated files.
Will it change how my document looks?
No. Page content, text, images, layout and form fields are all left alone. Only the active parts are taken out. Nothing is re-rendered or rasterized, so text stays selectable and images keep their original resolution.
Is this the same as antivirus?
No, and it is worth being precise. It removes the PDF features that are used to carry and trigger active content; it does not scan anything against a database of known threats, and it cannot judge whether a script was harmful. If you are dealing with a file you actively suspect, treat this as one layer, not the whole answer.
My PDF came back saying there was nothing to remove. Is that bad?
It is good. It means the file carries no scripts, no auto-run actions, and no embedded files. Most ordinary documents are like that. Rather than hand you a re-saved copy that looks like work happened, the tool tells you the file is already clean and leaves it exactly as it was.
Does the file get uploaded to be checked?
A tool meant for a file you don't fully trust would be a strange thing to build around an upload step, so there isn't one: the inspection and the stripping both happen locally, with pdf-lib doing the work in your browser tab. Watch the network panel while it runs and there is nothing to see, because the document you're worried about never gets sent anywhere.

All PDF tools

All free, all in your browser. Pick the task you need.