Protect a PDF with a password
or drag and drop a file here
PDF · up to 50 MB
Privacy: this tool runs in your browser. Your file is not uploaded to our servers. How we handle files
How to use Protect PDF
Choose a PDF, set a password and download an encrypted copy that opens only with that password. Everything happens in your browser, so neither the file nor the password is uploaded.
- Choose the PDF you want to protect.
- Type a password and repeat it. The strength meter on the page is a guide that runs only on your device.
- Optional: tick Block printing, Block copying text or Block editing, and set a separate owner password.
- Select Protect PDF and download the encrypted copy. The tool reopens it to check that it needs the password.
Supported formats and limits
- Input: PDF, up to 50 MB per file.
- If you lose the password, the file cannot be opened. The password is not stored or sent anywhere, so nobody can recover it for you. Keep an unprotected original somewhere safe.
- The password uses the PDF standard security handler with AES-256 (the default) or AES-128 for very old readers. A short or common password can still be guessed, so use a long one.
- Restrictions on printing, copying and editing are respected by most PDF readers, but they are not a lock: software that ignores them can still print or copy, and anyone who can open the file can read it.
- The file is encrypted as it is. Metadata such as the title and author is encrypted too, but the file size and page count are not hidden.
- A PDF that already has a password is not accepted. Remove its password first with Unlock PDF.
- PDFs of up to 500 pages and the size limit shown on the upload area. Your original file is not changed.
Frequently asked questions
Is the encryption real?
Yes. The file is encrypted with the PDF standard security handler using AES-256, the strongest scheme in the PDF standard. The page content is not readable without the password, and the tool reopens the result to confirm that it refuses to open without it.
Does my password leave my device?
No. The password is typed into this page, used in your browser to encrypt the file, and discarded. It is not put in the address, saved in browser storage, written to a log or sent over the network, and the page clears it once the file is ready.
What happens if I forget the password?
The file cannot be opened. There is no reset and no recovery, by us or by anyone else, which is what makes it secure. Keep the password in a password manager and keep an unprotected original.
What is the owner password for?
A PDF can have two passwords. The open password is needed to read the file. The owner password is needed to change the restrictions, such as blocking printing or copying. You only need an owner password if you tick a restriction, and it must be different from the open password.
Which password strength should I choose?
Leave it on AES-256. Choose AES-128 only if the file must open in PDF software from before about 2010. AES-128 passwords are limited to 32 Western European characters.
Related tools
- Unlock PDFRemove the password from a PDF you own by entering the correct one, or lift print and copy limits that need no password. Runs in your browser, no upload.
- Sanitize PDFRemove metadata, JavaScript, attachments and hidden annotations from a PDF and see a report of what was found. Runs in your browser, nothing is uploaded.
- Add Watermark to PDFStamp text such as DRAFT or CONFIDENTIAL, or a logo, across PDF pages. Set size, colour, opacity, angle, position and page range. Runs in your browser.
- Compress PDFMake a PDF smaller in your browser. Keep text selectable with a re-save, or convert pages to images for bigger savings on scans. Preview the size first.
Created and maintained by Jasmin Gohil. Last reviewed .