# Password Protect PDF

> Password protect a PDF for free: AES-256 encryption, optional print, copy and edit restrictions. Works in your browser; the file and the password never leave your device.

Source: https://widgetpantry.com/en/protect-pdf · Türkçe: https://widgetpantry.com/tr/pdf-sifrele

Add a password to a PDF so only people who know it can open it. The file is encrypted with AES-256 inside your browser and is never uploaded.

Runs in your browser: files and text are not uploaded. [Use the tool](https://widgetpantry.com/en/protect-pdf)

## How to use it

1. Drag your PDF here or add it with “Choose file”.
2. Type a password twice; untick anything you want to restrict, such as printing.
3. Press “Protect PDF” and get the locked file with “Download”.

## How the protection works

The PDF is encrypted with AES-256, the strongest method the PDF standard offers (PDF 2.0, also read by Acrobat, Chrome, Edge, Firefox, macOS Preview and phone PDF viewers). Without the password, the pages, text and images can't be read; the file only shows a password prompt.

The encryption happens in this browser tab: neither the file nor the password is sent to us, and we can't recover a forgotten password. Keep it somewhere safe.

Printing, copying and editing restrictions are a different matter: they are flags the PDF reader is asked to respect. Mainstream readers do, but they don't make the file unreadable, so rely on the password for anything confidential.

## Frequently asked questions

### What if I forget the password?

The file can't be opened. Nobody can reset it, us included, because the password is never stored or sent anywhere. Keep the original unprotected file or write the password down somewhere safe.

### Which programs can open the protected PDF?

Any up-to-date PDF reader: Adobe Acrobat and Reader, Chrome, Edge, Firefox, Safari and macOS Preview, and the built-in viewers on iPhone and Android. Very old readers from before 2010 may not support AES-256.

### How strong should the password be?

Long beats complicated: 12 or more characters, or three or four random words, is far harder to guess than a short password with symbols. The encryption itself can't realistically be broken; a guessable password can.

### Is my file uploaded anywhere?

No. The PDF is encrypted on your device, in your browser; neither the file nor the password reaches our server. A PDF that already has a password can't be opened here.

## Related tools

- [Sign PDF](https://widgetpantry.com/en/sign-pdf): Sign a PDF in your browser: draw, type or upload your signature, then drag and resize it on the page. Nothing is uploaded and no account is needed.
- [Watermark PDF](https://widgetpantry.com/en/watermark-pdf): Add a text watermark to a PDF in your browser: colour, transparency, diagonal or straight, three sizes and a preview. Any language's letters work; your file is never uploaded.
- [Compress PDF](https://widgetpantry.com/en/compress-pdf): Shrink scanned and image-heavy PDFs in your browser. Text stops being selectable, and if the file doesn't get smaller you keep the original. Nothing is uploaded.
