The fastest way: built-in encryption for individual files

Windows has a built-in encryption tool called BitLocker that works on entire drives, but for a single file or folder, your quickest option is NTFS encryption — a feature built into Windows Pro, Enterprise, and Education editions. If you have Windows Home, you will need to use a third-party tool instead.

To encrypt a file or folder with NTFS encryption: right-click the file or folder, select Properties, click the Advanced button, check the box that says Encrypt contents to find data, and click OK. Windows will ask whether you want to encrypt just that file or the entire folder. The file is now encrypted — only your user account can open it without a password prompt.

This method has a real limitation: it protects the file from other people who use the same computer, but it does not protect it if someone copies the file to a different computer or steals your hard drive. For that level of protection, you need a password-protected archive or a dedicated encryption program.

Key Takeaways

  • NTFS encryption (right-click Properties → Advanced → Encrypt contents) works only on Windows Pro and higher, and only protects files from other users on the same computer.
  • Creating a password-protected ZIP or RAR archive is faster for sharing files and works on any Windows version, but requires the recipient to have the password.
  • Third-party tools like 7-Zip or WinRAR let you password-protect individual files without buying new software, and the encrypted file stays protected if moved to another computer.
  • BitLocker encrypts your entire drive and is the strongest option, but it requires Windows Pro or higher and takes time to set up.
  • Never rely on password-protecting a file as your only security — use it alongside keeping your computer locked and your Windows installation up to date.

Password-protected archives: the method that works everywhere

The most portable way to password-protect a file is to create a password-protected archive — a compressed folder that requires a password to open. This works on any Windows version and on Mac and Linux too, so it is the best choice if you are sharing the file with someone else.

Windows 11 and Windows 10 can create password-protected ZIP files natively. Right-click the file you want to protect, hover over Send to, and click Compressed (zipped) folder. Windows creates a ZIP file in the same location. However, Windows does not let you set a password during this step — you have to use a third-party tool to add the password afterward.

The simpler route is to use 7-Zip, a free program that does the entire job in one step. read it from 7-zip.org, install it, right-click your file, select 7-Zip, then Add to archive. A dialog box opens. Type a password in the Encryption section, choose AES-256 as the encryption method, and click OK. The encrypted file is ready to send or store.

Using BitLocker for full-drive encryption

BitLocker is Windows' strongest built-in encryption tool, but it encrypts your entire hard drive, not just one file. It requires Windows Pro, Enterprise, or Education — not Home. If you have one of those versions and you want to protect everything on your computer, BitLocker is worth the setup time.

To turn on BitLocker: open Control Panel, search for BitLocker, and click Manage BitLocker. Click Turn on BitLocker next to your C: drive. Windows will ask how you want to unlock the drive — you can use your Microsoft account password, a PIN, or a USB key. Choose your method, and Windows will begin encrypting your drive in the background. This can take several hours depending on your drive size.

BitLocker protects your files even if someone steals your computer or hard drive. The trade-off is that it slows down your computer slightly and requires you to enter a password or PIN every time you start Windows. If you forget your password, you will need a recovery key that Microsoft stores in your account — save this key somewhere safe when you set up BitLocker.

Third-party tools for more control

WinRAR is a paid program ($29 one-time purchase) that creates password-protected RAR and ZIP archives. It works the same way as 7-Zip: right-click your file, select Add to archive, set a password, and choose your encryption method. WinRAR is faster than 7-Zip for large files and offers a few more compression options, but 7-Zip is free and does the same job for most people.

VeraCrypt is a free tool that creates encrypted containers — virtual drives that sit inside a single file. You can put multiple files inside one container, set a password, and mount it like a USB drive whenever you need to access the files. This is more complex to set up than a straightforward archive, but it is useful if you have many files you want to keep encrypted together.

Microsoft Office (Word, Excel, PowerPoint) has its own password protection built in. Open a document, go to File → Info → Protect Document → Encrypt with Password, set a password, and save. The document will ask for the password every time someone tries to open it. This only works for Office files, not for PDFs or other formats.

What password protection actually does — and does not do

Password protection stops someone from opening your file without the password. It does not hide the file from view, and it does not prevent someone from deleting it. If your file is on a shared network drive or a cloud storage service, password protection only protects the contents — the file itself is still visible to anyone with access to that folder.

Password protection also does not protect you if your computer is already compromised by malware. If someone has installed spyware on your machine, they can watch you type your password or access your files while you have them open. Password protection is one layer of security, not a complete solution. Keep your Windows installation up to date, use antivirus software, and lock your computer when you step away.

If you are protecting sensitive files like tax documents or medical records, consider storing them in a password-protected archive on an external drive that you keep unplugged most of the time. This adds a physical barrier — the drive has to be plugged in and the password entered before anyone can access the files.

Comparing your options

MethodWindows versionsSetup timeProtects if file is movedBest for
NTFS encryptionPro, Enterprise, Education only30 secondsNoProtecting files from other users on your computer
7-Zip archiveAll versions1 minuteYesSharing files or storing backups
BitLockerPro, Enterprise, Education onlySeveral hoursYesProtecting your entire computer
Office password protectionAll versions (if Office is installed)1 minuteYesProtecting Word, Excel, or PowerPoint files only
VeraCrypt containerAll versions5 minutesYesKeeping many files encrypted in one place

Frequently Asked Questions

Can I password-protect a file on Windows Home?

NTFS encryption and BitLocker do not work on Windows Home. Your options are creating a password-protected archive with 7-Zip (free), using Office password protection if the file is a Word or Excel document, or downloading VeraCrypt (free) to create an encrypted container.

What happens if I forget the password to my encrypted file?

If you encrypted a file with NTFS encryption and forgot your Windows password, you cannot recover the file without resetting your Windows account — and even then, the file may be permanently inaccessible. If you used BitLocker, you can recover your drive with the recovery key Microsoft stored in your account. For archives and containers, there is no recovery option — the file is locked permanently.

Is password-protecting a file the same as backing it up?

No. Password protection prevents unauthorized access, but it does not create a copy of your file. If your hard drive fails or your file is deleted, password protection will not help you recover it. Store important files in two places — your computer and an external drive or cloud storage — and password-protect them in both locations.

Can someone crack a password-protected file?

A strong password (12+ characters, mixed letters, numbers, and symbols) is extremely difficult to crack with current technology. However, if someone has physical access to your computer and it is powered on, they may be able to access your files without the password. Always lock your computer when you step away, and shut it down completely if you are leaving it unattended for long periods.

Should I password-protect files stored in cloud services like OneDrive or Google Drive?

Yes. Cloud services encrypt files in transit and at rest, but their employees and law enforcement can access them with a warrant. If you store sensitive files in the cloud, password-protect them first with 7-Zip or VeraCrypt. This adds a second layer of security that only you control.