How to password protect files and folders in Windows

Updated: 12/30/2019 by Computer Hope
Password protected

Because most versions of Windows do not include a method of password protecting your files and folders, this page provides steps for encrypting files and folders instead. To password protect your files and folders in Windows, you must use a third-party program.

Tip

Before password protecting any confidential documents, you may want to create a backup of the non-password protected files and folder in case you forget the password in the future.

Microsoft Windows Vista, 7, 8, and 10 users

Unfortunately, Windows Vista, Windows 7, Windows 8, and Windows 10 do not provide any features for password protecting files or folders. You need to use a third-party program to accomplish this.

To encrypt a file or folder, this can be done by following these steps:

  1. Select the file or folder you want to encrypt.
  2. Right-click the file or folder and select Properties.
  3. On the General tab, click the Advanced button.
  4. Check the box for the "Encrypt contents to secure data" option, then click OK on both windows.

Encrypt file setting

Note

If the "Encrypt contents to secure data" option is not selectable or available, you likely have a Home edition of Windows, which does not support this feature. It is also possible that the hard drive where the files are located is not formatted as NTFS (NTFS File System), which is required.

Microsoft Windows XP Professional users

The steps below for encrypting the files on Windows XP Professional apply to users who are using a computer with two or more accounts. If you are using a single account, see the other security solutions section.

  1. Select the file or folder you want to encrypt.
  2. Right-click the file or folder, and click Properties.
  3. On the General tab, click the Advanced button.
  4. Check the box for the Encrypt contents to secure data option.
  5. Click Apply and then OK.
Note

You won't be prompted to enter a password when encrypting a folder in Windows XP Professional. However, other user accounts on your computer can't access files contained in the encrypted folder.

Encrypt contents to secure data is grayed out

If you are using the Home edition of Microsoft Windows XP, see the Windows XP Home steps.

Show "Encrypt" on the context menu

The newest version of TweakUI also enables you to show the Encrypt option in the context menu. To do this, follow the steps below.

  1. Open TweakUI.
  2. In the TweakUI window, select Explorer.
  3. In the right side of the window under Settings, locate Show 'Encrypt' on the context menu and check the box. This option should be below Prefix 'shortcut to' on new shortcuts and above Show 'View workgroup computers' in NetPlaces.

Microsoft Windows XP Home users

  1. Select the file or folder you want to encrypt.
  2. Right-click the file or folder and click Properties.
  3. Click the Sharing tab.
  4. Check the box Make this folder private.
  5. Click Apply and then OK.

Make this folder private is grayed out

For this option to work on Microsoft Windows XP Home edition, you must meet the below requirements.

  1. The hard drive must be formatted in NTFS and not FAT32 file system.
  2. The folder you are attempting to encrypt is your folder. For example, if your name is Bob, you must encrypt the following folder, or a folder within it:

    C:\Documents and Settings\Bob\

    You cannot encrypt any folders outside of this folder. To encrypt folders outside of this folder, see the other security solutions section below.

Other security solutions for protecting your files and folders in Windows

File and folders not frequently used - An easy way to password protect files is to create an archive of the files using a compression tool. When the archive is created, you can encrypt the contents by specifying a password.

Windows Me and Windows XP users - Windows Me and Windows XP comes with a compression utility. This utility can also be used to compress and password protect files.

Windows Vista and Windows 7 users - Windows Vista and Windows 7 includes a compression utility. However, password protection for the compressed files is not possible without a third-party program.

Tip

Users can still view a list of the files within a compressed file. If you want both your file names and contents to be hidden, move all the files into a single folder and password protect that folder.

File and folders frequently used or accessed

If you must password protect or encrypt data you frequently use, you must install a third-party program that lets you protect your files and folders. Below are some free and commercial solutions.

  • 7-Zip - A free file and folder zipping utility, that includes the ability to password protect zipped files and folders.
  • AxCrypt - An excellent free encryption utility that enables users to encrypt all files within a folder and not allow those files to be viewed unless a passphrase (password) is known.
  • Folder Guard - A commercial version of a password protection software that enables you to password protect files, folders, and other Windows resources.
  • Protected Folder - For a small fee, it's an excellent program that enables you to password protect folders.

Open a search for more solutions to password protect files and folders.

Things to remember when encrypting or password protecting files and folders

  1. There is no such thing as a 100% protected file. There are many tools, utilities, and instructions for how to break encryption and passwords on files. However, the protection methods listed above will protect your files from most users who may encounter them. If you are working with really sensitive data, we suggest a commercial product for protecting your files and data.
  2. Even though a file or folder may be password protected, it still can be deleted (unless the program supports the ability to protect files from being deleted). Always remember to backup all your files, even those protected by passwords.
  3. If you forget the password, unless you're willing to spend the time attempting to break it or pay someone, all the protected data is lost. Thus, it's important to back up a copy of the non-password protected files or folders, just in case.