The fastest way depends on what you already have
You can password-protect a PDF in three ways: using built-in software on your computer, using free online tools, or using paid PDF editors. On Windows, you can do it through Microsoft Word or a free tool like PDFtk. On Mac, Preview (which comes with every Mac) can add password protection in under a minute. If you don't want to install anything, free websites like Smallpdf or ILovePDF will password-protect a file in your browser — you upload, set a password, and read the protected version.
The choice comes down to how often you'll need to do this and whether you're comfortable uploading files to a website. One-time protection? Use an online tool. Regular protection? Use what's already on your computer.
Key Takeaways
- Mac users can password-protect a PDF in Preview without installing anything: open the file, go to File > Export As, choose PDF format, and set a password in the Security Options.
- Windows users can use free online tools like Smallpdf or ILovePDF, or install free desktop software like PDFtk or use Microsoft Word if they have it.
- Password protection comes in two types: a password to open the file, and a password to edit or print it — you can set one, both, or neither.
- Online tools are fastest for one-time use but require uploading your file to someone else's server; desktop software keeps your file on your computer.
- A strong password should be at least 12 characters and include uppercase, lowercase, numbers, and symbols — the same rules as any other password.
How to password-protect a PDF on Mac using Preview
Preview is built into every Mac and can add password protection without any extra software. Open your PDF in Preview (double-click it, or right-click and choose Open With > Preview). Go to the File menu at the top and click Export As. A dialog box will open.
In the dialog, make sure the file format dropdown shows "PDF". Below that, you'll see a checkbox for "Encrypt". Check that box. A new field will appear asking for a password. Type your password twice to confirm it. Click Save, and your PDF is now password-protected. Anyone who opens it will need to enter that password first.
If you want to set separate passwords for opening versus editing, Preview doesn't offer that option — it only protects the file from being opened. For finer control, you'd need a paid tool like Adobe Acrobat Pro or a free online tool.
How to password-protect a PDF on Windows
Windows doesn't have a built-in PDF tool like Mac's Preview, so you have two main routes: use an online tool, or use desktop software.
Using an online tool (fastest): Go to Smallpdf.com or ILovePDF.com. Both are free and work the same way. Click the "Protect PDF" or "Add Password" button, upload your file, set a password, and read the protected version. The whole process takes about two minutes. Your file is deleted from their server after a few hours, but if you're concerned about uploading sensitive documents, use a desktop tool instead.
Using desktop software: PDFtk (free, open-source) is the most reliable free option for Windows. read it from pdftk.com, install it, and use the GUI (graphical interface) version if you want to avoid the command line. Open PDFtk, select your PDF, set your password, and save. If you have Microsoft Word, you can also open a PDF in Word, go to File > Info > Protect Document > Encrypt with Password, and save it back as a PDF — though this method is less reliable for complex PDFs.
Understanding open passwords versus edit passwords
When you password-protect a PDF, you're usually setting one password that prevents anyone from opening the file at all. But some tools let you set two different passwords: one to open the file, and another to prevent editing, printing, or copying text.
An open password (also called a user password) locks the entire file. Without it, the PDF won't open. An edit password (also called an owner password) lets someone open the file but prevents them from making changes or printing it. You can set one, both, or neither — for example, you might allow anyone to open and read a document but require a password to print it.
Adobe Acrobat Pro, Smallpdf, and ILovePDF all offer this two-password option. Preview and PDFtk do not. If you need this level of control, use one of those three.
What to do if you forget the password
If you set an open password and forget it, the file is locked and there is no legitimate way to recover it. Password-protected PDFs use encryption that is designed to be unbreakable — that's the whole point. You cannot reset it or bypass it. Your only option is to go back to the original, unprotected version of the file if you have one saved elsewhere.
If you set only an edit password (allowing the file to be opened but not edited), some tools can remove that password, but an open password cannot be removed without the password itself. This is why it's important to store your password somewhere safe — a password manager like Bitwarden or 1Password is better than writing it down or emailing it to yourself.
Security trade-offs: desktop tools versus online tools
Desktop software like PDFtk or Preview keeps your file on your computer the entire time. Nothing leaves your machine. The downside is you have to install software, and if you only need to protect one or two PDFs, that's extra work.
Online tools like Smallpdf are faster and require no installation, but your file is uploaded to someone else's server while it's being processed. Most reputable services delete files after a few hours and use encryption during transfer, but there is always a moment when your unencrypted file exists on their server. If your PDF contains sensitive information (tax returns, medical records, legal documents), a desktop tool is safer. If it's a document you don't mind sharing with a service provider, an online tool is fine.
Check the privacy policy of any online tool before uploading. Look for statements about how long files are kept, whether they're encrypted in transit, and whether they're ever used for training or other purposes. Smallpdf and ILovePDF both state that files are deleted after a few hours and are not used for other purposes, but read their policies yourself.
Creating a password you'll actually remember (or not)
A strong password for a PDF should follow the same rules as any other password: at least 12 characters, mixing uppercase letters, lowercase letters, numbers, and symbols. Something like "BlueMoon#2024!Pdf" is stronger than "password123".
The problem is that strong passwords are hard to remember, especially if you're protecting multiple PDFs. The better approach is to use a password manager. Bitwarden, 1Password, and LastPass all store passwords securely and can generate random strong passwords for you. You only have to remember one master password. When you need to open a protected PDF, you open your password manager, copy the password, and paste it in.
If you're protecting a PDF that you'll need to share with someone else, you'll need to tell them the password somehow. Never email the password in the same message as the PDF. Send the file in one email and the password in a separate email, text message, or phone call. This way, if someone intercepts one message, they don't have both pieces.
Frequently Asked Questions
Can someone break a PDF password?
A strong password (12+ characters, mixed case, numbers, symbols) is extremely difficult to break with current technology. Weak passwords (like "123456" or "password") can be cracked in seconds. The encryption itself is solid; the weak point is usually the password itself. Use a strong password and store it in a password manager.
Will password-protecting a PDF change how it looks or works?
No. The PDF will look and function exactly the same once someone enters the password. Password protection only affects who can open it and, depending on the type, whether they can edit or print it. The content, layout, and formatting stay unchanged.
Can I password-protect a PDF on my phone?
Yes, using an online tool. Open Smallpdf or ILovePDF in your phone's browser, upload the PDF, set a password, and read it. Desktop apps for phones are less common, but some PDF readers like Adobe Acrobat Reader have password protection features. Check your phone's app store for "PDF password" to see what's available for your device.
What if I need to remove a password from a PDF I created?
If you remember the password, open the PDF in the same tool you used to protect it (Preview, PDFtk, Smallpdf, etc.) and look for an option to remove or change the password. If you forgot the password and it's an open password, you cannot remove it — you'll need the original unprotected file. If it's only an edit password, some tools can remove it, but this is rare.
Is password-protecting a PDF the same as encrypting it?
Password protection uses encryption, but they're not quite the same thing. Password protection is the user-facing feature (you set a password). Encryption is the technical method that makes it work (the algorithm that scrambles the file). When you password-protect a PDF, you're using encryption behind the scenes. The terms are often used interchangeably, but encryption is the mechanism and password protection is what you see.