How To Password Protect Windows Folder | Lock and Hide

Every desktop and laptop user has something in their system which they prefer hiding. It can be personal photos, some private files, or something else. Microsoft has paid attention to it just like best Minecraft seeds, and almost all Windows versions come with an in-built folder password protector which can you can easily enable and disable. Though it is not the only way in which you can password protect a folder or file. There are many people out there who are still unaware of how to password protect a folder in Windows 10/8.1/7. If you are among them, then you might be interested in knowing about some methods to password-protect files and folders in Windows devices. By using them you can easily hide or password protect Windows folders.

Protecting a file or folder in Windows isn’t a tech-savvy thing and can be done easily by anyone. There is a different level of protection and methods that can be used to protect your files from unwanted access. You don’t necessarily need to use some third-party software to do it, as Windows has enough settings and tools to get the work done by itself. Though if you are not able to locate or use them, then you can consider using password protect folder software. Also note that there are two different methods of protecting your files, password protection, and encryption. Before doing anything make sure you know about the usage and level of security of both of them.

How To Password Protect A Folder

Here in this post, we are going to tell you about some of the best methods on how to password protect a folder in windows 10 home along with how to password protect a folder in Windows 8.1 or 7. If you are using an older version of Windows like XP or Vista, then you can try to follow the same methods in them. Settings of all Windows versions are the same so, you will not face any kind of problem. If you are looking for an external hard drive password protect a folder, then we recommend you try using some software or tools that offer an extra layer of protection.

NOTE: Before making any changes to your system or files/folders make sure you have a backup. Screenshots and methods mentioned below are tested by us on Windows 10 Home, and they are working perfectly fine. Still, some settings can be different in your system, and to prevent the damage take a backup.

Can You Password Protect A Folder?

There are many people out there who don’t know much about Windows and its features. We’ve got many messages of readers asking “can you put a password on a folder?” The answer is Yes. It is possible to lock a folder with or without the use of third-party software. We have mentioned both of the ways below and you can read about them to know how to password protect a folder in Windows 2019.

  • Password Protection – It is a lot like putting something safe and then locking with a “key pair”. This method basically refers to knowledge-based authentication as the user who is trying to access the file/folder must know about the “password” in order to unlock the files.
  • Encryption – It means making something virtually unreadable until unencrypted. When a file or folder is encrypted it is in the ciphertext and when then encryption is removed it reverts back to plain text.
  • Password Encryption – It is a two-layer security feature which is a mixture of both password and encryption. Even after using the correct password, the folders or files will not open until they are authorized by the user. Fingerprint or a face authentication doesn’t land in this category.

How To Password Protect Folder In Windows | Windows Password Protect Folder

Without wasting more time, let us start telling you about how to password protect a folder in Windows 7/8.1/10 easily without any support. Well, if you are looking for methods on how to password protect a folder in Google Drive then they won’t work for you as Google Drive comes with an in-built password protector. Though if you are looking for how to password protect a zip folder or how to password protect a folder on flash drive then you can find some ways to do that below in this post. So, let’s get started.

How To Password Protect A Folder Windows 10/8.1/7

Unfortunately, there is no way to password protect folder in Windows 10/8.1/7 as all of the tools are available only for encryption. Though by using a simple trick and notepad app you can password protect folders and files on Windows. The best thing about this method is that you don’t have to install or download something, just a copy-paste will get the job done. Just follow the steps mentioned below and protect folders with a password in Windows easily.

  • First of all open Notepad app.
  • You can also right-click anywhere in the folder and select New -> Text Document.
  • Now copy and paste the below code in the notepad document.

title Folder Locker
if EXIST “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” goto UNLOCK
echo Are you sure u want to Lock the folder(Y/N)
set/p “cho=>”
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
if %cho%==n goto END
if %cho%==N goto END
echo Invalid choice.
ren Locker “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
attrib +h +s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
echo Folder locked
goto End
echo Enter password to Unlock folder
set/p “pass=>”
if NOT %pass%==Your-Password-Here goto FAIL
attrib -h -s “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}”
ren “Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}” Locker
echo Folder Unlocked successfully
goto End
echo Invalid password
goto end
md Locker
echo Locker created successfully
goto End

  • Now search for “Your-Password-Here” text in the code above.
  • Replace the text with the PASSWORD YOU WANT on your folder.

Password Protect Folders In Windows

  • Click on File -> Save As…
  • Name the file anything like FolderLocker.BAT (add .bat in the end) [IMPORTANT]
  • Change the Save as type as “All Files” [IMPORTANT].

