Smart Systems for Home

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

How to Encrypt a File in Windows 10

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Encrypting a file in Windows 10 protects its contents from anyone who doesn't have the correct decryption key. This guide covers two built-in methods: Encrypting File System (EFS) for individual files and folders, and BitLocker for entire drives. You'll need a Windows 10 Pro, Enterprise, or Education edition for EFS; Home edition only supports BitLocker on fixed drives (not the OS drive) and lacks EFS. No extra software is required.

What You'll Need

  • Windows 10 Pro, Enterprise, or Education (for EFS)
  • An NTFS-formatted drive (EFS only works on NTFS)
  • Administrator rights (for BitLocker)
  • A strong password or USB drive for BitLocker recovery key

Step-by-Step

Method 1: Encrypt a File or Folder with EFS

  1. Right-click the file or folder you want to encrypt and select Properties.
  2. On the General tab, click the Advanced... button.
  3. Check the box Encrypt contents to secure data.
  4. Click OK, then Apply.
  5. If you encrypted a folder, choose whether to apply the encryption to just the folder or also to all subfolders and files. Select the option that suits your needs and click OK.
  6. If you're encrypting a file for the first time, a notification will appear. Click the Back up your file encryption key link to create a backup of your EFS certificate and key. Follow the wizard to back it up to a safe location (like a USB drive).
  7. Once done, the file or folder name will appear green in File Explorer, indicating it's encrypted.

Method 2: Encrypt an Entire Drive with BitLocker

  1. Open Control Panel > System and Security > BitLocker Drive Encryption.
  2. Next to the drive you want to encrypt (e.g., D:), click Turn on BitLocker.
  3. Choose how you want to unlock the drive: Use a password or Use a smart card. For most users, a password is easiest.
  4. Choose how to back up your recovery key: save to a file, print it, or save to your Microsoft account. This key is essential if you forget your password.
  5. Select how much of the drive to encrypt: Encrypt used disk space only (faster, good for new drives) or Encrypt entire drive (slower, more secure).
  6. Choose the encryption mode: New encryption mode (default for fixed drives) or Compatible mode (for drives that may be moved to older Windows versions).
  7. Click Start encrypting. The process may take from minutes to hours, depending on drive size and amount of data.
  8. When done, the drive will show a padlock icon in File Explorer. You'll need to unlock it with your password each time you access it after a restart.

Common Mistakes

  • Encrypting a file instead of a folder: EFS on a single file can cause issues when the file is edited by some programs, which may create a temporary unencrypted copy. Encrypt the folder containing the file instead.
  • Not backing up the EFS key: If you lose the key or your Windows profile is deleted, you cannot recover the encrypted data. Always back up the key.
  • Using EFS on a FAT32 drive: EFS requires NTFS. Check the drive's file system in Properties; if it's FAT32, convert it to NTFS or use BitLocker instead.
  • Copying encrypted files to a non-NTFS drive: When you copy or move an encrypted file to a drive that doesn't support EFS (like a FAT32 USB), the file is decrypted. Use NTFS on the destination or keep the file on the encrypted drive.
  • Forgetting the BitLocker password: Without the recovery key, you'll be locked out of the drive permanently. Always store the recovery key safely.

Tips

  • For EFS, the encryption is tied to your Windows user account. If you share the computer, other users won't be able to open the file unless you grant them access.
  • To grant another user access to an EFS-encrypted file, right-click the file, go to Properties > Advanced > Details, and add their certificate.
  • BitLocker is more robust for protecting against offline attacks (e.g., if the drive is stolen). Use it for external drives or entire internal drives.
  • If you need to send an encrypted file over email, consider using a ZIP file with a password (via 7-Zip or similar) instead of EFS, because EFS encryption is removed when the file is transferred over non-NTFS mediums.
  • Keep your Windows account password strong, as EFS uses your account credentials to derive the encryption key.

Troubleshooting

  • Encryption option is grayed out: This happens on Windows 10 Home or if the file is on a FAT32 drive. Upgrade to Pro/Enterprise or convert the drive to NTFS (Command Prompt: convert D: /fs:ntfs).
  • Cannot open an encrypted file after reinstalling Windows: You need the EFS certificate and key backup. Restore it from the backup you created, or import the .pfx file using the Certificate Import Wizard.
  • BitLocker asks for recovery key after a hardware change: This is normal. Enter the recovery key to unlock the drive, then consider disabling and re-enabling BitLocker to reset the key.
  • Encrypted files appear with a yellow lock icon but still open for others: That's normal if the file is on a shared folder with permissions granted. Check the file's EFS details to see who has access.
  • BitLocker encryption is stuck at a low percentage: It can take a long time for large drives. Wait at least an hour. If it's truly stuck, restart the computer; encryption will resume.

Frequently Asked Questions

Can I encrypt a single file without encrypting the whole folder?

Yes, you can encrypt a single file, but it's not recommended because some programs may create unencrypted temporary copies. Encrypting the folder is safer.

Does EFS work on Windows 10 Home?

No, EFS is only available in Pro, Enterprise, and Education editions. Home users can use BitLocker on fixed drives (not the OS drive) or third-party encryption tools.

What happens if I forget my BitLocker password?

You can use the recovery key you saved during setup. If you lost that too, the data is inaccessible permanently.

Can I move an EFS-encrypted file to a USB drive?

If the USB drive is formatted as NTFS, the file stays encrypted. If it's FAT32, the file is decrypted. To keep it encrypted, format the USB as NTFS.

Is encryption the same as password protection?

No. Password protection (like in Word) only prevents opening without a password, but the content can be read with special tools. Encryption transforms the data into unreadable format without the key, providing stronger security.

Can I encrypt a file that's already compressed?

Yes, but you can't have both NTFS compression and encryption on the same file. If you encrypt a compressed file, it will be uncompressed first. You can re-compress after encryption, but it's not recommended as encrypted data doesn't compress well.