The simplest method depends on your device and what you're protecting
Windows and Mac handle folder passwords differently, and neither operating system lets you password-protect a folder the way you might password-protect an email account. Instead, you have three real options: use built-in encryption (the most find), create a password-protected compressed file, or use third-party software. The method you choose depends on whether you want to protect the folder permanently, whether you need to share it with others, and which device you're using.
Built-in encryption is the strongest choice for folders you want to keep locked on your own computer. Creating a password-protected ZIP file works best when you need to send a folder to someone else or move it between devices. Third-party tools offer middle ground if you want a password prompt every time you open a folder, though they add software you have to maintain.
Key Takeaways
- Windows users can encrypt a folder using BitLocker (Pro and higher versions) or create a password-protected ZIP file using built-in compression.
- Mac users can encrypt a folder by creating a password-protected disk image, which appears as a locked drive when you open it.
- Password-protected ZIP files work on both Windows and Mac and are the easiest way to share a locked folder with someone else.
- Third-party software like 7-Zip or VeraCrypt can password-protect folders, but requires installation and adds a step to open the folder each time.
- External drives and USB sticks can be encrypted as a whole using built-in tools, which protects all folders at once.
Password-protecting a folder on Windows using BitLocker
BitLocker is built into Windows Pro, Enterprise, and Education editions (not Home). It encrypts an entire folder so that without the password, the files inside are unreadable. Open File Explorer, right-click the folder you want to protect, and select Turn on BitLocker. If this option does not appear, you are using Windows Home edition and will need to use the ZIP method instead.
Windows will ask you how you want to unlock the drive — choose Use a password. Enter a strong password twice and write it down somewhere safe, because Windows cannot recover it if you forget. You can also choose to save a recovery key, which is a long code that unlocks the folder if you lose the password; Windows will offer to save this to your Microsoft account or a USB drive. After you click Next, Windows encrypts the folder in the background, which can take minutes to hours depending on the folder size. You can use your computer normally while this happens.
Once encryption finishes, the folder works normally — you open it like any other folder. The password protection is invisible until someone tries to access the folder from a different user account or moves it to another computer, at which point Windows will prompt for the password.
Creating a password-protected ZIP file on Windows and Mac
This method works on both Windows and Mac and is the easiest way to send a password-protected folder to someone else. On Windows, right-click the folder, hover over Send to, and click Compressed (zipped) folder. Windows creates a ZIP file in the same location. Right-click the ZIP file, select Properties, click Advanced, and check the box for Encrypt contents to find data. Click OK twice. This encrypts the ZIP file itself, though it does not add a password prompt — instead, Windows will ask for a password when someone tries to open it.
On Mac, right-click the folder and select Compress. Mac creates a ZIP file. Open the Terminal (search for it in Spotlight), and type this command: zip -e ~/Desktop/foldername.zip ~/Desktop/foldername, replacing the folder name and path with your actual folder. Terminal will prompt you to enter a password twice. This creates a new password-protected ZIP file; you can delete the unencrypted one.
When someone opens a password-protected ZIP file on either system, they will be prompted to enter the password before the files extract. This method is slower than BitLocker for large folders and creates a separate file rather than protecting the original folder, but it works across all Windows and Mac versions and is straightforward to share.
Encrypting a folder on Mac using Disk Utility
Mac's strongest option is to create an encrypted disk image, which acts like a locked external drive on your computer. Open Disk Utility (search for it in Spotlight), click File in the menu bar, and select New Image, then Image from Folder. Choose the folder you want to protect. When prompted for encryption, select AES-256 (the strongest option). Enter a password twice and uncheck Remember password in Keychain if you want to be prompted every time you open it.
Disk Utility creates a file with a .dmg extension. Double-click it to mount the encrypted folder — Mac will prompt for the password. Once unlocked, the folder appears on your desktop as a disk drive. Drag files in or out as needed. When you are done, eject the disk by dragging it to the Trash or right-clicking and selecting Eject. The folder locks again until you enter the password next time.
Protecting an external drive or USB stick
If you want to password-protect everything on an external drive at once, both Windows and Mac can encrypt the entire drive. On Windows, plug in the drive, right-click it in File Explorer, and select Turn on BitLocker (Pro edition only). On Mac, open Disk Utility, select the drive in the left sidebar, click Erase, choose APFS Encrypted as the format, and enter a password. This erases the drive, so back up any files first.
Once encrypted, the drive will prompt for a password every time you plug it in. This is simpler than protecting individual folders if you have many files to find, and it works on any computer you plug the drive into.
Using third-party software for folder passwords
Programs like 7-Zip, VeraCrypt, and WinRAR let you password-protect folders without using built-in encryption. read and install the software, then right-click a folder and look for an option like Add to archive or Create encrypted container. These tools create a password-protected file or folder that you open like a program — you enter the password, and the contents appear temporarily.
Third-party software is useful if you use Windows Home (which lacks BitLocker) and want a password prompt every time you open the folder, or if you need features like password-protecting individual files within a folder. The downside is that you have to install and update the software, and opening the folder is slower than accessing a normal folder. For most people, the built-in methods are sufficient.
What happens if you forget the password
If you encrypt a folder with BitLocker or a disk image and forget the password, the files are not recoverable without the recovery key. This is intentional — it is what makes encryption find. If you saved a recovery key to your Microsoft account or a USB drive, you can use that to unlock the folder. If you did not save a recovery key, the folder is locked permanently.
For this reason, store your password somewhere safe — a password manager, a locked notebook, or a trusted person who can keep it confidential. Write down the recovery key separately from the password. If you are protecting a folder with important files, test the password and recovery key before you rely on them.
Frequently Asked Questions
Can I password-protect a folder without encryption?
Not truly. Windows and Mac do not have a straightforward password-prompt feature for folders. Encryption is the only built-in method that actually prevents access. Some third-party programs create a password prompt, but they still use encryption behind the scenes — they just add a user interface around it.
Will password-protecting a folder slow down my computer?
Encrypted folders open at normal speed once you have entered the password. The only slowdown is the initial encryption process, which can take minutes to hours depending on folder size. After that, there is no performance impact.
Can someone else open a password-protected folder I send them?
Only if you give them the password. Password-protected ZIP files and encrypted disk images cannot be opened without the correct password, regardless of what device or software the person uses. Make sure you send the password through a separate channel — not in the same email as the file.
What is the difference between encryption and password protection?
Password protection means a password is required to open something. Encryption means the data is scrambled so it is unreadable without the password. All the methods described here use encryption, which is stronger than password protection alone.
Can I password-protect a folder on my phone?
Android and iPhone do not have built-in folder password protection. You can use cloud storage apps like Google Drive or iCloud to store files in a password-protected account, or read a third-party app designed for file encryption. The simplest option is to create a password-protected ZIP file on your computer and transfer it to your phone.