The simplest method depends on what you're protecting
Password protecting a folder means different things on different devices. On Windows, you can encrypt a folder so that only someone with the right password can open it — but the built-in method (BitLocker) works only on Windows Pro and Enterprise editions, not Home. On Mac, you can create an encrypted container that acts like a locked folder. On any device, you can also password-protect an external drive or USB stick at the hardware level, which is often simpler than protecting a single folder.
The method you choose depends on three things: what operating system you use, whether you have the right edition of that system, and whether you want to protect just one folder or an entire drive. The fastest route for most people is creating a password-protected compressed archive (a .zip file on Windows or Mac), which works on any device and requires no special software.
Key Takeaways
- Windows Home users cannot use BitLocker; the simplest option is creating a password-protected .zip file, which takes two minutes and works on any computer.
- Windows Pro and Enterprise users can encrypt a folder with BitLocker, which locks the entire folder and everything in it until you enter the password.
- Mac users can create an encrypted disk image (a virtual locked folder) using Disk Utility, the built-in encryption tool.
- External drives and USB sticks can be encrypted at the hardware level, protecting everything on them without needing to manage individual folders.
- Password-protected .zip files are the only method that works across Windows, Mac, and Linux without installing additional software.
Creating a password-protected .zip file (Windows and Mac)
This is the fastest method and works on any computer. You compress the folder into a .zip file and add a password during compression. When someone wants to open it, they must enter the password before they can see what's inside.
On Windows: Right-click the folder you want to protect. Select "Send to" and then "Compressed (zipped) folder." Windows creates a .zip file in the same location. This .zip file is not yet password-protected — you've only compressed it. To add a password, you need a tool like 7-Zip (free, open-source software). Install 7-Zip, then right-click the folder again, select "7-Zip," then "Add to archive." A dialog box opens. Near the bottom, you'll see "Encryption" with a field for "Enter password." Type your password, confirm it, and click OK. 7-Zip creates a password-protected .zip file. Delete the original uncompressed folder if you want to save space.
On Mac: Right-click the folder and select "Compress [folder name]." Mac creates a .zip file. This .zip is not yet password-protected. Open Terminal (in Applications > Utilities). Type this command: zip -e -r ~/Desktop/foldername.zip ~/path/to/your/folder (replace the paths with your actual folder location). Press Enter. Terminal asks you to enter a password twice. It creates a password-protected .zip file on your Desktop. The original folder remains unencrypted.
Encrypting a folder with BitLocker (Windows Pro and Enterprise only)
BitLocker is built into Windows Pro, Enterprise, and Education editions. It encrypts an entire folder so that Windows itself will not let anyone open it without the password. This is stronger than a .zip file because the folder stays encrypted even if someone copies the files to another computer.
To check if you have BitLocker: Open File Explorer, right-click the folder you want to protect, and look for "Turn on BitLocker" in the menu. If you see it, you have the right Windows edition. Click it. Windows asks you to choose how to unlock the drive — with a password or a recovery key. Choose "Use a password," enter your password twice, and click Next. Windows then asks where to save your recovery key (a long string of numbers that unlocks the folder if you forget the password). Save this somewhere safe — a different device or printed paper. Click Next, then "Start encrypting." The folder is now encrypted. Anyone who tries to open it will be prompted for the password.
If you do not see "Turn on BitLocker" in the menu, you have Windows Home edition and will need to use the .zip method instead.
Creating an encrypted disk image (Mac)
A disk image is a virtual drive that appears on your desktop when you unlock it with a password. Everything inside stays encrypted until you open it. This method is stronger than a .zip file because the folder remains encrypted even if someone accesses your computer.
Open Disk Utility (in Applications > Utilities). Click "File" in the menu bar, then "New Image," then "Blank Image." A dialog box opens. Name your image (for example, "Private Files"), choose where to save it, and set the size (if you're storing 5 GB of files, set it to 10 GB to leave room for growth). Under "Encryption," select "256-bit AES encryption." Click Create. Disk Utility asks for a password. Enter it twice and click OK. Disk Utility creates an encrypted disk image file (.dmg). Double-click it to mount it (open it). Mac asks for the password. Enter it, and a new drive appears on your desktop. Drag your files into this drive. When you're done, eject the drive by dragging it to the Trash or right-clicking and selecting "Eject." The drive disappears, and your files are encrypted again.
Password-protecting an external drive or USB stick
If you're protecting an entire external drive or USB stick rather than a single folder, you can encrypt the whole device. This is often simpler than managing individual folders because everything on the drive is protected automatically.
On Windows: Plug in the external drive. Open File Explorer, right-click the drive, and select "Turn on BitLocker" (if you have Windows Pro or Enterprise). Follow the same steps as encrypting a folder. If you have Windows Home, right-click the drive and select "Format." Choose "exFAT" as the file system, give it a name, and check the box for "Quick Format." Click Start. This erases the drive but does not encrypt it. Instead, use third-party software like VeraCrypt (free, open-source) to encrypt the drive after formatting.
On Mac: Plug in the external drive. Open Disk Utility. Select the drive in the left sidebar. Click "Erase" at the top. Choose "APFS Encrypted" as the format, give it a name, and click Erase. Mac asks for a password. Enter it twice and click OK. The drive is now encrypted. Every time you plug it in, Mac asks for the password before showing you the files.
What happens when you forget the password
If you use BitLocker on Windows, you can recover access with the recovery key you saved during setup. If you saved it to your Microsoft account, go to account.microsoft.com, sign in, and look for "BitLocker recovery keys" in your account settings. If you created an encrypted disk image on Mac, there is no recovery method — you cannot access the files without the password. Write down your password or store it in a password manager before you encrypt anything.
If you use a .zip file and forget the password, the files are permanently inaccessible. Password-protected archives cannot be recovered without the original password.
Comparing the methods
| Method | Windows Home | Windows Pro | Mac | Strength |
|---|---|---|---|---|
| Password-protected .zip | Yes | Yes | Yes | Good for sharing; weaker if files are extracted |
| BitLocker folder encryption | No | Yes | No | Strong; folder stays encrypted on any device |
| Encrypted disk image | No | No | Yes | Strong; files stay encrypted until you unlock the image |
| Encrypted external drive | Yes (with third-party software) | Yes (BitLocker) | Yes | Very strong; everything on the drive is protected |
Frequently Asked Questions
Can someone open a password-protected .zip file on a Mac if I created it on Windows?
Yes. .zip files are universal — any computer can open them. The person will need to enter the password you set, but the file format itself works across Windows, Mac, and Linux.
If I encrypt a folder with BitLocker, can I still access it from another user account on the same computer?
No. BitLocker encrypts the folder for the user account that set it up. Another user account on the same computer will be prompted for the password. If they do not have it, they cannot open the folder.
What if I want to password-protect a folder but still let other people access it?
Create a password-protected .zip file and share the file with them. Tell them the password separately (not in the same message as the file). They can extract the files by entering the password, and you keep the original folder encrypted on your computer.
Does encrypting a folder slow down my computer?
BitLocker and encrypted disk images use a small amount of processing power when you open or save files, but most people do not notice the difference on modern computers. .zip files have no ongoing performance impact — they only take time to compress and decompress.
Can I edit files inside an encrypted folder without decrypting the whole thing?
With BitLocker and encrypted disk images, yes — once you unlock the folder or mount the image, you can edit files normally. With a .zip file, you must extract it first, edit the files, and then re-compress and re-encrypt the folder if you want to protect it again.