How-to
How to Protect a PDF with a Password
If you need to email a contract, payslip, or medical record, adding a password is the simplest way to keep it confidential. A password-protected PDF requires a passphrase before opening, and the file contents are strongly encrypted so unauthorized parties cannot read them even if the document is intercepted. This tool applies encryption directly in your browser, with optional AES-256 security. Your sensitive files remain entirely on your device and are never uploaded to any server.
Step by step
- Open the PDF Password tool and drop in the PDF you want to protect. The tool reads the file directly from your disk and works on it in memory, so the document stays on your device the whole time.
- Type the password recipients will need to open the file in the user password field, and optionally add a separate owner password. Pick AES-256 in the encryption strength menu for the strongest protection this format supports. Then choose a permission preset (Full access, Print only, Comment only or Read only) or toggle printing, copying, editing and annotating individually (full access is the default unless you restrict permissions), and enable metadata scrubbing if needed.

- Click the button to encrypt the PDF, then download the protected copy. Open it to confirm it now asks for the password before showing any content. Send the file and the password through two different channels so a single leaked message does not expose both.

Choosing the password and the encryption level
The user password is the one recipients type to open the document, so it has to be shared with them; the owner password is optional and is the one a reader never needs. Permissions are configurable via four presets or per-flag checkboxes for printing quality, copying, modifying and annotating (all allowed by default until restricted), alongside an optional metadata scrubber. Use a long passphrase rather than a short word: a sentence with a few numbers is both easier to remember and far harder to guess. For encryption strength, AES-256 is the strongest option the PDF format offers and is the right default for anything sensitive. AES-128 remains compatible with very old readers, but there is rarely a reason to drop below 256 today.
| Feature | RC4 40/128-bit (Legacy) | AES-128 (PDF 1.6) | AES-256 (PDF 1.7 / 2.0) |
|---|---|---|---|
| Reference | Deprecated (Insecure) | FIPS 197 Standard | ISO 32000-2 Modern Standard |
| Opens everywhere | All Readers (Historic) | Acrobat 7+ / PDF.js | Acrobat 9+ / Modern Browsers |
Encrypting other kinds of files
PDF passwords protect PDF documents that open natively in any PDF viewer. If you need to protect another file type, the AES encrypt tool supports pasted UTF-8 text up to 1 MB and binary files up to 100 MB on desktop (50 MB on mobile; 105 MB / 52 MB for decryption) saved as .enc envelopes with AES-256-GCM and a passphrase, unlocked via the browser tool rather than natively inside a PDF viewer. A protected PDF must also be unlocked before another tool can edit it: PDF Sign reads page structures that encryption hides. Remove the password first, sign, then protect the result again. All of these tools run locally in your browser.
| Feature | macOS Preview Encryption | Windows Native (None) | Browser Client-Side PDF Encrypt |
|---|---|---|---|
| Reference | File → Export → Encrypt | Requires 3rd-Party App | Client-Side JS (PDF AES-256 / AES-128) |
AES-256 and RC4: what PDF encryption actually does
PDF encryption is specified in the PDF standard and has gone through several revisions. Older files used RC4 with 40-bit or 128-bit keys (PDF 1.4 and earlier), which are now considered weak. The current standard uses AES-256 (PDF 1.7 extension level 3 and PDF 2.0). When you set a password, the encryption handler derives a file encryption key from the password using a key derivation function, then uses that key to encrypt every content stream and string object in the file. The document catalog and cross-reference table remain unencrypted so that readers can find the encryption dictionary, but all page content, embedded fonts, and image data are ciphertext until the correct password is supplied. A separate owner password can restrict permissions such as printing or copying without preventing the file from being opened. The tool here applies AES-256 or AES-128 encryption entirely in JavaScript inside your browser; the unencrypted PDF is never sent over the network.
The tools used in this guide
- Password-protect PDFEncrypt PDFs with AES-256/128 passwords, restrict printing or text copying, and strip metadata locally.
- Sign a PDFDraw, type, or import a signature and stamp it onto one or all pages of a PDF with custom captions. Runs locally in your browser.
- AES Encrypt / DecryptEncrypt or decrypt text (up to 1 MB) and binary files (.enc up to 100 MB) with AES-256-GCM and PBKDF2-SHA-256.
Frequently asked questions
Can the password be recovered if I forget it?
No. The password is not stored anywhere; it is used to derive the AES key that encrypts the file. If you forget it, neither this site nor anyone else can open the document for you, which is exactly what makes the protection meaningful. Keep the passphrase in a password manager so you do not lock yourself out.
Is my PDF uploaded to a server?
No. The encryption happens inside your browser tab using JavaScript. Your PDF is read from your local disk, encrypted in memory and offered back to you as a download. Nothing is sent to any server. You can check this yourself: open your browser developer tools, watch the Network panel, and confirm no request carries your file.