Document Key
Windows 10 & 11 Buy license · $29.95
How-to

How to Decrypt a File in Windows 10 and 11

Learn how to decrypt a file in Windows, whether it was locked with EFS, BitLocker, Office, a PDF password, a ZIP or an encryption app.

Updated 5 minute read The Document Key team

To decrypt a file in Windows, you first need to know how it was encrypted, because each method has its own way back. EFS files decrypt by unticking Encrypt contents to secure data in the file's Advanced Attributes. BitLocker drives decrypt through Turn off BitLocker. Office documents and PDFs ask for their password when opened, and you can then remove it. ZIP and 7z archives decrypt when you extract them with the password. Files from an encryption app open with that app and your password. In every case you need the password, key or recovery key: strong encryption cannot be undone without it.

Below is how to identify the type of encryption, then step-by-step instructions for each one.

Step 1: Work out how the file was encrypted

What you seeLikely encryptionJump to
Small padlock on the file icon, opens normally for youEFS (Windows Pro)EFS
Padlock on the drive icon in This PC, or a password prompt for a USB driveBitLockerBitLocker
Word, Excel or PowerPoint asks for a password to openOffice encryptionOffice
PDF reader asks for a password to openPDF encryptionPDF
.zip, .7z or .rar file asks for a password when extractingArchive encryptionArchives
Unfamiliar extension that belongs to an encryption programApp encryptionEncryption apps

If several files in a folder show the same padlock, they were almost certainly encrypted the same way, so one fix will usually work for all of them.

Decrypt EFS files and folders

EFS is the encryption behind the Encrypt contents to secure data checkbox. It only works for the Windows account that encrypted the file, or one holding its certificate.

  1. Sign in with the account that encrypted the file.
  2. Right-click the file or folder and choose Properties.
  3. On the General tab, click Advanced.
  4. Untick Encrypt contents to secure data and click OK, then Apply.
  5. For a folder, choose whether to apply the change to the folder only or to its subfolders and files.

You can do the same from the command line with cipher /d "C:\path\to\file", adding /s: to process a folder and its contents. Our guide to the cipher command lists the switches.

If you get "Access is denied" on your own files after reinstalling Windows or moving to a new PC, the certificate is missing, and you need to import the certificate backup (a .pfx file) you exported earlier.

Decrypt a BitLocker drive

BitLocker encrypts whole drives, not single files. Files on an unlocked BitLocker drive already open normally, so you only need to turn it off if you want the drive itself unencrypted.

  1. Open Control Panel → System and Security → BitLocker Drive Encryption.
  2. Next to the drive, click Turn off BitLocker and confirm.
  3. Leave the PC on while it decrypts. You can keep working, but it takes a while on a large drive.

On Windows 11 Home with Device Encryption, go to Settings → Privacy & security → Device encryption and turn it off. An administrator can also run manage-bde -off C:. If Windows asks for a recovery key, see our guide to finding your BitLocker recovery key.

Turning off drive encryption on a laptop removes protection if it is lost or stolen. Only do it if you have a specific reason, such as replacing the drive or troubleshooting.

Decrypt Word, Excel and PowerPoint files

  1. Open the file and enter the password.
  2. Go to File → Info → Protect Document (Protect Workbook in Excel, Protect Presentation in PowerPoint).
  3. Choose Encrypt with Password.
  4. Delete the password so the box is empty, click OK, and save the file.

Only do this if the file is moving somewhere already protected. Otherwise, keep the password and just enter it each time.

Decrypt a password-protected PDF

A PDF with an open password needs that password to view. Once it is open, a full PDF editor can remove the security, usually from a security or protection settings panel, after which you save a copy. Without the password, there is no legitimate shortcut for a PDF encrypted with a modern AES setting.

Some PDFs open without a password but have a separate permissions password that blocks printing or editing. That is a different control, set by the author, and it is not the same as encryption of the contents.

Decrypt ZIP and 7z archives

  1. Right-click the archive and choose your archive tool's extract option.
  2. Enter the password when asked.
  3. Choose where the files should go, ideally a protected location rather than Downloads.

File Explorer's built-in ZIP support handles the older ZipCrypto method. If an archive uses AES-256, Explorer often shows an error instead, and you need an archive tool that supports AES. Our guide on when you cannot open a password protected ZIP covers the common errors.

Decrypt files from an encryption app

Files encrypted by a dedicated app open with that app. With Document Key, double-click the encrypted file and enter the password to open it, or right-click and choose decrypt to turn it back into a normal file. Self-opening share packages need only the password, and AES-256 encrypted ZIPs made by Document Key open in most archive tools that support AES. If you forgot the password, the recovery key you saved during setup is the way back in.

After decrypting: keep things tidy

Decrypted files are readable by anyone with access to your PC, so do not leave them lying around longer than necessary:

  • Work on the file, then re-encrypt it or move it back into an encrypted folder or vault.
  • Delete extracted copies from Downloads, Desktop and temporary folders.
  • Use auto-lock, so folders lock themselves when you step away.
  • If you extracted a copy just to read it once, securely delete it afterwards.

When you do not have the password

If none of the above works because the password is missing, the options are limited to the ones built into each method: a BitLocker recovery key, an exported EFS certificate, an encryption app's recovery key, or asking the person who sent the file. Tools that promise to "crack" strong encryption are a waste of time at best and malware at worst. Our guide to forgotten passwords on encrypted files goes through what is realistically possible.

Frequently asked questions

How do I tell how a file was encrypted?

Look at the extension and icon. A padlock on the icon usually means EFS, a .zip or .7z extension means an archive, and Office or PDF files simply ask for a password when opened.

Can I decrypt a file without the password?

Not with strong encryption. You need the password, the key, or a recovery key.

Should I keep files decrypted after opening them?

Only while you work on them. Re-encrypt or close them afterwards, and do not leave decrypted copies in Downloads or temporary folders.

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