Windows 11 has no single built-in prompt that puts a password on one file, so how you password protect a file in Windows 11 depends on the file and the tool you use. What Windows does offer is encryption tied to your account, plus options from apps and archive tools. [1]
There are three realistic routes: a password set inside an app such as Word, Excel or a PDF program; a password-protected zip archive; or encryption. Each suits a different situation, and this article helps you pick one. Account sign-in alone may not be enough, because anyone who shares your account can open your folders too. [1]
If you still use Windows 10, the steps are similar, but that version is past end of support.
Key takeaways
No one-click password prompt exists for a single file.
Choose between an app password, a zip archive or encryption.
Windows 10 works much the same way.
What should you know before choosing a method?
Signing in to Windows is not the same as locking a file, so think about who can reach your account before you pick a method.
Account sign-in only protects you from outsiders
Windows opens your folders only while someone is logged into your user account. If you share that account with family or others, they can open your files too. [1] That is the case where a file-level password or encryption earns its keep. [2]
It also works the other way. If your whole computer is already locked down, for example with BitLocker, a separate password on one folder might not work. [2]
Home and Pro can differ
Properties encryption, the Windows command line and BitLocker are the built-in Windows options. [2] Not every edition offers all of them, and people on Windows 11 Home regularly ask how to lock a folder because the obvious option is missing. [3] Check which options appear on your own PC before you plan around one.
File type changes the best route
A Word or Excel file can carry its own password, and a PDF can too, while a plain text file has no password feature of its own. For types like that, you need an archive tool or encryption instead. Third-party tools such as WinRAR are one way to protect a file. [2]
Plan for a lost password
Decide where you will keep the password before you set it. Write it in a password manager or another safe place, because a locked file you cannot open is as lost as a deleted one. Keep a backup copy stored somewhere secure as well. It also helps to read How to Secure a File With a Password in Windows.
Office password, zip archive or encryption: which fits you?
The right method depends on what you are protecting and who you are protecting it from. A document password suits a single Word, Excel or PDF file, a password-protected archive suits any file type, and encryption suits protection tied to your Windows account.
Method | Best for | Works on | Tied to |
|---|---|---|---|
Office/PDF password | One document you share or store | Word, Excel, PDF | The file itself |
Zip archive with password | Any file you need to send or store | Any file type | The archive and its password |
Encryption (EFS, BitLocker) | Privacy on a shared PC | Files, folders or drives | Your Windows account or the drive |
The built-in encryption options are Properties encryption, the Windows command line and BitLocker. [2] Properties encryption uses the Encrypt contents checkbox under Advanced in a file’s or folder’s Properties. [1] Archive tools such as WinRAR are third-party options for password protecting a file. [2] You may also find this useful: How to Encrypt a File with a Password: 3 Methods Compared.
Encryption is stronger but depends on your account, so it does not suit a file you plan to email. Windows only opens your folders while you are signed in to your account, but anyone sharing that account can open them too. [1] A document or archive password travels with the file, which makes it the better choice for sharing.
Quick pick guide
Budget report in Excel or a contract in Word: use the app’s own password.
Photos, a text file or a mixed set of files: use a password-protected zip archive.
Files on a PC others can use with your account: encryption alone will not help, so add a document or archive password.
Files only other Windows accounts might reach: use built-in encryption.
How do you password protect a Word, Excel or PDF file?
Word, Excel and PDF files each have their own password option inside the app that created them, so you do not need a separate Windows tool for these. The exact menu names vary by app and version, so look for a Protect, Encrypt or Password option in the File menu.
Open the document in its own app (Word, Excel or a desktop PDF app).
Open the File menu and look for the password or encrypt option. In Word and Excel, this is usually under the Info page’s protection options.
Enter a password, then confirm it when asked.
Save the file. The password only takes effect once the file is saved, so close the document and reopen it to see the password prompt.
PDF files
PDFs are the exception. A free viewer, such as Adobe’s Acrobat Reader, can open and view PDFs but is not built for editing them, and the PDF password feature normally lives in a desktop PDF app such as Adobe Acrobat. Adobe’s paid plans are what unlock desktop features like combining files, so expect password protection to sit behind a similar paywall. [4]
If you do not have a PDF editor, you can protect the PDF the same way as any other file type, by placing it in a password-protected zip archive.
Example
Say you keep a spreadsheet of household budgets. Open it in Excel, set a password through File, save it, and close it. Next time you double-click the file, Excel asks for the password before showing any cells.
How do you password protect a zip file in Windows 11?
You can password protect any file type in Windows 11 by putting it in an archive that supports passwords and encrypting that archive. Windows 11’s own “Send to > Compressed (zipped) folder” does not ask for a password, so you need an archive tool such as 7-Zip or WinRAR. The exact menu wording varies by tool, so the steps below stay general.
Install an archive tool that supports passwords, then right-click the file in File Explorer and choose the tool’s option to add it to an archive.
Pick the format. Choose ZIP if you will share the file with people who may not have your tool, or the tool’s own format if only you will open it.
Choose encryption and set the password. In the archive dialog, find the encryption section, select the strongest method offered (AES-256 if listed), and type a long, unique password twice. If the tool has an option to encrypt file names, turn it on so the contents are not visible.
Create the archive, then double-click it and enter the password to confirm it opens.
Delete or secure the original. The unprotected file is still sitting next to the archive, so anyone with access to your account can open it. Delete it, then empty the Recycle Bin.
Before you delete the original
Keep the original until you have opened the archive with the password and viewed the file inside. Back up the file first, too, because a mistyped password or a corrupted archive can leave you with nothing readable. Store the password somewhere safe, such as a password manager.
What about built-in Windows encryption?
Windows 11 includes three built-in options: Properties encryption, the Windows command line and BitLocker. [2] None of them asks for a separate password on a single file. They tie protection to your Windows account instead.
How the built-in options work
Properties encryption uses the Encrypting File System (EFS). In File Explorer, press Windows + E, go to the file or folder, right-click it and choose Properties. Then click Advanced and tick the encrypt checkbox in the Advanced Attributes window. [1]
BitLocker is different. It encrypts a whole drive or the entire system, not one file. [2] If BitLocker already protects your system, a per-folder password may not work. [2]
What account-based protection does and does not do
This kind of protection depends on your sign-in. Windows can open the folder only while you are logged into your user account. [1] That keeps other accounts out, but anyone using your account can still open it. [1]
For example, if your family shares one Windows login, encrypting a tax file this way will not keep them out. A separate account for each person, or a password on the document itself, fits that case better.
VERSIONS: Home and Pro
Windows 11 Home users often struggle to find a way to password protect a folder, and the question comes up regularly in Microsoft’s community forum. [3] Availability of the built-in options differs between Home and Pro, so you may not see the encryption checkbox on every PC.
Windows 10 is similar: the same Properties, command line and BitLocker options are the ones to look for. [2]
What mistakes should you avoid?
Most password mistakes come down to three things: losing the password, leaving readable copies behind, and choosing a password that is easy to guess.
Forgetting the password with no recovery
A password that protects a file can also lock you out of it. Zip archives and encrypted files usually have no reset option, so a forgotten password may mean the file is gone for good. Store the password in a password manager or another safe place before you rely on the protected copy.
Leaving unprotected copies or cloud versions
Protecting one file does nothing for the copies you made earlier. Look for the original in its old folder, in Downloads, in the Recycle Bin, and in any synced cloud folder such as OneDrive. If a version was uploaded before you added the password, that readable version is still online.
This matters most on a shared PC. Windows only limits a folder to your user account, so anyone who shares your account can open it, and that is the exact situation where people want a password in the first place. [1] An unprotected duplicate undoes the protection you just added.
Weak or reused passwords
A short or familiar password, such as a birthday or a pet’s name, is easy to guess. Reusing your email or banking password is worse, because one leak exposes everything it protects.
Pick a long, unique passphrase for each protected file. A password manager makes that practical, because you only remember one master password.
Which method should you use?
Match the method to what you are protecting. For a Word, Excel or PDF document, use the app’s own password option. For any other file type, such as a photo or a text file, put it in a password-protected zip archive.
If your goal is privacy across your whole account or drive, encryption is the route. Windows offers Properties encryption, the command line and BitLocker as built-in options. [2] Start with the document or file you care about most, protect it today, and then remove the unprotected copy.
