Encrypt Files and Folders in Windows 10 with EFS
In this article
Yes, Windows 10 Pro, Enterprise, and Education editions include Encrypting File System (EFS), which lets you encrypt individual files and folders so that only your user account can decrypt and read them. You enable it by right-clicking a file or folder, choosing Properties > Advanced > Encrypt contents to secure data, then applying the change. This article explains how EFS works, how to use it safely, what to do when things go wrong, and how it compares to BitLocker.
What Is EFS and How Does It Differ from BitLocker?
EFS is a feature built into Windows that encrypts data at the file-system level using the NTFS file system. It is tied to your Windows user account and uses a combination of symmetric and asymmetric encryption. When you encrypt a file, Windows generates a random symmetric key (the File Encryption Key, FEK) to encrypt the file contents. That FEK is then encrypted with your public key (from a certificate issued to your account) and stored alongside the file. When you access the file, Windows uses your private key to decrypt the FEK, then uses the FEK to decrypt the file. This happens transparently in the background—you don’t need to enter a password each time.
BitLocker, by contrast, encrypts entire drives (the whole volume) and is designed to protect data if a laptop is stolen or a hard drive is removed. EFS protects individual files and folders, and it works even while Windows is running. A common misconception is that EFS and BitLocker are interchangeable; they solve different problems. You can use both on the same system—BitLocker for the whole drive, EFS for extra protection on specific sensitive files.
Which Windows 10 Editions Support EFS?
EFS is available only in Windows 10 Pro, Enterprise, and Education editions. It is not included in Windows 10 Home. If you have Home, you can either upgrade to Pro or use an alternative like BitLocker (which also isn’t in Home) or third-party encryption tools such as VeraCrypt (which is free and works on all editions). To check your edition, go to Settings > System > About and look at “Edition.”
How to Encrypt a File or Folder Using EFS
The steps are straightforward, but you should decide whether to encrypt a folder or an individual file. Encrypting a folder is usually better because any new file you create inside it will be encrypted automatically. Encrypting a single file only protects that file; if you move it to an unencrypted folder, it may lose encryption.
- Right-click the file or folder and select Properties.
- On the General tab, click the Advanced button.
- Check the box Encrypt contents to secure data.
- Click OK, then Apply.
- If you encrypted a folder, Windows asks whether you want to apply the change to this folder only or to this folder and all subfolders and files. Choose the latter for full protection.
- Click OK to finish.
Encrypted files appear with a green lock overlay on their icon in File Explorer (if you have “Show encrypted or compressed NTFS files in color” enabled in Folder Options).
Backing Up Your EFS Certificate—Critical Step
EFS is tied to your user account’s certificate and private key. If you lose that key (e.g., you reinstall Windows, your profile is corrupted, or you log in with a different account), you will not be able to open your encrypted files. Windows warns you to back up your certificate the first time you encrypt a file, but many people ignore it. To back up manually:
- Press Win + R, type
certmgr.msc, and press Enter. - Expand Personal > Certificates.
- Right-click the certificate that shows “Encrypting File System” under Intended Purposes, and choose All Tasks > Export.
- Follow the wizard, choose to export the private key, and set a strong password.
- Store the exported PFX file somewhere safe (external drive, password manager, or printed backup).
If you skip this, you risk permanent data loss. There is no backdoor—Microsoft cannot recover your files without the key.
Common Problems and How to Solve Them
- “Access Denied” or “File is encrypted” errors: This happens if you try to open an encrypted file from a different user account or after reinstalling Windows. You need the original certificate and private key. Import the PFX file into the new account using the same wizard.
- Encrypted files appear with a yellow lock icon: That means the file is encrypted but the current user doesn’t have the key. You need to import the certificate or restore the original profile.
- Cannot encrypt a file because it’s on a FAT32 or exFAT drive: EFS only works on NTFS volumes. Convert the drive to NTFS (e.g., using
convert D: /fs:ntfsin an elevated Command Prompt) or move the file to an NTFS drive. - Encrypted files lose encryption when copied to a USB drive: By default, copying an encrypted file to a non-NTFS drive decrypts it. To keep encryption, copy to a BitLocker-protected drive or use a third-party tool.
- EFS and cloud sync services (OneDrive, Dropbox) cause issues: Some services cannot sync encrypted files because they can’t read them. You may need to decrypt files before syncing or use a service that supports EFS (most don’t).
How to Decrypt Files and Folders
Decryption is the reverse process. Right-click the file or folder, select Properties > Advanced, and uncheck “Encrypt contents to secure data.” If you decrypt a folder, you’ll be asked whether to apply the change to all subfolders and files. Decryption is immediate and doesn’t require a password, because your account already has the private key. If you want to remove encryption from many files at once, you can use the cipher command in Command Prompt: cipher /d /s:"C:\path\to\folder".
Best Practices and Limitations
- Always back up your certificate before encrypting anything. This is the single most important step.
- Do not use EFS for system files or program folders. It can cause applications to malfunction and slow down performance.
- EFS does not protect against malware or keyloggers. If your system is compromised, an attacker can access files while you are logged in.
- EFS is not a substitute for a backup. It only protects confidentiality, not data loss. Always maintain regular backups.
- Moving encrypted files within the same NTFS volume preserves encryption. Moving to a different NTFS volume may preserve it if the destination supports EFS and you are the owner.
Frequently Asked Questions
Can I encrypt a folder that contains already-encrypted files?
Yes, but it’s redundant. If a file is already encrypted with EFS, encrypting the folder adds another layer of encryption, which is unnecessary and can slow access. Windows will allow it, but it’s better to keep encryption at one level.
What happens if I forget my Windows password?
If you reset your password using a Microsoft account or a password reset disk, your EFS certificate is still tied to your user profile, so you should still be able to access your files. However, if you use a third-party password reset tool that replaces your account, you will lose access to the certificate. Always back up your certificate separately.
Does EFS slow down my computer?
There is a slight performance overhead because files are encrypted/decrypted on the fly. On modern hardware, this is usually negligible for typical office documents. However, for large media files or databases, you might notice a small delay. The trade-off is worth it for sensitive data.
Can I share an encrypted file with another user?
Yes, but you must explicitly add the other user to the file’s encryption list. In the file’s Properties > Advanced > Details, you can add users who have EFS certificates. Only those users will be able to open the file. If the other user doesn’t have a certificate, they won’t be able to.
What is the difference between EFS and “Encrypt with BitLocker”?
EFS encrypts individual files/folders and is tied to your user account. BitLocker encrypts the entire drive and requires a password or PIN at boot. BitLocker protects the whole system, while EFS is more granular. You can use both together, but you don’t need to if you just want to protect a few files.
Is EFS secure enough for sensitive data?
Yes, EFS uses strong encryption (AES with 256-bit keys by default in Windows 10). It is considered secure for most purposes, provided you keep your certificate safe and your system is not infected with malware. For high-security needs, you might combine EFS with BitLocker or use a dedicated encryption tool.