Windows 10 has no right-click switch that puts a password on a single file. The most reliable free route is to put the file in an encrypted 7-Zip archive with AES-256 and a password, then delete the unprotected original. Office files can carry their own password, and Windows 10 Pro can encrypt files to your account (EFS) or lock a whole drive with BitLocker. Here is how each works and which to pick.
Pick the right kind of protection first
“Password protect” can mean several different things, and choosing the wrong one is the most common mistake. Ask yourself who you are protecting the file from.
- A separate password for one file or folder: use an encrypted 7-Zip archive. It works on every edition of Windows 10, including Home, and the archive can be emailed or copied to a USB stick and still stays locked.
- A Word, Excel or PowerPoint file: use the Office app’s own Encrypt with Password option. No extra software is needed, and the file opens normally in Office once someone types the password.
- Other people who use the same PC with their own Windows accounts: Encrypting File System (EFS) on Windows 10 Pro, Enterprise or Education. There’s no extra password to type; the file simply opens for you and stays unreadable to other accounts.
- Theft of the laptop or a USB stick: BitLocker (Pro and higher) or Device encryption (some Home PCs). These encrypt a whole drive, not one file.
Two terms come up below. Encryption scrambles the file’s contents so they can’t be read without the right key or password. AES-256 is the strong encryption standard 7-Zip uses; BitLocker uses the same AES family (128-bit by default). Simply hiding a file or changing its name is not encryption.
What you need before you start
- A password you will not forget, written down somewhere safe or saved in a password manager. None of these methods has a “forgot password” button, so a lost password usually means a lost file.
- A backup copy of the file until you’ve confirmed the protected version opens with your password.
- An administrator account if you plan to install 7-Zip or turn on BitLocker.
Password protect any file with a 7-Zip archive
7-Zip is a free, open-source file archiver. Its official site lists strong AES-256 encryption for the 7z and ZIP formats, and it runs on Windows 10 and 11. Download it only from the official 7-Zip website, choosing the 64-bit Windows installer for most PCs.
- Install 7-Zip by running the downloaded installer and selecting Install. Nothing else needs configuring.
- In File Explorer, right-click the file you want to protect. On Windows 10 the 7-Zip menu appears straight away; select 7-Zip > Add to archive. The Add to Archive window opens.
- Next to Archive format, choose 7z. This format always uses AES-256 when you set a password.
- In the Encryption section, type your password in Enter password and again in Reenter password.
- Check that Encryption method shows AES-256, and tick Encrypt file names. Without that box, anyone can open the archive and read the names of the files inside, even though they can’t open them.
- Select OK. A new .7z file appears next to the original, with the same name.
- Test it: double-click the .7z file, then double-click the file inside. 7-Zip should ask for the password before it shows or extracts anything.
- Once the test works, delete the original, unprotected file and empty the Recycle Bin. Otherwise the readable copy is still sitting next to the locked one.
Example: Jordan needs to send a scanned tax form, taxes-2026.pdf, to an accountant. Jordan creates taxes-2026.7z with a password, emails the archive, and reads the password to the accountant over the phone rather than putting it in the same email.
If you need a .zip instead of a .7z
Some people on the receiving end can’t open .7z files without installing something. You can choose zip as the archive format instead, but then change Encryption method from ZipCrypto to AES-256. ZipCrypto is the older, weaker zip encryption scheme, so it’s the wrong choice for anything sensitive. Note that a ZIP archive can’t hide file names, and that File Explorer’s built-in zip tool may not open AES-protected zips, so the recipient might still need 7-Zip or a similar archiver.
Why Windows’ own “Compressed (zipped) folder” doesn’t work
Right-clicking a file and choosing Send to > Compressed (zipped) folder makes a zip, but File Explorer offers no option to add a password to it, and opening that zip in 7-Zip later doesn’t lock it either. The encrypted archive has to be created by 7-Zip itself, as in the steps above.
Protect Word, Excel and PowerPoint files with their own password
Microsoft Office can encrypt a document so it won’t open without a password. In the Windows desktop apps (Microsoft 365, 2024, 2021, 2019 and 2016):
- Open the file and select File > Info.
- Select Protect Document in Word, Protect Workbook in Excel, or Protect Presentation in PowerPoint, then choose Encrypt with Password.
- Type the password, select OK, type it again and select OK.
- Save the file. The password only takes effect once the file is saved.
Microsoft says Word passwords are case-sensitive, can be at most 15 characters, and can’t be recovered by Word if you forget them. Word for the web can’t add this password, and it can’t edit a file that has one. If you only want to stop changes rather than block reading, Word has softer options; choosing the right password protection in Word compares them, and the steps to add a password to a Word document include the Mac version.
Encrypt a file with EFS on Windows 10 Pro
Encrypting File System (EFS) is built into Windows 10 Pro, Enterprise and Education. Microsoft’s How to encrypt a file or folder page notes that file encryption isn’t available in the Home edition. EFS doesn’t ask for a separate password: it ties the file to your Windows account, so it opens for you when you’re signed in and stays unreadable to anyone signed in to another account, or to anyone who removes the drive and reads it from another computer.
Before you start: EFS keys live in your user account. If the account is deleted, Windows is reinstalled, or the certificate is lost, the files can’t be opened. Back up the certificate when Windows asks (step 5), and keep that backup and its password away from the PC.
- In File Explorer, right-click the file or folder and select Properties.
- On the General tab, select Advanced. If there’s no Advanced button, the file is probably on a FAT32 or exFAT drive (such as many USB sticks); EFS works only on NTFS drives.
- Tick Encrypt contents to secure data, then select OK.
- Select Apply, then OK. For a single file, Windows asks whether to encrypt the file and its parent folder; encrypting the folder also covers temporary copies some apps create while you edit.
- When the notification about backing up your file encryption key appears, select it and choose Back up now (recommended). Follow the Certificate Export Wizard, set a password for the backup file, and save it to a USB drive.
Encrypted files show a small padlock on their icon. Remember the limit: anyone who sits down at your PC while you’re signed in can open them, so lock the screen (Windows logo key + L) when you step away. Also expect the protection to stay behind when you copy the file to a FAT32 or exFAT drive or attach it to an email; the copy that leaves the PC is generally not encrypted.
To undo it, repeat steps 1 to 4 and clear the Encrypt contents to secure data box.
Lock a whole drive or a “vault” with BitLocker
BitLocker encrypts an entire drive. On Windows 10 Pro, Enterprise and Education you manage it from Manage BitLocker (type BitLocker in the Start search box). Microsoft lists three kinds of drives there: the operating system drive, fixed data drives and removable drives (BitLocker To Go).
For a password you type, encrypt a USB stick or a second drive:
- Sign in with an administrator account, plug in the USB drive, and open Manage BitLocker.
- Next to the drive, select Turn on BitLocker.
- Choose Use a password to unlock the drive and enter the password twice.
- Save the recovery key where you’ll find it later (your Microsoft account, a file on another drive, or a printout). It’s the only way in if you forget the password.
- Choose how much of the drive to encrypt and start encrypting. Large drives take a while, but you can keep working.
After that, Windows asks for the password each time the drive is connected. Anything you save on it is protected, which makes an encrypted USB stick a practical “locked folder” you can carry around.
Make a password-protected container on your PC
If you want a vault on your own hard drive rather than a USB stick, create a virtual hard disk (VHD) and encrypt it. Open Disk Management as an administrator (right-click Start > Disk Management), select Action > Create VHD, pick a location, a file name and a size, and select OK. Initialize the new disk and create a volume on it the way you would for a new drive, then turn on BitLocker for that drive letter with a password. To lock it, right-click the disk in Disk Management and choose Detach VHD; this doesn’t delete the file or its contents. Attach it again with Action > Attach VHD.
Windows 10 Home and Device encryption
BitLocker isn’t available on Windows 10 Home. Some Home PCs have Device encryption instead: type Device encryption in the Settings search box. Microsoft says that if the setting doesn’t appear, it’s either unavailable on that hardware or you’re signed in with a standard account. It protects the whole drive against theft but doesn’t add a password for individual files, so use a 7-Zip archive for that.
Protect a whole folder
Everything above also works for folders:
- Any edition: right-click the folder and use 7-Zip > Add to archive with a password and Encrypt file names, then delete the original folder. The catch is that the archive is a snapshot: files you add later aren’t protected until you rebuild it.
- Pro, Enterprise or Education: turn on EFS for the folder. New files saved into it are encrypted automatically.
- A folder you open every day: keep it inside a BitLocker-protected VHD or USB drive, so the whole thing locks when you detach or unplug it.
Windows 11 has the same options with slightly different menus; if you’ve moved to it, see how to lock a folder on Windows 11.
Methods that look like protection but aren’t
You’ll find “folder locker” batch scripts online that rename a folder and set its hidden and system attributes, with the password stored in the script itself. Anyone who can open the .bat file in Notepad, or show hidden files, can get in, and a mistake can make the folder hard to find again. Hiding a file works the same way: it keeps the file out of sight, not out of reach. If out of sight is all you need, you can hide it with the Hidden attribute, which works almost the same way on Windows 10.
Paid “folder lock” apps exist too. If you consider one, check that it uses real encryption, that it comes from a reputable vendor, and what happens to your files if the subscription ends or the app is uninstalled.
Check that it worked, and how to remove the protection
- 7-Zip archive: open it and try to open a file inside. You should be asked for the password. To remove protection, extract the files (7-Zip > Extract Here and enter the password), then delete the archive.
- Office file: close it and reopen it; Office should ask for the password. To remove it, open the file, go back to Encrypt with Password, delete the password, select OK and save.
- EFS: look for the padlock on the icon. Clear the Encrypt contents to secure data box to remove it.
- BitLocker drive: unplug and reconnect it; Windows should ask for the password. Select Turn off BitLocker in Manage BitLocker to decrypt it.
Common questions about protecting files in Windows 10
Is it safe to keep using these methods now that Windows 10 support has ended?
Windows 10 reached end of support on October 14, 2025, and home users can get security updates until October 12, 2027 through Extended Security Updates. Your 7-Zip archives, Office passwords and BitLocker drives stay protected after you upgrade, and they open the same way on Windows 11.
Can I still open an EFS-encrypted file after moving to a new PC?
Only if you bring the certificate. Import the .pfx backup you made into your account on the new PC (double-click it and follow the Certificate Import Wizard), and the files open again. Without that backup they stay unreadable, which is why the backup prompt matters.
How long should the password be?
Longer beats complicated. A phrase of four or more unrelated words is easier to remember and much harder to guess than a short word with symbols. For a Word file, stay within Microsoft’s 15-character limit.
Does a password-protected archive keep its protection in the cloud?
Yes. An encrypted .7z or BitLocker VHD file uploaded to OneDrive or another cloud service is still encrypted there, so the service stores only scrambled data.
Start with one test file: protect it, close it, and open it again with your password before you lock anything you can’t afford to lose.
Matthew Burleigh has been a freelance writer since the early 2000s. You can find his writing all over the Web, where his content has collectively been read millions of times.
Matthew received his Master’s degree in Computer Science, then spent over a decade as an IT consultant for small businesses before focusing on writing and website creation.
The topics he covers for MasterYourTech.com include iPhones, Microsoft Office, and Google Apps.
You can read his full bio here.