How to Encrypt a PDF with a Password for Free

A PDF document protected by a padlock
Encrypting a PDF locks it behind a password — only people with the password can open it.

If you need to email a contract, share a bank statement, or send a medical form, sending it as a plain PDF leaves it open to anyone who gets hold of the file. Learning how to encrypt a PDF takes about two minutes, and it changes that completely: the file is locked behind a password, and nobody can open it without one. The good news is you do not need paid software. Windows, Mac, and free online tools all include a way to add a password to a PDF. This guide walks through each method step by step, explains the two types of PDF password, and shows how to pick a password that actually protects the file. Try our free Protect PDF tool to lock a PDF in your browser. No upload, no sign-up.

To encrypt a PDF, open it in a tool that supports password protection — LibreOffice on Windows, Preview on Mac, Adobe Acrobat, or a free online PDF tool — choose the option to set an open password, type a strong password, and save a new copy of the file. Anyone who opens that copy will be asked for the password first. Keep the password somewhere safe: if you lose it, there is no official way to recover it.

What PDF encryption actually does

Encrypting a PDF scrambles the contents of the file so that it cannot be read without the password. The file still looks like a normal PDF — same name, same icon — but opening it brings up a password prompt instead of the document. Copying the file, emailing it, or uploading it to cloud storage does not remove the lock; the password travels with the file wherever it goes.

There are two kinds of PDF password, and mixing them up is the most common mistake people make:

Password type What it does Who needs it
User password (open password) Locks the whole document — nobody can open it without this password Everyone who opens the file
Owner password (permissions password) Lets people open the file but restricts printing, copying, or editing Only you, when you want to change the restrictions

For most people, the user password is the one that matters. It is the lock on the front door. The owner password is more like a set of house rules — and it is worth knowing that many free tools ignore owner-password restrictions entirely, so it should never be your only protection.

Method 1: Encrypt a PDF online for free

If you only need to lock one file and you do not want to install anything, a free online PDF tool is the fastest route. The steps are almost the same on every service: upload the PDF, type the password you want, download the encrypted copy, and check that the new file asks for the password before you delete the original.

Before you upload anything, pause and think about what is in the file. An online tool means sending your document to someone else’s server, even if only for a few seconds. For a school assignment or a public price list, that hardly matters. For a tax return, a medical record, or a signed contract, use one of the offline methods below instead — your file never leaves your computer that way.

Whichever route you take, always test the encrypted copy before you send it anywhere. Open it, type the password, and confirm the content is intact. A file you cannot open yourself is no use to anyone.

Method 2: Encrypt a PDF on Windows with LibreOffice (free)

Microsoft Word cannot add a password to a PDF when you export one, and the built-in “Microsoft Print to PDF” printer has no password option either. The free office suite LibreOffice does, and it works on any Windows PC:

  1. Download and install LibreOffice (free) if you do not already have it, then open your PDF in LibreOffice Draw.
  2. Go to File, then Export As, then Export as PDF.
  3. In the PDF Options window, click the Security tab.
  4. Click Set Passwords, enter your password under “Set open password”, and click OK.
  5. Click Export, choose where to save the file, and give it a name.

The exported file is a new, encrypted PDF. Your original stays untouched, so you can keep it as a backup or delete it once you have tested the new copy. LibreOffice documents the security tab in its own help pages, including the option to set a separate permissions password if you also want to restrict printing or copying.

Method 3: Encrypt a PDF on Mac with Preview (free, built in)

Mac users do not need to install anything — the Preview app that opens PDFs by default can lock them too:

  1. Open the PDF in Preview.
  2. Go to File, then Export.
  3. Click the Permissions button.
  4. Tick “Require Password to open document” and type your password (twice, to confirm).
  5. Click Apply, then save the exported file.

Preview asks for the password every time the file is opened from then on, on any device. One detail to watch: exporting from Preview can flatten some interactive elements, such as form fields, so check the finished file still behaves the way you need before you send it.

Method 4: Encrypt a PDF with Adobe Acrobat

Adobe Acrobat is the paid, professional option, and it offers the most control — including 256-bit AES encryption, the strongest level PDF supports. In Acrobat, open the PDF, go to Tools, then Protect, then Encrypt, and choose Encrypt with Password. You can set both an open password and a permissions password, and choose exactly which actions (printing, copying, editing) are allowed.

Acrobat is worth paying for only if you encrypt files regularly or need fine-grained permissions for business documents. For a one-off file, the free methods above do the same job. Adobe’s own help pages explain the password options in detail if you want to compare them before deciding.

How to choose a password that actually protects the file

Encryption is only as strong as the password behind it. A short or guessable password — a birthday, a pet’s name, “password123” — can be broken in minutes by automated guessing, which makes the lock pointless. A good PDF password is:

If remembering a password like that sounds hard, use a password manager or generate a strong password and store it somewhere only you can reach. And send the password to the recipient through a different channel than the file itself — a text message, a phone call, or a separate email — so that anyone who intercepts the file does not also get the key.

What encryption does not do

A password stops casual snooping, but it is not a magic shield. A few honest limits:

Keep an unencrypted copy in a safe place (an encrypted drive or a password manager’s secure storage) if the document matters. That way a forgotten password costs you an inconvenience, not the document itself.

How to remove the password later

If you encrypted a file for sending and later want a clean copy for yourself, you can strip the password back off — as long as you know it. Open the file with the password, then use a tool that rebuilds the PDF without encryption. Our free Unlock PDF tool does exactly that in your browser, and our guide to taking a password off a PDF walks through the steps. Remember: removing a password from a file you are not authorised to open is a different matter entirely, and no legitimate tool will do it.

Frequently asked questions

Q1: Can I encrypt a PDF for free?

A: Yes. LibreOffice on Windows and Preview on Mac both encrypt PDFs at no cost, and free online tools do the same in your browser. Adobe Acrobat is the main paid option, and you only need it if you want the strongest encryption settings or detailed permission controls.

Q2: What is the difference between a user password and an owner password?

A: A user password (also called an open password) locks the whole document — nobody can open it without the password. An owner password (permissions password) lets people open the file but restricts what they can do with it, such as printing or copying text. For real protection, always set a user password; an owner password on its own is weak because many tools ignore it.

Q3: Can I encrypt a PDF on my phone?

A: Yes, on both iPhone and Android. On iPhone, open the PDF in the Files app, tap Share, and use a PDF app that supports password protection; several free apps offer this. On Android, free PDF apps in the Play Store include an encrypt or password-protect option. For sensitive documents, encrypting on a computer with LibreOffice or Preview is still the safer choice.

Q4: What happens if I forget the password to an encrypted PDF?

A: There is no official recovery. Adobe, Apple, and Microsoft cannot reset a PDF password for you, and neither can the tool that created it. If you still have an unencrypted copy, use that. If not, the file is effectively lost — which is why storing the password in a password manager is part of the process, not an afterthought.

Encrypting a PDF is a two-minute job with the right tool: LibreOffice on Windows, Preview on Mac, Adobe Acrobat for professional control, or a free online tool for a quick one-off. Set a strong, unique password, send it to the recipient separately from the file, and test the encrypted copy before you share it. Done that way, a password-protected PDF is a genuinely useful layer of privacy for the documents you cannot afford to leave open.