To password protect a folder with 7-Zip, create an encrypted archive from its contents; 7-Zip does not put a password lock on the original folder itself. [1] You can use this approach when a password-protected archive is what you need, rather than a working folder that asks for a password whenever you open it. [1]
The archive is a package of the folder’s files, so you’ll need to extract them before using them normally outside the archive. [2] For example, you can keep documents in the protected archive for storage, then extract a copy when you need to edit or open the files in another app. [2] Choose this method when you’re comfortable working from the archive and extracting files as needed, not when you expect the original folder to become password-locked. [1]
Get the folder ready
Before you create an archive, choose the folder you want to package and decide where the archive file should go. [2] For example, if your project folder is in Documents, you might save the archive in a separate folder there so it is easy to find without mixing it into the project’s files. It also helps to read Lock a Folder in Windows 11 Without Software: Your Options.
Keep the original folder in place until you have opened the archive with its password and checked that the files you need are available. [2] This gives you a separate copy to verify before you decide what to do with the source folder.
The archive is a separate file; creating it does not replace the original folder. [1] You can choose a clear name, such as Project archive, and save it somewhere with enough room for another copy of the folder. The original and archive may have similar names, so use a name or location that helps you tell them apart. You may also find this useful: How to Hide a Folder in Windows 11—and What It Protects.
If you are preparing a folder to share, decide where the recipient should get the archive, while keeping your original folder organized in its current location. [2]
Create a password-protected archive
Right-click the folder you want to archive, point to
7-Zip, and chooseAdd to Archive. This opens 7-Zip’s archive settings for that folder. [2]In the archive window, choose a name for the archive and select its format. For a ZIP file, select
zipin the archive format list. [2][3]Find the
Encryptionsection, enter a password, and confirm it in the password field if the window offers one. [4] For example, use the same password in both fields so 7-Zip can create the protected archive. ClickOKto create it. [2]Keep the original folder until you have tested the archive and confirmed that its files are accessible with the password. [2] For example, open the archive, enter the password, and check that you can view its contents before you remove or change the original. [2]
Test the archive and use its files
Open the archive in 7-Zip and enter the password when prompted. This checks whether the password lets you access the archive’s contents.[1]
Confirm that you can see the files you expect inside. For example, if the archive should contain a budget spreadsheet and a receipts folder, check that both appear before you rely on it.[2]
When you need to use a file outside the archive, extract it first. Choose the file or folder in 7-Zip and use the extraction option, then open the extracted copy in its usual app.[2]
Treat extracted files as separate copies. The password-protected archive does not make an ordinary extracted folder password-protected, so anyone who can access that extracted copy may be able to open it without the archive password.[1]
For example, you can keep the archive as the protected package and extract a spreadsheet when you need to edit it. Afterward, remember that the edited, extracted copy is not protected by the archive’s password; the password check applies when opening the archive itself.[1]
When this method is a good fit
A 7-Zip archive is a good fit when you want to store or share files together as a password-protected package. [1] For example, you can put documents you plan to send to someone into an archive and give them its password separately. The tradeoff is that an archive may not suit you if you need to work directly with the files in a folder without extracting them first. [2] Remember that the password applies to the archive, not the original folder or a folder you extract from it. [1] Choose this method when a protected package fits how you plan to keep or share the files; if you need to edit them in place, use a different workflow.
