How to password protect a folder on Windows 11
Windows 11 already comes with an array of security features that help ensure your files and folders are safe from prying eyes. For one thing, you typically have to sign into your account to access your files, and you can protect your account with a password. On top of that, Windows 11 also offers drive encryption powered by BitLocker, which helps ensure attackers can't bypass your security measures.
But sometimes, you might be sharing your great Windows PC with someone else, or maybe you just want the extra peace of mind of having an additional layer of protection for particularly sensitive files. If you'd like to protect a folder using a password, there are a couple of ways you can go about it. The first and most easily accessible way is to use a third-party app to lock your folders, while the other involves using BitLocker, which is a feature only available on Windows 11 Pro and Enterprise, but it's much stronger than most free third-party software. Here's what you need to know.
Using a third-party app (Wise Folder Hider)
There are plenty of apps that allow you to protect your files with a password, but here we'll use a program called Wise Folder Hider. It's free to use, although there is a pro version if you want to unlock full functionality.
How to set up a password-protected folder in Wise Folder Hider
- Download Wise Folder Hider from the official website.
- Run the installer and click through the process.
- Open Wise Folder Hider, and you'll immediately be prompted to create a password for the app. This is the primary layer of security for your protected folders.
- The main view of the app lets you hide files, folders, or drives using the buttons at the bottom of the window. Click Hide folder to protect an entire folder.
- Navigate your PC to find the folder you want to protect and click OK.
- The folder will be hidden and no longer visible in File Explorer. You can click Open inside Wise Folder Hider to make it visible and see its contents.
- If you'd like an additional layer of protection, click the arrow next to Open (or Close) and choose Set password. This lets you set an additional password that's required to make a folder visible.
- Enter the password you want to use and click OK.
- When you're done using the folder, use the Close button to make the folder invisible again. Make sure to also close any File Explorer windows where you opened the folder to avoid keeping it in your history.
- Launch Wise Folder Hider whenever you'd like to access your protected files again. You'll need to remember your password, or you risk losing your files.
How to encrypt files in Wise Folder Hider
Another option in Wise Folder Hider is encryption, which creates a virtual hard drive where you can store your files and lets you hide or show the drive. The benefit of this is that the drive is portable, and you can easily move it anywhere as long as you have Wise Folder Hider to mount the virtual hard drive and make it visible. The big problem here is that the free version of the app only lets you create 50MB drives, which means you may need to create multiple drives if you have a lot of files. Still, here's how to use this feature:
- Open Wise Folder Hider.
- Near the top of the window, switch to the Encrypt File tab.
- Click Create at the bottom of the window to create a virtual hard drive.
- Choose a name and location to store the virtual hard drive in. You can also set a capacity, but only in the pro version.
- Click OK.
- The virtual hard drive will automatically be mounted and opened in File Explorer, so you can add files to it. You can also find the drive on This PC page in File Explorer.
- Once you've added the files you want to protect, go back to Wise Folder Hider and click Unmount.
- You can also click the arrow next to the Unmount option and select Set password to add another layer of protection.
- Whenever you need to access the files again, open Wise Folder Hider and choose Mount to make the drive visible.
Even though the drive will be invisible on the This PC page and won't be accessible, you can find the virtual hard drive file in the folder where you created it. This means you can move your protected files to another computer if you need to.
Using a virtual hard drive and BitLocker to create password protection
If you have Windows 11 Pro or higher, you can leverage BitLocker to protect your sensitive data instead. In concept, this method works similarly to the second option we described above, but if you already have Windows 11 Pro, you can use it at no additional cost, and Microsoft's encryption might be harder to crack. You'll need to create a virtual hard drive and then use BitLocker to protect it.
Creating a virtual hard disk (VHD)
First off, you're going to have to create a virtual hard disk (VHD) that will serve as your folder for the files you want to protect. Here's how to do it:
- Right-click the Start icon on your taskbar and select Disk Management.
- In the menu bar at the top, click Action, and then Create VHD.
- Click Browse and choose a location to store the VHD file in.
- Name the file anything you want to make it recognizable, and click Save.
- Choose the initial size for the drive based on the files you want to store. The more files you have, the more space you'll need. You can also check the Dynamically expanding option at the bottom of the window so your hard drive gets bigger as you add more files.
- Optionally, set the Virtual hard disk format to VHDX if you want a more modern format with support for larger disks.
- Click OK.
- Your new VHD will show up in Disk Management as Not Initialized. It should be called Disk X (where X is replaced by a number based on how many disks you already have).
- Right-click Disk X and choose Initialize Disk.
- Make sure the box for the disk is checked, and choose either the GPT or MBR partition style. MBR is more widely compatible with older versions of Windows.
- Click OK.
- You'll now see unallocated space next to the disk you just created. Right-click this area and choose New Simple Volume.
- Click Next and then click Next again to confirm the default volume size settings.
- Choose Assign the following drive letter and select any of the available letters from the dropdown menu. Click Next.
- Use the Volume label field to name your drive (it can be anything you want), and leave the rest of the settings as the default options.
- Click Next and then Finish.
You'll now have a virtual hard drive that shows up in Windows, so the next step is to protect it with a password.
Using BitLocker to create a password
We've already covered how to use BitLocker drive encryption, but this time, we're focusing on specifically encrypting this additional drive with a different password. Here's what you need to do:
- Open the Start menu and search for Control Panel.
- Click System and Security.
- Choose BitLocker Drive Encryption.
- Find the drive you created under Fixed data drives and click Turn on BitLocker.
- Choose the Use a password to unlock the drive option and enter the password you want to use.
- Choose whether to save the backup recovery key. The Save to your Microsoft Account option is easiest if you have a linked account, but you can also use the Save to a file if you want to store the key somewhere else.
- Click Next.
- Choose Encrypt used disk space only and click Next.
- Choose Compatible mode and click Next.
- Click Start encryption and once it's finished, click Close.
Accessing and locking the virtual hard disk
With the virtual hard disk created and secured, you're ready to use the password-protected drive. Here are the basics of how to use this folder.
- Find the VHD file you created and double-click it to mount the drive. You may see an error saying access is denied since the drive hasn't been unlocked yet.
- Once the drive is mounted, navigate to This PC and double-click the drive to open it.
- Enter the password you set using BitLocker to unlock the drive.
- You can now move and access the files as needed.
- To protect the drive again, go back to This PC.
- Right-click the drive and choose Eject.
- Follow the steps above again to access your files
Because this hard drive is a file, you can also store it on a flash drive or move it to another PC to access your private data anywhere while keeping it safe.
That's all you need to know about how to protect your files and folders using password protection. We definitely recommend going with BitLocker encryption if you have Windows 11 Pro, but if you have a Home edition of Windows 11, the first option is likely more ideal. If you'd like to learn about other security features in Windows 11, check out how to use Smart App Control or how to disable Microsoft Defender.