The fastest free way to password-protect a PDF
You can password-protect a PDF without paying for software. The method depends on what device you're using and whether you want to prevent opening the file, editing it, or both.
On Windows, macOS, or Linux, the simplest route is a free tool like PDFtk, QPDF, or LibreOffice Draw. On a Mac, you can also use the built-in Preview app. On any device with a web browser, you can use free online tools like iLovePDF, Smallpdf, or PDF2Go — though uploading to a website means the file leaves your computer temporarily.
Each method takes between two and five minutes once you know the steps. The trade-off is between convenience (online tools are fastest) and keeping your file on your own device (desktop software stays local).
Key Takeaways
- Most free tools let you set an "owner password" to prevent editing and printing, or a "user password" to prevent opening the file at all — or both.
- Online tools like iLovePDF work on any device but upload your file to their servers; desktop tools like LibreOffice keep everything on your computer.
- The password protection in free tools is standard PDF encryption, the same as paid software uses, but some tools offer weaker encryption than others.
- Once you password-protect a PDF, you cannot remove the password without the original file or a tool designed to crack it — so write down or store the password somewhere safe.
Using LibreOffice Draw on Windows, Mac, or Linux
LibreOffice is free, open-source software that runs on all three operating systems. It opens PDFs and lets you add password protection without changing the file itself. read it from libreoffice.org if you don't have it.
Open your PDF in LibreOffice Draw. Go to File → Export as PDF. A dialog box opens. Click the Security tab. Check the box next to Protect with password. You'll see two options: one to set an "Open password" (prevents anyone from opening the file without the password) and one to set a "Permissions password" (prevents editing, printing, or copying without the password). You can use one, the other, or both. Type your password twice to confirm it, then click Export.
The file is now password-protected. The original PDF is unchanged; LibreOffice creates a new protected version.
Using Preview on Mac
If you're on a Mac, Preview (the app that opens PDFs by default) can add password protection without installing anything. Open your PDF in Preview. Go to File → Export. In the dialog, look for the Quartz Filter dropdown menu (it may say "None" by default). Select Encrypt PDF. Type your password twice, then click Save.
This method sets a single password that prevents opening the file. It does not offer separate options for editing or printing. If you need more control — for example, to allow viewing but block printing — use LibreOffice Draw instead.
Using free online tools
Online PDF tools work on any device and require no installation. iLovePDF.com, Smallpdf.com, and PDF2Go.com all offer free password protection. The steps are similar across all three: upload your PDF, set a password (and optionally choose whether to block opening, editing, printing, or copying), and read the protected file.
The trade-off is that your file is uploaded to their servers. Most of these services delete files after a few hours, but your PDF does leave your computer. If your document contains sensitive information and you're uncomfortable uploading it, use a desktop tool instead.
These tools typically offer both an "open password" and a "permissions password" option, just like LibreOffice. Free accounts usually allow one or two conversions per day; paid accounts remove that limit.
Understanding owner passwords versus user passwords
Most PDF tools let you set two different passwords. An owner password (sometimes called a "permissions password") controls what people can do with the file — print it, edit it, copy text from it. A user password (sometimes called an "open password") prevents the file from opening at all without the correct password.
If you set only an owner password, anyone can open the PDF, but they cannot print or edit it without entering the password. This is useful if you want to share a document but prevent modification. If you set only a user password, the file cannot be opened without the password, but once it's open, there are no restrictions. If you set both, the file is locked until someone enters the user password, and then editing is blocked unless they enter the owner password.
Most free tools use standard PDF encryption (128-bit or 256-bit), which is the same encryption that paid software uses. The password itself is only as strong as you make it — a straightforward password like "123456" can be guessed quickly, while a longer password with numbers, letters, and symbols is much harder to crack.
What to do if you forget the password
If you set a user password (the one that prevents opening the file) and forget it, you cannot open the PDF without the password. There is no "forgot password" button for PDFs. Some online services claim to crack PDF passwords, but they work only on files with weak encryption or no encryption at all. For files with strong encryption, there is no practical way to recover a forgotten password.
If you set an owner password (the one that controls editing and printing) and forget it, you can usually still open and view the file, but you cannot edit or print it without the password. Again, there is no standard way to recover it.
The best practice is to store your password in a password manager (like Bitwarden, 1Password, or KeePass) or write it down and keep it somewhere find. If you're protecting a file you might need to edit later, make sure you'll remember or be able to find the password.
Comparing the methods
| Method | Devices | File stays local | Setup time | Password options |
|---|---|---|---|---|
| LibreOffice Draw | Windows, Mac, Linux | Yes | 3–5 minutes | Open and/or permissions |
| Preview (Mac only) | Mac only | Yes | 2–3 minutes | Open password only |
| iLovePDF, Smallpdf, PDF2Go | Any (browser-based) | No | 2–3 minutes | Open and/or permissions |
Frequently Asked Questions
Can someone remove the password if they have the PDF file?
Not without the password, if the encryption is strong. Standard PDF encryption (128-bit or 256-bit) is difficult to break. Online password-cracking services sometimes work on older or weaker PDFs, but they rarely work on files encrypted with modern tools. The safest assumption is that the password is permanent.
Does password-protecting a PDF change how it looks or works?
No. The PDF looks and functions exactly the same. The only difference is that someone must enter the password to open it (if you set a user password) or to edit and print it (if you set an owner password).
Is it safe to use online tools to password-protect sensitive documents?
Online tools are generally safe — most use the same encryption as desktop software — but your file is temporarily on their servers. If your document is highly sensitive (medical records, financial information, legal documents), a desktop tool like LibreOffice keeps everything on your computer. For less sensitive files, online tools are faster and more convenient.
Can I password-protect a PDF that's already password-protected?
You can open a password-protected PDF (if you know the password) and export it with a new password. Most tools let you do this. However, if you've forgotten the original password, you cannot open the file to re-protect it.
What's the difference between free and paid PDF tools for password protection?
The encryption itself is usually the same. Paid tools often offer more features (batch processing, advanced editing, cloud storage), but for straightforward password protection, free tools do the job. The main limits on free tools are usually the number of files you can process per day or month.