SwitchPDF

Protect PDF

Encrypt your PDF with a password to prevent unauthorized access.

Protect PDF adds password protection to a PDF using AES-256 encryption — the same standard used by banks and governments. Optionally restrict printing, copying, and editing for additional control over what recipients can do.

How Protect PDF works

PDF encryption works at the file level. When you protect a PDF, the file's content streams (text, images, fonts) are wrapped in an AES-256 encryption layer keyed off your password. Without the password, a viewer can see that the file is a PDF and read its metadata, but the actual content is unreadable cipher text. With the password, the viewer derives a decryption key, unlocks the streams on the fly, and displays the document normally.

SwitchPDF uses pdf-lib's encryption pipeline which implements PDF 2.0's AES-256 standard — the strongest encryption available in the PDF spec. Cracking a 12-character random password by brute force would take longer than the age of the universe with current computing power. The protection is real, not just a "click here to enter password" prompt that any tool can ignore.

The two restriction flags are part of a separate "permissions" layer. When set, they tell compliant PDF viewers to disable the Print button and disable text selection / copy. Adobe Reader, Preview, Chrome, and other major viewers all respect these flags. Some advanced PDF tools can still extract the content if they have the password — restrictions are a UX guard, not a hard security barrier.

Common scenarios: emailing a contract draft that should not be forwarded; sending an invoice to a customer over an untrusted channel; archiving sensitive HR or financial records; sharing pre-publication creative work. For the strongest protection, use a long random password (12+ characters), share it through a separate channel from the file itself, and rotate it for each new recipient.

How to use Protect PDF

1

Upload your PDF

Drag and drop the PDF you want to password-protect.

2

Set a password and permissions

Enter a strong password. Optionally tick the "restrict printing" and "restrict copying" boxes to limit what the recipient can do.

3

Download the encrypted PDF

Click "Protect PDF" and download the encrypted file. Anyone who opens it must enter the password first.

Frequently Asked Questions

What encryption is used?
+
AES-256 (PDF 2.0 standard). The same strength used by banks, governments, and military communications.
Can I restrict printing and copying?
+
Yes. The "restrict printing" flag disables the Print button in compliant viewers. "Restrict copying" disables text selection and copy. Both are honored by Adobe Reader, Preview, and other major viewers.
How strong should my password be?
+
For real security, 12+ random characters mixing letters, numbers, and symbols. 6–8 character passwords are crackable in hours with modern hardware.
Can I remove the password later?
+
Yes. Use our Unlock PDF tool — you will need the current password to unlock.
Is the password stored on your servers?
+
No. The password is used to encrypt the file during processing and is then immediately discarded. We never log, save, or transmit your password.
Will the encrypted PDF open in every viewer?
+
Yes. AES-256 PDF encryption is universally supported in Adobe Reader, Preview, Chrome, Firefox, and all major mobile PDF apps.
Can someone bypass the restrictions?
+
Restrictions are a UX guard, not a hard barrier. Advanced tools can sometimes ignore them. For true confidentiality, rely on the password — once the file is unlocked, content can be extracted.
Is Protect PDF free?
+
Yes. Completely free, no signup, no watermark.

Related tools