Document Key
Windows 10 & 11 Buy license · $29.95
Troubleshooting

Padlock Icon on Files in Windows 11: What It Means and How to Remove It

Seeing a lock icon on files in Windows 11? Learn what the padlock means, from EFS encryption to sync tools, and how to remove it safely.

Updated 5 minute read The Document Key team

A small padlock on a file or folder icon in Windows 11 almost always means the item is encrypted with EFS, the Encrypting File System built into Pro, Enterprise and Education editions. It opens normally for the Windows account that encrypted it and gives "access denied" to other accounts. You can remove the padlock by right-clicking the file, choosing Properties → Advanced and clearing Encrypt contents to secure data, but only do that if you actually want the file unencrypted, and back up your EFS certificate first.

This guide explains how to confirm what the lock means, why it can appear on files you never deliberately encrypted, and how to remove it, or keep it, safely.

What the different lock icons mean

Several things in Windows show a padlock, and they mean different things:

Where you see the lockWhat it usually means
Small padlock in the corner of a file or folder iconThe item is encrypted with EFS
Padlock on a drive icon under This PCThe drive uses BitLocker; a closed lock means it is locked, an open lock means it is unlocked
A OneDrive folder with a lock iconOneDrive's Personal Vault, which needs extra verification to open
A lock inside an app, such as Word or a PDF readerThe document itself has a password or restrictions

The rest of this guide is about the first and most common case: the padlock overlay on files and folders in File Explorer.

How to confirm a file is EFS encrypted

  1. Right-click the file and choose Properties.
  2. On the General tab, click Advanced.
  3. If Encrypt contents to secure data is ticked, the file uses EFS.
  4. Click Details to see which user accounts can open it and whether a recovery agent is set.

For a whole folder, open Terminal in that folder and type cipher. Each item is listed with E for encrypted or U for unencrypted. Our guide to the cipher command covers the other switches.

Why files get a lock icon you did not expect

People are often surprised to find padlocks on files they never chose to encrypt. Common reasons:

  • The parent folder is encrypted. When a folder has EFS turned on, every new file saved or copied into it is encrypted automatically. If someone encrypted a folder in the past, new files keep getting the padlock.
  • Files were extracted or copied from an encrypted location. Moving files around on the same NTFS drive can keep their encryption.
  • A program or policy applied encryption. Some backup, sync or management tools, and some work device policies, use EFS. On a work PC, ask IT before changing anything.
  • The PC was set up by someone else. A previous owner, family member or technician may have encrypted a folder such as Documents.

EFS is only available on Pro, Enterprise and Education. If you see padlocks on a Home edition PC, the files were most likely encrypted on another PC and copied over on an NTFS drive.

Before you remove it: back up your EFS certificate

EFS files can only be opened with the certificate and key that belong to your Windows account. If that account is ever reset or Windows is reinstalled, the files may become unreadable. Whether you keep the encryption or not, export the certificate now:

  1. Press Win+R, type certmgr.msc and press Enter.
  2. Open Personal → Certificates.
  3. Find the certificate whose Intended Purposes column says Encrypting File System.
  4. Right-click it and choose All Tasks → Export.
  5. Choose Yes, export the private key, set a strong password and save the PFX file to a USB stick or another safe location off the PC.

If you already see "access denied" on padlocked files, read EFS encrypted files access denied after reinstall before changing anything else.

How to remove the lock icon

For a single file or folder

  1. Right-click the item and choose Properties → Advanced.
  2. Clear Encrypt contents to secure data and click OK, then Apply.
  3. For a folder, choose Apply changes to this folder, subfolders and files to decrypt everything inside.

For many files with the command line

  1. Right-click Start and open Terminal.
  2. Run cipher /d /s:"C:\Users\You\Documents\Folder", using your own path.
  3. Run cipher in the folder afterwards to check every item shows U.

You must be signed in as the account that encrypted the files. If another account encrypted them, sign in as that user, or ask them to add your account under Advanced → Details.

Stop new files being encrypted

If padlocks keep coming back, the parent folder still has encryption turned on. Open the folder's own Properties → Advanced, clear the checkbox, and apply it to the folder and its contents.

Should you remove the lock at all?

The padlock is a protection, not a fault. Keep EFS on if:

  • Other people use the PC with their own accounts and should not see these files.
  • The files are sensitive and you have backed up your certificate.

Remove it if:

  • You do not know why the files are encrypted and want them readable in every situation.
  • You are about to reinstall Windows or move the drive to another PC and have no certificate backup.
  • You are switching to a different encryption method.

Decrypting removes the protection. If the files are private, decide how you will protect them before you take the padlock away.

A clearer alternative to EFS

EFS works silently, which is why its padlocks can be confusing. It is tied to your Windows account, needs a Pro edition, and does not travel: copy an EFS file to a USB stick formatted as FAT32 or exFAT, or attach it to an email, and the copy is decrypted.

Password-based encryption behaves more predictably. Document Key encrypts files and folders with AES-256 and a password you choose, on Windows 10 and 11 including Home. Encrypted files ask for the password when you double-click them, stay encrypted when copied to USB drives or cloud folders, and can be recovered with the recovery key you save at setup rather than a certificate buried in Windows.

If you are deciding between the built-in options, our comparison of EFS vs BitLocker explains what each protects against.

Quick reference

  • Padlock on a file: EFS encryption. Check under Properties → Advanced.
  • Padlock on a drive: BitLocker. Unlock or manage it from the drive's right-click menu.
  • Before removing: export your EFS certificate with certmgr.msc.
  • To remove: clear Encrypt contents to secure data, or run cipher /d.
  • Keeps coming back: the parent folder is encrypted; turn it off there.

Frequently asked questions

Why do my files suddenly have a lock icon?

On Windows 10 and 11 a small padlock usually means the file is encrypted with EFS. This can happen when files are copied into an encrypted folder or when a sync or backup tool applied encryption.

How do I remove the lock icon?

Right-click the file, open Properties, Advanced, and clear Encrypt contents to secure data. Only do this if you want the file unencrypted.

Can other people open files with the lock icon?

No. EFS files open only for the user account that encrypted them, unless access was shared with another account or a recovery agent.

Get three guides like this every month, plus software update notices.Subscribe →