Encrypt Individual Files with EFS and Back Up Your Certificate in Windows 10/11

Encrypt Individual Files with EFS and Back Up Your Certificate in Windows 10/11​

Difficulty: Intermediate | Time Required: 15 minutes
Encrypting File System, commonly called EFS, is a built-in Windows feature that lets you encrypt individual files or folders on an NTFS drive. Unlike BitLocker, which protects an entire drive, EFS is file-based and tied to your Windows user account certificate. This makes it useful when you share a PC with other users and want specific documents to remain private.
The most important part of using EFS is this: back up your EFS certificate and private key. If Windows is reinstalled, your profile is damaged, or you move the files to another PC without the certificate, you may not be able to open your encrypted files.
This tutorial walks you through encrypting a file in Windows 10 or Windows 11 and safely backing up your EFS certificate.

Prerequisites​

Before you begin, make sure you have:
  1. Windows 10 or Windows 11
    • EFS is typically available on Pro, Enterprise, and Education editions.
    • If the encryption option is missing, your edition or drive format may not support it.
  2. An NTFS-formatted drive
    • EFS works on NTFS volumes.
    • It does not work on FAT32 or exFAT drives.
  3. A standard local or Microsoft account sign-in
    • EFS encryption is tied to your Windows user profile and certificate.
  4. A safe backup location
    • Use a USB flash drive, external drive, or another secure offline location for your certificate backup.
Warning: If you lose your EFS certificate and private key, you may permanently lose access to encrypted files. Back up the certificate immediately after enabling EFS.

Part 1: Encrypt an Individual File with EFS​

  1. Open File Explorer.
  2. Browse to the file you want to protect.
  3. Right-click the file and select Properties.
  4. On the General tab, click Advanced.
  5. In the Advanced Attributes window, check:
    Encrypt contents to secure data
  6. Click OK.
  7. Click Apply.
  8. Windows may ask whether you want to encrypt only the file or also the parent folder. Choose one of the following:
    • Encrypt the file only
      Use this if you want to protect just one file.
    • Encrypt the file and its parent folder
      Recommended if you plan to keep editing or saving related files in the same folder.
  9. Click OK to finish.
The file should now be encrypted. In many Windows configurations, encrypted file names appear in green text in File Explorer, though this display option may vary depending on your settings.
Tip: Microsoft recommends encrypting the parent folder when you encrypt a file. If the parent folder is not encrypted, some applications may create temporary or replacement files that are not encrypted.

Part 2: Verify the File Is Encrypted​

To confirm that EFS is enabled:
  1. Right-click the encrypted file.
  2. Select Properties.
  3. Click Advanced.
  4. Confirm that Encrypt contents to secure data is checked.
  5. Click Details if available.
You should see information about the user certificate that can access the file. Your Windows user account should be listed as an authorized user.
You can also verify encryption from Command Prompt:
  1. Open Command Prompt.
  2. Navigate to the folder containing the encrypted file, or run:
    cipher "C:\Path\To\Your\File.txt"
  3. Encrypted files are marked with E, while unencrypted files are marked with U.

Part 3: Back Up Your EFS Certificate Using Command Prompt​

The quickest way to back up your current EFS certificate and private key is with the cipher command.
  1. Connect a USB flash drive or external drive.
  2. Open Command Prompt as your normal user account.
    You do not usually need to run this as administrator because you are backing up your own user certificate.
  3. Type the following command, replacing the path with your preferred backup location:
    cipher /x E:\My-EFS-Backup
  4. Press Enter.
  5. When prompted, confirm that you want to back up your EFS certificate and key.
  6. Enter a strong password when prompted.
  7. Confirm the password.
Windows creates a certificate backup file with a .pfx extension.
For example:
E:\My-EFS-Backup.pfx
This .pfx file contains your EFS certificate and private key. You will need both the file and the password to restore access later.
Warning: Do not store the .pfx file on the same PC only. If the computer fails or Windows is reinstalled, that backup may be lost along with your encrypted files.

