Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Remove Lock Icon on Encrypted Files in Windows 10

· 5 min read · Home Tech

In this article
  1. Why the Lock Icon Appears
  2. How to Remove the Lock Icon (Decrypt the File)
  3. What If the Lock Icon Remains?
  4. Should You Decrypt the File?
  5. Alternative: Hide the Lock Icon Without Decrypting
  6. Common Problems and Misconceptions
  7. Frequently Asked Questions

Yes, you can remove the lock icon overlay on encrypted files in Windows 10, but only by decrypting the file or folder. The lock icon is a visual indicator added by the Encrypting File System (EFS); it disappears when you turn off encryption for that item.

Why the Lock Icon Appears

Windows 10 uses overlay icons in File Explorer to show file states. A small gold padlock on a file or folder means the item is encrypted with EFS, a feature that protects data by encoding it so only your user account (and designated recovery agents) can read it. EFS is available on Windows 10 Pro, Enterprise, and Education editions; Home edition does not support it. The lock icon is not a security feature itself—it is a notification that encryption is active.

How to Remove the Lock Icon (Decrypt the File)

To remove the lock icon, you must decrypt the file or folder. The steps are straightforward, but note that you need the same user account that encrypted the file (or a recovery agent certificate) to do this.

  1. Right-click the encrypted file or folder in File Explorer.
  2. Select Properties from the context menu.
  3. In the Properties window, click the Advanced button in the General tab.
  4. In the Advanced Attributes dialog, uncheck the box labeled Encrypt contents to secure data.
  5. Click OK, then Apply. If you are decrypting a folder, Windows will ask whether to apply the change to the folder only or to the folder, subfolders, and files. Choose the option that matches your needs.
  6. Click OK to close the Properties window.

After a few seconds, the lock icon should disappear. If it does not, press F5 to refresh the File Explorer view.

What If the Lock Icon Remains?

Sometimes the icon lingers even after decryption. This can happen if the file is still open in another program, or if File Explorer has not refreshed. Try closing all programs that might be using the file, then refresh the folder. If the icon still shows, restart File Explorer via Task Manager (right-click Windows Explorer and select Restart). In rare cases, the file may have been encrypted by a different user account, and you may not have the certificate to decrypt it—in that situation, the lock icon will remain until you obtain the correct certificate or restore it from a backup.

Should You Decrypt the File?

Deciding whether to remove encryption depends on why you encrypted it in the first place. If you no longer need the protection, decrypting is safe. However, consider the following:

  • If the file contains sensitive data (passwords, financial records, personal documents), keeping encryption is a good idea. Removing it exposes the data to anyone who can access your account or the drive.
  • If you need to share the file with others, encryption can interfere. You can either decrypt it or use EFS's "Details" button to add other users to the file's access list.
  • If you are about to back up or transfer the file, note that EFS encryption is tied to your user account. If you move the file to another computer, it may become inaccessible unless you also export and import your EFS certificate.

Alternative: Hide the Lock Icon Without Decrypting

If you want to keep the encryption but dislike the visual clutter, you can disable overlay icons in File Explorer. This is a system-wide change that affects all overlay icons (like the green checkmark for synced files, or the blue arrows for compressed files). To do this, you need to edit the Windows Registry:

  1. Press Win + R, type regedit, and press Enter.
  2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ShellIconOverlayIdentifiers.
  3. You will see subkeys that correspond to overlay handlers. There is no built-in key for EFS specifically; the encryption overlay is handled by the system. Instead, you can use a third-party tool like Ultimate Windows Tweaker or manually hide all overlays by renaming the subkeys (prepend a space or underscore to disable them). However, this is not recommended for most users because it also hides useful status icons.

A simpler approach is to just accept the icon—it is a small visual cue that provides useful information. If the icon bothers you, consider using a different method of file protection, such as BitLocker (which encrypts the entire drive and does not add per-file icons).

Common Problems and Misconceptions

  • "I can't uncheck the encryption box." This usually means the file is read-only, or you do not have the necessary permissions. Right-click the file, select Properties, and ensure the Read-only attribute is unchecked. Also, make sure you are logged in as the user who encrypted the file.
  • "The lock icon is on a file I never encrypted." This can happen if the file was created in a folder that has encryption set to inherit. Check the folder's properties—if the folder is encrypted, new files inside it are automatically encrypted.
  • "Decrypting a folder also decrypts all subfolders." Only if you choose the option to apply to all subfolders and files. If you select "Apply changes to this folder only," the subfolders remain encrypted.
  • "Removing the lock icon makes the file unencrypted, so it's safe to delete." Actually, decrypting is a separate action from deleting. If you delete an encrypted file without decrypting it, the data is still encrypted on the disk, but it becomes unrecoverable without the certificate.

Frequently Asked Questions

How do I know if a file is encrypted if the lock icon is hidden?

You can check the file's properties. Right-click the file, select Properties, and click Advanced. If the "Encrypt contents to secure data" box is checked, the file is encrypted.

Can I remove the lock icon without decrypting?

No, not directly. The icon is tied to the encryption attribute. The only way to remove it is to decrypt the file, or to hide all overlay icons system-wide (which also hides other icons).

Will decrypting a file affect its contents?

No, decryption simply removes the encryption layer. The file's data remains unchanged and fully readable. It just becomes accessible to anyone with account access.

What happens if I forget my EFS certificate?

If you lose the certificate, you cannot decrypt the file. Windows may have created a recovery agent (usually the administrator account), but if not, the data is effectively lost. That's why it's crucial to back up your EFS certificate.

Does the lock icon appear on files encrypted with BitLocker?

No, BitLocker encrypts entire drives and does not add per-file icons. The lock icon is specific to EFS.