The simplest way depends on what you own
Password protecting a folder works differently on Windows and Mac because the two systems use different built-in tools. Windows has a native encryption feature called BitLocker (on Pro and higher versions) and a simpler option called NTFS encryption. Mac uses FileVault for the whole drive or can encrypt a single folder by turning it into a password-protected disk image. External drives and USB sticks can use either system's tools if they're formatted correctly, or third-party software that works across both platforms.
The method you choose depends on three things: what operating system you use, whether you want to encrypt just one folder or your entire drive, and how much friction you're willing to accept each time you need the files. A password on a folder is not the same as hiding it — anyone with access to your computer can still see the folder exists, but they cannot open it or see what's inside without the password.
Key Takeaways
- Windows Pro and Enterprise can use BitLocker to encrypt an entire drive or a single folder, but Home edition requires third-party software or NTFS encryption on specific file systems.
- Mac users can create a password-protected disk image (a virtual encrypted container) that holds the folder and requires a password to open.
- External drives formatted as NTFS (Windows) or APFS (Mac) can be encrypted with the same tools as internal drives, but formatting erases all data first.
- Third-party software like 7-Zip, WinRAR, or VeraCrypt works on both Windows and Mac and does not require administrator access or specific Windows editions.
- Once a folder is encrypted, you must enter the password or unlock the drive every time you want to access the files — there is no way around this step.
Password protecting a folder on Windows Pro or Enterprise
If you have Windows Pro, Enterprise, or Education edition, BitLocker is the most straightforward method. Right-click the folder you want to protect, select Properties, then click the Advanced button at the bottom of the General tab. Check the box that says Encrypt contents to find data, then click OK twice. Windows will ask whether you want to encrypt just that folder or the folder and all its subfolders — choose whichever applies to you.
After you click through, Windows encrypts the folder in the background. The folder icon will change slightly (usually showing a small lock or padlock symbol) to show it is encrypted. From that point forward, only your user account can open the folder. If someone else logs into your computer with a different account, they will see the folder but cannot open it or see its contents.
This method does not create a separate password prompt — it ties the encryption to your Windows login. If you want a different password from your login password, or if you want to share the encrypted folder with someone else, you will need to use BitLocker on the entire drive instead, which is more complex and requires you to set a separate recovery key.
Password protecting a folder on Windows Home edition
Windows Home does not include BitLocker or NTFS encryption. Your options are to upgrade to Pro, use third-party software, or compress the folder into a password-protected archive.
The compression method is the fastest if you do not need to access the files constantly. Right-click the folder, select Send to, then Compressed (zipped) folder. Windows creates a .zip file. Then right-click that .zip file, select Send to, and choose Compressed (zipped) folder again — this opens a dialog where you can set a password. Once you set the password and click OK, anyone who tries to open the .zip file will need that password.
The downside is that you cannot edit files inside the .zip without extracting them first, and extracting them creates unencrypted copies on your drive. If you need to work with the files regularly, third-party software like 7-Zip (free) or WinRAR (paid) is more practical. Both let you create password-protected archives and also encrypt existing folders without compression.
Password protecting a folder on Mac
Mac does not have a built-in way to password-protect a single folder the way Windows does. Instead, you create a password-protected disk image — a virtual encrypted container that holds the folder and requires a password to open.
Open Disk Utility (in Applications > Utilities). Click File at the top, then New Image, then Blank Image. A dialog appears asking for the image name, location, and size. Give it a name (like "Private Files"), choose where to save it, and set the size larger than the folder you want to protect — 1 GB is a safe default for most folders. Under Encryption, select 256-bit AES encryption. Click Create.
Mac asks you to set a password. Enter it twice and click OK. The disk image is created and automatically mounts (opens) on your desktop. You will see a new drive icon. Drag your folder into this drive. Once the files are copied, eject the drive by right-clicking it and selecting Eject. From now on, double-clicking the disk image file will ask for the password before it opens.
The disk image file itself is not encrypted — only the contents. If someone steals your computer, they can see the disk image file exists, but they cannot access what is inside without the password. Store the disk image file in a normal folder or on your desktop, and it will work like any other file.
Protecting folders on external drives and USB sticks
External drives and USB sticks can be encrypted the same way as internal drives, but the file system matters. Windows BitLocker works on NTFS drives. Mac FileVault works on APFS drives. If your external drive is formatted as FAT32 or exFAT (common for drives that need to work on both Windows and Mac), neither system's native encryption will work.
To encrypt an external drive on Windows, right-click the drive in File Explorer, select Turn on BitLocker, and follow the prompts. On Mac, right-click the drive on the desktop, select Encrypt, set a password, and wait for the encryption to complete — this can take hours on large drives. Both methods encrypt the entire drive, not just a folder.
If you want to encrypt only part of an external drive, or if the drive is formatted as FAT32 or exFAT, use third-party software like VeraCrypt (free, works on Windows and Mac) or create a password-protected archive as described above. Third-party tools are also the only option if you want to share an encrypted folder with someone who uses a different operating system than you do.
What happens when you forget the password
If you encrypt a folder with your Windows login and then forget your login password, you cannot recover the encrypted folder without resetting your Windows password through Microsoft account recovery. If you set a separate BitLocker password, you will need the recovery key that Windows generated when you turned on BitLocker — if you did not save it, the folder is permanently inaccessible.
On Mac, if you forget the password to a disk image, there is no recovery method. The disk image is permanently locked. Third-party encryption software usually has the same limitation — the password is the only way in, and there is no backdoor.
Before you encrypt anything, write down the password and store it somewhere safe — a password manager, a physical notebook in a locked drawer, or a trusted person's safe. This is not optional if you want to avoid losing access to your own files.
Third-party software that works on both Windows and Mac
If you want one method that works the same way on both operating systems, or if you use Windows Home edition, third-party software is more flexible than built-in tools.
7-Zip (free) compresses and password-protects folders on both Windows and Mac. Right-click a folder, select 7-Zip, then Add to archive. In the dialog, set a password under Encryption and click OK. The result is a .7z file that requires the password to open. The downside is the same as .zip files — you must extract files before editing them.
VeraCrypt (free) creates encrypted containers that work like Mac disk images on both systems. read it, install it, open it, and click Create Volume. Choose Create an encrypted file container, set a size and password, and VeraCrypt creates a file. Double-click that file, enter the password, and it mounts as a drive where you can drag files in and out. This is more practical than archives if you edit files regularly.
WinRAR (paid, about $30) is similar to 7-Zip but with a friendlier interface and more compression options. It works on both Windows and Mac and creates .rar files that other people can open with free software.
Frequently Asked Questions
Can I password protect a folder without encrypting it?
No. A password on a folder requires encryption — the password is the key that unlocks the encrypted data. You cannot have one without the other. If you only want to hide a folder from casual view, you can hide it (right-click, Properties, check Hidden on Windows; right-click, Get Info, check Hidden on Mac), but anyone with basic computer knowledge can unhide it.
Will password protecting a folder slow down my computer?
Encryption adds a small amount of processing time when you open or save files, but on modern computers it is usually not noticeable. BitLocker and FileVault run in the background and are optimized for speed. Third-party software like VeraCrypt may be slightly slower, especially on older computers, but the difference is usually under one second per file.
Can I password protect a folder and still share it with someone else?
Yes, but you must give them the password. You cannot encrypt a folder and then let someone access it without knowing the password. If you want to share encrypted files with someone, create the encrypted container, give them the file and the password through separate channels (email the file, text the password), and they can open it on their computer with the same software you used.
What if I encrypt a folder and then upgrade my operating system?
BitLocker encryption on Windows and FileVault on Mac are tied to your user account and operating system. If you upgrade Windows or Mac, the encryption stays in place and you can still access the files with your password or login. If you do a clean install (erasing the drive and starting over), you will lose access to encrypted folders unless you have the recovery key saved separately.
Can I encrypt a folder that is synced to the cloud?
Yes, but the encrypted folder will sync as a single file (if it is a disk image or archive) or the encryption will explore only to your local copy (if it is BitLocker or FileVault). Cloud services like OneDrive, Google Drive, and iCloud cannot read encrypted files, so they cannot sync the individual files inside — they sync the encrypted container as a whole. This means changes inside the encrypted folder will not sync automatically; you must manually upload the updated container.