Windows Password Protect Folders

  • Once done, double-click on the file and a New Folder will be created automatically.
  • Move the contents in that folder you want to password-protect.
  • When you are done, double-click on the FolderLocker.BAT file.

Password Protect Folders Windows

  • A Command Prompt window will appear on your screen. Simply type Y and press Enter.

How To Password Protect Folders In Windows

  • Folder Locker window will disappear, along with the Locker folder itself.
  • To get back the folder, double-click on the FolderLocker.BAT file and enter your password.

Password Protect Windows Folders

How To Password Protect A Folder Using 7-zip

If you want to know how to password protect a folder in windows 8 without software then you can try using 7-Zip. This is not just a compression software but it can also be used to password protect files because of its strong AES-256 encryption feature just like Android AnDosid Tool. The only drawback of this method is that after protecting files with it, you will have to decompress the files if you want to copy or move them into another drive or while sharing. Password sharing is not recommended.

  • Download and install the latest version 7-Zip from the official website.
  • Search and open 7-Zip File Manager.
  • Tap on the Add button and add the files or folders you want to protect.
  • Once done, you will have to do the below things (check image for reference):
A - Enter the name of the file you want.
B - Enter a password for encrypting/unencryption.
C - Select compression level as AES-256.
D - Click on OK when everything is done.

Password Protect A Folder Using 7-Zip

How To Password Protect A Folder In Windows Without Software

The second method is pretty easy and it doesn’t include or writing/copy-pasting codes but it is just a mousework. This is basically an encryption mode that comes pre-installed in all Windows devices but the availability depends on the version of Windows you are using. You can use this method as Windows 10 password protect folder without software usage.

Microsoft Windows Vista, 7, 8, and 10

  • Right-click on the File or Folder you want to encrypt and select Properties.
  • On the General tab, click on the Advanced button.
  • A new pop-up will appear on your screen.
  • Under Compress or Encrypt attributes, check the box “Encrypt contents to secure data”.
  • Tap on OK on both windows.

Password Protect A Folder In Windows Without Software

There are 2 reasons why the “Encrypt contents to secure data” option is not clickable in your system. It can be because the hard drive is not formatted as NTFS or you are using Home edition of Windows which does not have this feature.

Microsoft Windows XP Professional

  • Right-click on the file or folder and click Properties.
  • On the General tab, click the Advanced button.
  • Check the “Encrypt contents to secure data” option.
  • Click Apply and then OK.

Password Protect Folder Software


Lock-A-Folder is one of the most popular and widely used software to lock folders on Windows with a password. Though the developer has discontinued this product but you can still use it as it is an open-source project. After creating a master password, you can make files invisible and inaccessible to anyone other than you on the system.

Folder Lock

Folder Lock is the most popular and our recommendation when it comes to password protect a folder in Windows devices. The free and paid version of this software is available with different functionalities. More than 50 million people around the world are using it for Folder Lock. Not only internal drives but it can be used to password-protect USB and external drives too.

Secret Folder

As the name says, this is a program that works as an encrypter for your files and folders. The best thing about this tool is that it is completely free and can be used on every version of Windows. A unique feature about SecretFolder is “Protected Uninstall” which requires you to enter a password to uninstall this program from the device.

IObit Protected Folder

IObit creates world-class performance and security products and this folder locker software is among them. This software has got a very clean and easy to use user-interface and you can use it to set different actions like deny read, deny write or hide for each file. After locking the files with it, this tool will keep your folders and files safe against malicious attacks too.

Secret Disk

Secret Disk is a unique password protection software for folders and files on Windows. This program serves as a virtual hard drive that can be used for storing data and locking them with a password. Though this software is free, but you can also buy the paid version which offers some extra advanced features.

Final Words

So this is all about how to password protect a folder Windows 10/8.1/7 and we hope you are able to lock folders in your Windows devices now. Just for the information, we have also mentioned how to password protect a folder on a shared drive so you can easily manage and protect your files from unwanted access. There are many ways to password protect folder Windows 7/8.1/10 but the above-mentioned methods work best among all.

We are going to post a guide on how to password protect a folder MAC soon on Hacking News Tutorials, so keep visiting if you want to know about it. If you are facing any issues in using methods mentioned above then you can ask us for help via comments below. Moreover, if you know about any working method about how to password protect a folder in the laptop or desktop then let us know, so we can add it to this list.