Docelora
ToolsAboutContact
PDF tools

Protect PDF with a Password

Add a password to a PDF so only people you give it to can open it, and optionally stop printing, copying or editing. The file is encrypted with AES-256, the strongest method in the PDF standard, using the open-source qpdf engine running in your browser.

Quick answer: upload the PDF, type an open password twice and select Protect PDF. The downloaded copy asks for that password in Adobe Acrobat, Preview, Chrome, Edge and other PDF readers. Choose restrictions if you also want to limit printing, copying or editing.

Protect PDF with a Password

AES-256 · open password and/or permissions

or drag and drop a file here

PDF · up to 300 MB · processed on your device

At least 4 characters. Longer passphrases are much harder to guess.
Needed to change or remove restrictions. Leave empty to use a random one.

Runs on your device: your PDF is processed in this browser tab with open-source PDF libraries served from docelora.com. It is not uploaded to Docelora or anyone else.

How to password-protect a PDF

1. Choose the PDFDrop it in or pick it from your device. It stays on your device.
2. Set the passwordType an open password twice, or choose restrictions only.
3. Pick restrictionsOptional: limit printing, editing or copying.
4. Download and testOpen the protected copy and check the password works before deleting anything.

Open password or permissions password?

PasswordWhat it doesStrength
Open (user) passwordNobody can see the content without itStrong – the content is encrypted with a key derived from the password
Permissions (owner) passwordThe file opens freely, but printing, copying or editing can be restrictedWeak on its own – restrictions are honoured by mainstream readers, but some software ignores them

If you need confidentiality, always use an open password. Permissions on their own are a polite request to the reader software rather than real security, and the PDF standard leaves it to each program to enforce them.

Choosing a strong password

What exactly happens to the file

qpdf rewrites the PDF with the standard security handler, revision 6 (AES-256, introduced in PDF 2.0 and supported by Acrobat 9 and later). Pages, text, images, links, bookmarks and form fields are kept; only the encryption is added. The original file on your device is not changed. A PDF that is already protected must be unlocked first so that the new settings replace the old ones.

Compatibility

ReaderAES-256 support
Adobe Acrobat / Reader 9 and laterYes
Apple Preview and iOS FilesYes
Chrome, Edge and Firefox built-in viewersYes
Very old readers (before 2008)May not open the file

Related tools

Frequently asked questions

How do I put a password on a PDF?

Upload it, type an open password twice and select Protect PDF, then download the protected copy.

Which encryption is used?

AES-256 (PDF security handler revision 6), the strongest option in the PDF standard.

Is my PDF or password uploaded?

No. qpdf runs inside your browser; neither the file nor the password is sent to Docelora.

Can Docelora recover a forgotten password?

No. We never receive it, and strong encryption cannot be reversed without it. Keep it in a password manager.

What is the difference between the open and permissions password?

The open password is needed to view the file. The permissions password controls printing, editing and copying.

Can I only stop printing without a password to open?

Yes – choose “Only restrict printing, copying or editing” and set a permissions password.

Are permission restrictions secure?

Only partly. Mainstream readers honour them, but some software ignores them. Use an open password for confidential files.

Why must the two passwords differ?

If they were the same, anyone who can open the file could also lift the restrictions.

What happens if I leave the permissions password empty?

With restrictions, a random one is used. Without restrictions, the open password is used for both.

Will the protected PDF work on iPhone and Android?

Yes – current PDF apps and browsers ask for the password.

Does protecting change the file size?

Usually only slightly.

Are links, bookmarks and forms kept?

Yes. Only encryption is added.

Can I protect a PDF that already has a password?

Unlock it first with Unlock PDF, then protect it again with the new settings.

Can I protect several PDFs at once?

One file at a time, so you can check each password.

Can I use Urdu or other non-English characters in the password?

AES-256 supports Unicode passwords, but some older readers mishandle them. Letters, numbers and symbols on a standard keyboard are the safest choice.

Is there a file size limit?

Up to 300 MB, but very large PDFs depend on your device’s memory. Close other tabs if a big file is slow.

Does it work on a phone?

Yes, in current versions of Chrome, Safari, Edge and Firefox on Android and iPhone.

Is it free?

Yes. There is no sign-up, watermark or daily limit.

Which browsers are supported?

Current Chrome, Edge, Firefox and Safari on computers, Android and iPhone. WebAssembly must be enabled, as it is by default.

Do I need an account?

No. Open the page and use the tool – there is no sign-up or email address required.

Last reviewed: 14 November 2026.