Part 4: Back Up the Certificate Using Certificate Manager​

If you prefer the graphical method, use Certificate Manager.
  1. Press Windows + R.
  2. Type:
    certmgr.msc
  3. Press Enter.
  4. In the left pane, expand:
    Personal > Certificates
  5. Look for a certificate intended for Encrypting File System.
  6. Right-click the certificate.
  7. Select All Tasks > Export.
  8. In the Certificate Export Wizard, click Next.
  9. Choose:
    Yes, export the private key
  10. Click Next.
  11. Select:
    Personal Information Exchange - PKCS #12 (.PFX)
  12. If available, leave these options enabled:
    • Include all certificates in the certification path if possible
    • Enable certificate privacy
  13. Click Next.
  14. Check Password, then enter and confirm a strong password.
  15. Click Next.
  16. Choose a backup location, such as a USB drive.
  17. Give the file a clear name, such as:
    EFS-Certificate-Backup.pfx
  18. Click Next, then Finish.
You should see a message that the export was successful.
Important: Do not choose any option that deletes the private key after export unless you are certain you know what you are doing. For normal home and small-office use, keep the private key installed on your Windows account.

Part 5: Restore Your EFS Certificate Later​

If you reinstall Windows, move to a new PC, or need to regain access to encrypted files, restore the .pfx certificate.
  1. Copy the .pfx file to the PC.
  2. Double-click the .pfx file.
  3. The Certificate Import Wizard opens.
  4. Choose Current User.
  5. Click Next.
  6. Confirm the file path and click Next.
  7. Enter the password you created during export.
  8. If offered, select:
    Mark this key as exportable
    This lets you back it up again later if needed.
  9. Allow Windows to automatically select the certificate store.
  10. Click Finish.
After importing the certificate, sign out and sign back in if needed, then try opening the encrypted file again.

Tips and Troubleshooting​

The “Encrypt contents to secure data” option is greyed out​

This usually means one of the following:
  1. The file is not on an NTFS drive.
  2. The file is compressed.
  3. The file is in a location Windows does not allow EFS encryption.
  4. Your Windows edition does not support EFS.
  5. EFS has been disabled by policy.
Try moving the file to your Documents folder on the system drive and checking again.

Do not confuse EFS with BitLocker​

EFS protects individual files and folders for a specific Windows user. BitLocker protects entire drives. For best security on laptops, consider using BitLocker for the drive and EFS for especially sensitive files.

Be careful when copying encrypted files​

When you copy encrypted files to another location, the result depends on the destination file system and how the file is copied. If you copy to a non-NTFS drive, upload to a cloud service, email the file, or place it in a ZIP archive, it may no longer retain EFS protection.

Back up before resetting Windows passwords​

If an administrator resets your account password instead of you changing it normally, access to EFS-protected files may be affected. Always keep a current .pfx backup before major account, profile, or Windows changes.

Encrypt folders for active work​

If you frequently edit sensitive documents, encrypt the folder rather than only individual files. Many apps create temporary files, autosave files, or replacement copies during editing.

Conclusion​

EFS is a convenient way to protect individual files in Windows 10 and Windows 11 without encrypting an entire drive. It is especially useful on shared PCs where each user has a separate Windows account. However, EFS depends on your user certificate and private key, so backing up that certificate is not optional — it is essential.
Once your file is encrypted and your .pfx certificate backup is stored safely offline, you have an extra layer of protection for sensitive documents while still keeping day-to-day access simple.
Key Takeaways:
  • EFS encrypts individual files and folders on NTFS drives.
  • Your encrypted files are tied to your Windows user certificate.
  • Always back up your EFS certificate and private key as a .pfx file.
  • Store the certificate backup somewhere secure and separate from the PC.
  • Use BitLocker alongside EFS for stronger overall device protection.

This tutorial was generated to help WindowsForum.com users get the most out of their Windows experience.
 

Back
Top