Free Online Tool

Sanitize PDF

Make a PDF safe to share or open: remove JavaScript, attached files, actions that run when the file opens, commands that launch other programs and hidden XFA forms. You see what was found first.

Sanitize PDF

Add · Check · Clean

How to sanitize a PDF

  1. Add your PDF

    Drop one or more PDFs onto the tool or click Choose files.

  2. Check and choose

    Each file shows how many risky items it has. Choose what to remove.

  3. Download

    Press Sanitize PDF and download the clean copy.

Why use it

What this free tool does

JavaScript

Scripts in the document, links and form fields.

Embedded files

Attachments hidden inside the PDF.

Auto-run actions

Anything that runs when the PDF opens or a page is viewed.

Launch and submit actions

Commands that open programs, other files or send data.

XFA and metadata

Hidden form data and, optionally, metadata.

Optional: web links

Remove links to websites too.

Why sanitize?

Most PDFs are harmless, but the format can carry scripts, attachments and actions that run automatically. Organisations often sanitize PDFs from outside before opening them, and before publishing their own.

Sanitizing keeps the pages exactly as they look. Interactive features that rely on scripts, such as calculated form fields, stop working.

Tip: Want to remove hidden details like the author too? Tick Metadata, or use Remove Metadata.

Your files stay on your device

Most online PDF sites upload your documents to their servers. Aleynray Ai does the work inside your browser instead, on your own computer or phone.

Nothing is sent anywhere, so contracts, bank statements, IDs and medical forms stay private, and there is no waiting for uploads.

  • Free, with no sign-up or limits
  • No watermark
  • Files never leave your device
  • Opens password-protected PDFs
  • Works on desktop and mobile

Frequently asked questions

What counts as risky content?

JavaScript, embedded files, actions that run automatically, and actions that launch programs, open other files or submit data.

Will the PDF look different?

No. What's on the pages stays the same.

Is it safe to open a suspicious PDF here?

The tool reads the file without running any of its scripts, and works entirely in your browser.

Is it free?

Yes. There is no sign-up, no limit on files and no watermark.

Are my files uploaded?

No. The tool runs inside your web browser and works on the file on your own device. Nothing is sent to a server, so private documents stay private.

More free PDF tools