How to password protect a folder in Windows and MacOS

Your computer probably has at least one or two files with sensitive information that you don’t want anyone getting their hands on. Maybe it’s a private work document or a digital file with all your passwords on it. Either way, you always want to take extra steps to ensure your most crucial information is as safe as possible. Systems like Windows or MacOS will let you password protect a folder so that anybody who uses your laptop can’t just sneak a peek at those sensitive files.

If you ever need help remembering passwords, consider one of the best password managers.

Windows 10 Pro folder encryption

If you’re running Windows 10 Pro, there is a built-in protection system, though it’s not the most fully featured. Windows 10 Pro’s standard encryption offers file obfuscation that locks a file to your account. That way, if someone on another account or someone who copied your files away to another PC tried to access your content, they’d need to know your account password (which better not be one of the most common passwords).

Anyone using your PC and account would still have access, however.

Step 1: Right-click on your chosen file and select Properties from the drop-down menu.

Step 2: Click Advanced.

Step 3: Tick the box next to Encrypt Contents to Secure Data and click OK.

Step 4: Click Apply, and when prompted, choose whether you want all folders within that directory to be encrypted or merely the top-level one. When you’ve decided, click OK.

Depending on the size and contents of the folder, it may take a while to complete. Still, once it’s concluded, your data will be encrypted and protected from the prying eyes of anyone on another account or system. You can tell that it’s worked by the little padlock symbols now on each file within. Your folder and all of its data are now password-protected by your account.

Password protecting Windows folders with 7-Zip

While Windows 10 Pro might have some protections, most versions of Windows are utterly devoid of any folder-specific security. For most Windows users, adding a password to a folder requires a third-party archiving utility or some form of compression software.

Options include 7-Zip, an open-source zip compression utility that’s readily available for free courtesy of Russian developer Igor Pavlov. It does a great job of password-protecting your more critical data. You’ll be required to decompress the folder before use, but that’s a small price to pay for security.

Step 1: Navigate to the 7-Zip download page and select the right download for you. Most users should opt for the 64-bit x64 Windows build. Once downloaded, install it as you would any other software and run it.

Step 2: Locate the folder you wish to password protect within the main 7-Zip interface and click the green addition sign in the application’s upper-left corner. Alternatively, drag and drop the folder anywhere within the main 7-Zip interface.

How to password protect a folder on Windows and MacOS

Step 3: Ignoring the bulk of presets in the resulting pop-up window, select zip from the drop-down menu directly beside the Archive Format option to ensure the folder remains compatible with computers without 7-Zip installed. Then, enter and re-enter your desired password for the folder in the text fields located on the window’s right-hand side. Click the OK button when finished and allow the utility to create a compressed, encrypted duplicate of the folder you wish to password protect.

How to password protect a folder on Windows and MacOS

Step 4: Once the password-protected zip file is created, test it to ensure that it’s working correctly by trying to access any of the content held within. Once you know it’s protected, delete the original folder so it can no longer be located. There’s no need to have two instances of the same data, especially since the original folder will remain unprotected.

How to password protect a folder on Windows and MacOS

Adding password protection to folders in MacOS

Like most versions of Windows, Apple’s MacOS lacks the native ability to add password protection to folders. Still, what you lose in convenience, you definitely gain in security — don’t forget an antivirus. Adding a rudimentary password will require you to create an encrypted disk image through the operating system’s native Disk Utility — an app that comes pre-installed on nearly all Mac devices.

Once it’s created, you’ll be able to access the folder as a mounted virtual disk, which will allow you to edit, add, and delete content after entering a designated password. Any changes you make while the disk is mounted will automatically become both encrypted and password-protected upon dragging the disk to the Trash.

Step 1: Select Disk Utility from the Applications folder. You can also use Spotlight to search for it. Open the application.

Step 2: After you’ve opened the app, select File. Click New Image from the resulting menu, then click Image From Folder. Now, you can find the file that needs password protection. Select it, then hit Choose.

How to password protect a folder on Windows and MacOS

Step 3: Once you’ve tagged and named the folder that needs protection, click Read/Write from the drop-down menu under Image Format. You’ll see another drop-down menu under Encryption. Choose 128-bit AES encryption.

How to password protect a folder on Windows and MacOS

Step 4: Enter and verify your password in the open fields. After system verification, select Choose, then Save. Disk Utility will inform you when it has finished the image with password protection.

Step 5: You’ll need to make sure that you successfully protected your image. To do this, attempt to open the image. You should receive a prompt to enter a password. If you do, you should delete the original folder. Empty your Trash folder to make sure no one else can access it.

How to password protect a folder on Windows and MacOS

Step 6: Type in a password and verify it, then hit Choose and Save. Disk Utility will finish the process and notify you upon completion.

How to password protect a folder on Windows and MacOS

Step 7: Check that the password works by attempting to open the content. Afterward, delete the original folder to prevent anyone else from accessing it. How to password protect a folder on Windows and MacOS

Editors' Recommendations