Protect PDF with Password
Password protect and encrypt any PDF online — add a user open password, set an owner permissions password, and control printing, copying, editing and annotation rights. PDF-lib applies real PDF encryption entirely in your browser. No sign-up, no upload, 100% private.
Our free PDF password protection tool lets you password protect any PDF online without sign-up or server upload. Upload a PDF, set a user open password so only people with the password can open the document, and optionally set an owner permissions password to control what actions are allowed — printing, copying text, editing content, filling forms, and adding annotations. A real-time password strength meter guides you to choose secure passwords. PDF encryption is applied entirely in your browser using PDF-lib, producing a genuinely encrypted PDF file. Whether you need to secure a PDF before emailing it, lock a PDF document to prevent editing, add password protection to confidential reports, or restrict copying of copyrighted content, this free tool handles real AES-based PDF security with granular permission settings and zero data transmission to any server.
PDF Password Protector & Encryption Tool
Upload PDF › Set passwords › Configure permissions › Apply encryption › Download protected PDF
🔒 Your file never leaves your device • 100% private • No sign-up required
Ready to protect
Set a password below to encrypt and protect this PDF
Required to open and view the PDF. Leave empty to allow anyone to open the document without a password.
Required to change permissions or remove password protection. Without this, users cannot unlock the restrictions you set below.
Control what users can do with the PDF. These restrictions require an owner password to be overridden. Tick = allowed, untick = restricted.
How to Password Protect a PDF
Upload Your PDF
Drag and drop any PDF onto the upload area or click "Open PDF File". The file is read locally by PDF-lib — your document never leaves your device. Basic file information such as page count and current protection status are shown instantly.
Set Passwords & Permissions
Enter a user open password to require authentication before viewing, and/or an owner permissions password to lock down what actions are allowed. Toggle printing, copying, editing, form filling and annotation permissions individually. Choose AES-128 or RC4-128 encryption.
Protect & Download
Click "Apply Password Protection" — PDF-lib encrypts the PDF binary using your chosen passwords and settings. A progress bar shows encryption progress. The protected PDF downloads automatically. Open it in any PDF viewer — it will require the password.
PDF Encryption & Security Features
User Open Password
Set a password that must be entered before the PDF can be opened or viewed in any PDF reader. The document remains completely inaccessible without the correct password.
Owner Permissions Password
A separate password that controls whether users can override the permission restrictions you set. Without this password, printing, copying and editing restrictions cannot be bypassed.
AES-128 Encryption
PDF-lib applies AES-128 encryption — the same standard used by Adobe Acrobat. The encryption is applied at the PDF binary level, making the content genuinely unreadable without the password.
Granular Permissions Control
Independently allow or restrict 5 actions: printing, copying text and images, editing and modifying, form filling, and adding annotations. These permissions are enforced by the PDF encryption standard.
Real-Time Password Strength Meter
A live strength indicator guides you to use secure passwords — Weak, Fair, Good, Strong. Colour-coded bar shows password quality based on length, character variety and complexity.
100% Private — No Upload
PDF-lib performs all encryption operations entirely in your browser. Your PDF file and passwords never leave your device — no server, no cloud, no third-party services at any point.
Frequently Asked Questions
Related PDF Tools
Modify PDF Properties
Edit PDF title, author and metadata
Redact PDF Text
Permanently black out sensitive content
Edit PDF Online
Highlight, draw, sign and annotate
Add Text to PDF
Type text anywhere on any PDF page
Merge PDF Files
Combine multiple PDFs into one
Split PDF Pages
Split PDF into separate files