Strong passwords by default
Passwords are generated using your browser's cryptographically secure random number generator, mixing letters, numbers, and symbols.
Customizable
Adjust the length from 8 to 32 characters and toggle uppercase letters, numbers, and symbols on or off to match a specific PDF tool's requirements.
Use it with your PDF editor
This tool generates the password only - apply it in Adobe Acrobat, Preview, or another PDF editor's "Set Password" or "Protect" feature, since browsers cannot apply PDF encryption directly.
How to add the password to your PDF
Microsoft Word (Windows), free if you have Word
- Open the document in Word → File → Save As (or Save a Copy).
- Choose PDF as the file type → click Options…
- Tick Encrypt the document with a password → OK.
- Paste the generated password twice → OK → Save.
Mac Preview, free on every Mac
- Open the PDF in Preview → File → Export…
- Click Permissions… and tick Require password to open document (on older macOS versions, tick Encrypt instead).
- Paste the password, set an owner password if asked → Apply → Save.
LibreOffice, free on Windows, Mac and Linux
- Open the document → File → Export As → Export as PDF…
- Open the Security tab → Set Passwords…
- Paste the password under Set open password → OK → Export
Adobe Acrobat Pro (paid)
- Open the PDF → All tools → Protect a PDF → Protect using password.
- Choose Viewing (needed to open the file) → paste the password twice → Apply → save the file.
The free Adobe Acrobat Reader can open protected PDFs but can’t add a password.
Open password vs permissions password
- Open password (also called user or document-open password): needed to open and read the PDF. This is the one that protects private documents.
- Permissions password (also called owner password): limits printing, copying or editing, but the file still opens without it. Many programs can ignore these limits, so don’t rely on it alone for sensitive files.
For real protection, always set an open password.
How strong should a PDF password be?
| Length (all character types on) | Strength | Use for |
|---|---|---|
| 12 characters | About 75 bits | Everyday documents |
| 16 characters | About 100 bits | Contracts, ID copies, bank statements (recommended) |
| 20 characters | About 125 bits | Highly sensitive files |
Each extra character multiplies the number of possible passwords by 77 (the letters, numbers and symbols this tool uses), so length is the easiest way to add strength. If a program rejects a symbol, switch symbols off and add 4 more characters instead.
Tips for sharing a protected PDF
- Send the password separately: for example by text message or phone call, not in the same email as the PDF.
- Save the password before you close this page, ideally in a password manager. There’s no way to recover a forgotten PDF password.
- Keep an unprotected original somewhere safe, in case you need to edit the document later.
- Some sites require a number: random passwords don’t always include one, so if a program says a number is required, just generate a new password.
Need a password for an account instead? Use the Strong Password Generator. PDF too big to email? Read How to Make a PDF Smaller for Email.
Common Mistakes to Avoid
Expecting this tool to encrypt the PDF itself
Solution:
This tool only creates the password text. You still need a PDF editor to apply password protection to the file.
Choosing a very short password for sensitive documents
Solution:
Use at least 12-16 characters with symbols enabled for documents that need real protection.
Frequently Asked Questions
No - it generates a strong password for you to use in a separate PDF editor's protection feature. Browsers cannot apply PDF encryption directly.
No - it is generated locally in your browser and never sent anywhere.
Use Microsoft Word (Save As → PDF → Options → Encrypt the document with a password), Mac Preview (File → Export → Permissions → Require password to open document) or the free LibreOffice (Export as PDF → Security → Set Passwords). Generate the password here first, then paste it in.
An open password is needed to open the PDF at all. A permissions password only restricts printing, copying or editing, and the file still opens without it. For private documents, always set an open password.
No. A properly encrypted PDF can’t be opened without its open password, so keep the password in a password manager and keep an unprotected copy of the original somewhere safe.

