What Is EFS in Windows and When Should You Use It?
Encrypting File System (EFS) is a built-in Windows feature that encrypts individual files and folders on NTFS-formatted drives. Unlike BitLocker, which protects an entire drive, EFS is designed for selective file-level encryption: you choose exactly which documents, folders, or project files should be protected.
EFS is tied to your Windows user account and its encryption certificate. When you are signed in as the correct user, encrypted files open normally. Other users on the same PC, users who boot another operating system, or people who copy the encrypted files without the certificate cannot read the original contents.
Use EFS when you want to encrypt specific files or folders. Use BitLocker when you want full-drive protection, especially for a laptop that could be lost or stolen.
Best use cases for EFS encryption
- Protecting private documents on a shared Windows PC.
- Encrypting work folders without encrypting the entire drive.
- Keeping sensitive files unreadable from other local user accounts.
- Adding file-level protection on an internal NTFS drive.
When EFS is not the best choice
- For removable drives that must work on many computers, because the EFS certificate must also be available.
- For full-device protection against theft, where BitLocker is usually more suitable.
- For files that must be shared widely with people who do not have EFS certificates.
- For cloud backup folders unless you fully understand how your backup software handles encrypted files.
Before You Encrypt Files with EFS in Windows 10 or Windows 11
EFS is simple to enable, but there are several important requirements and risks. The most important rule is this: back up your EFS certificate and private key immediately after encrypting your first file. Without that certificate, you may lose access to your encrypted data after reinstalling Windows, resetting the PC, deleting the user profile, or moving the files to another computer.
| Requirement | Details |
|---|---|
| Drive format | The file or folder must be stored on an NTFS drive. EFS is not intended for FAT32 or exFAT drives. |
| Windows edition | EFS is normally available in professional and business editions of Windows, such as Pro, Enterprise, and Education. |
| User account | Encryption is linked to the current Windows user account and its certificate. |
| Certificate backup | You should export the certificate to a password-protected .PFX file and store it safely. |
| Compression | A file or folder cannot be both NTFS-compressed and EFS-encrypted at the same time. |
Do not reinstall Windows, reset the PC, delete the user profile, or format the drive before backing up the EFS certificate. The files may remain encrypted, but you may no longer have the private key required to decrypt them.
Check whether the drive uses NTFS
- Open File Explorer.
- Right-click the drive where the files are stored.
- Select Properties.
- Look at File system. It should show NTFS.
How to Encrypt a Folder with EFS in Windows File Explorer
The easiest way to use EFS is through the folder properties window. This method works well when you want all new files inside a folder to be encrypted automatically.
- Open File Explorer.
- Right-click the folder you want to protect.
- Choose Properties.
- On the General tab, click Advanced.
- Enable Encrypt contents to secure data.
- Click OK, then click Apply.
- When Windows asks how to apply the change, choose Apply changes to this folder, subfolders and files if you want to encrypt everything already inside the folder.
- Click OK and wait for Windows to finish encrypting the data.
After encryption is enabled, Windows may display file and folder names in green in File Explorer. This indicates that the items are encrypted with EFS.
Create a dedicated folder such as Private Documents, enable EFS encryption for that folder, and then move sensitive files into it. New files created inside the folder will be encrypted automatically.
How to Encrypt a Single File with EFS in Windows
You can also encrypt one file without encrypting the whole folder. However, Windows may recommend encrypting the parent folder as well. That recommendation exists because some applications create temporary copies while editing files. If the folder is not encrypted, temporary data may be written unencrypted.
- Right-click the file you want to encrypt.
- Select Properties.
- On the General tab, click Advanced.
- Check Encrypt contents to secure data.
- Click OK.
- Click Apply.
- If prompted, choose whether to encrypt only the file or the file and its parent folder.
Should you encrypt the parent folder too?
In most cases, yes. Encrypting the whole folder gives better protection because temporary files, newly saved versions, and copied files inside that folder can remain protected automatically. Encrypting only one file is useful for quick protection, but it is less reliable as a long-term workflow.
How to Back Up Your EFS Encryption Certificate and Private Key
The EFS certificate is the key to your encrypted data. If Windows asks you to back up your file encryption certificate, do it immediately. You can also start the export manually from Certificate Manager.
Method 1: Back up the EFS certificate from the Windows notification
- After encrypting your first file or folder, look for the Back up your file encryption certificate and key notification.
- Click the notification.
- Select Back up now.
- Follow the Certificate Export Wizard.
- Choose to export the private key.
- Select the Personal Information Exchange (.PFX) format.
- Set a strong password for the exported certificate file.
- Save the .PFX file to a secure location, such as an encrypted external drive.
Method 2: Export the EFS certificate manually
- Press Win + R.
- Type
certmgr.mscand press Enter. - Go to Personal β Certificates.
- Find the certificate that lists Encrypting File System under its intended purposes.
- Right-click the certificate and choose All Tasks β Export.
- In the wizard, select Yes, export the private key.
- Choose .PFX, set a password, and save the file.
Anyone who has both the encrypted files and the exported .PFX certificate password may be able to decrypt the files. Store the certificate separately from the encrypted data and keep the password in a secure password manager.
How to Use the Cipher Command to Encrypt Files with EFS
Advanced users can manage EFS from Command Prompt or Windows Terminal with the cipher command. This is useful for scripting, checking encryption status, or encrypting many files at once.
Encrypt a folder and its existing files
cipher /e /s:"C:\Users\YourName\Documents\Private"
This command enables EFS encryption for the selected folder and processes files in subfolders.
Decrypt a folder and its files
cipher /d /s:"C:\Users\YourName\Documents\Private"
Show encryption status
cipher "C:\Users\YourName\Documents\Private"
Back up the current EFS certificate from the command line
cipher /x "%USERPROFILE%\Desktop\EFS-Backup.pfx"
Windows will prompt you to protect the exported certificate with a password. Move the .PFX file from the desktop to a secure backup location after export.
How to Decrypt EFS Files and Folders in Windows
Decryption is done from the same Advanced Attributes window used for encryption. You must be signed in as a user who has access to the EFS private key.
- Right-click the encrypted file or folder.
- Select Properties.
- Click Advanced on the General tab.
- Clear Encrypt contents to secure data.
- Click OK, then Apply.
- If you are decrypting a folder, choose whether to apply the change to the folder only or to all subfolders and files.
Decrypt using Command Prompt
cipher /d "C:\Users\YourName\Documents\Private\file.docx"
For a whole folder tree, use the /s option:
cipher /d /s:"C:\Users\YourName\Documents\Private"
EFS Troubleshooting: Common Problems and Solutions
The βEncrypt contents to secure dataβ option is grayed out
This usually happens because the file is not on an NTFS drive, the Windows edition does not support EFS encryption, the file is marked as compressed, or encryption has been disabled by policy.
- Check that the drive uses NTFS.
- Move the file to an internal NTFS drive and try again.
- Disable NTFS compression for the file or folder.
- Check whether your organization has disabled EFS through Group Policy.
You cannot open encrypted files after reinstalling Windows
Import the previously exported .PFX certificate into the current user account:
- Double-click the .PFX backup file.
- Use the Certificate Import Wizard.
- Import it into the Current User certificate store.
- Enter the password you used when exporting the certificate.
- Try opening the encrypted files again.
If the original Windows profile and private key are gone and no EFS certificate backup exists, recovering the encrypted file contents is usually not possible. EFS is designed to prevent access without the private key.
Encrypted files lose encryption after copying
EFS behavior depends on the destination. Copying files to a non-NTFS drive, uploading them through some apps, or saving them inside an archive may remove EFS protection. If you need portable encryption, use a password-protected encrypted container or archive instead.
Files are encrypted but the folder name is not green
File Explorer color display can be disabled. To check the real status, open the file properties or run the cipher command against the folder.
Frequently Asked Questions About EFS Encryption in Windows
Q Is EFS the same as BitLocker?
Q Can I use EFS on a USB flash drive?
Q Will EFS protect files if someone knows my Windows password?
Q What happens if I copy an EFS-encrypted file to another computer?
Q Can an administrator decrypt my EFS files?
Q Should I encrypt system folders with EFS?
Conclusion: The Safe Way to Use EFS in Windows
EFS is a convenient built-in way to encrypt selected files and folders in Windows 10 and Windows 11. The safest approach is to encrypt a dedicated folder, keep sensitive files inside it, and immediately back up the EFS certificate with the private key to a password-protected .PFX file.
Remember that EFS depends on your Windows user profile and certificate. If you plan to reinstall Windows, move data to another PC, or reset your account, export the certificate first. Without that backup, encrypted files may become permanently inaccessible.