When an encrypted file won't open, the cause is almost always one of five things: the password is being typed differently from how it was set, the file was damaged or only partly downloaded, you are using the wrong program for that type of encryption, the file was encrypted with EFS and is tied to another Windows account, or the password was changed by whoever made the file. Work through the checks below in order. Most problems are fixed in the first two steps, and none of them require cracking anything.
Start by noting the exact error message. "Wrong password", "file is corrupt", "access is denied" and "this file type is not supported" point to very different causes.
Match the error to the likely cause
| Error or symptom | Most likely cause | First thing to try |
|---|---|---|
| Wrong password or incorrect password | Typing difference, wrong password, changed password | Check the password carefully (below) |
| File is corrupt, damaged or unexpected end of archive | Incomplete download or sync | Compare the size and download again |
| Access is denied | EFS encryption tied to another account | Open from the original account or import the certificate |
| Windows asks which app to use | No program installed for that format | Install or use the program that made it |
| Unsupported compression method, or Explorer shows an error on a ZIP | AES-encrypted ZIP opened in File Explorer | Use an archive tool that supports AES |
Fix 1: Check how you are typing the password
Encryption passwords are case sensitive and exact. One wrong character and the file stays locked. Check these in turn:
- Caps Lock and Num Lock. Look at the keyboard lights, and remember that some laptops have a separate number pad lock.
- Keyboard layout. If you use more than one input language, the indicator on the taskbar may be set to a different layout. Symbols such as @, " and # move between layouts. Press Windows key + Space to switch.
- Copy and paste. Copying a password from an email or chat often picks up an extra space at the start or end. Paste it into Notepad first to check, or type it by hand.
- Similar characters. The letter O and zero, lowercase l and the digit 1, and capital I are easy to confuse, especially in passwords read out over the phone.
- Accented characters. If the password contains letters such as e with an accent, they may need to be typed with the same keyboard layout used when it was set.
If someone else encrypted the file, ask them to confirm the password by a different channel, and check whether they changed it when they re-saved or re-sent the file.
Fix 2: Check the file is complete
Most modern encrypted formats include integrity checks, so even a small amount of missing or changed data makes it fail as a whole. This often happens when:
- A download was interrupted or finished while the PC went to sleep.
- A cloud sync folder shows the file before it has finished downloading.
- An email system modified or truncated an attachment.
- The file was copied to a USB stick and removed without ejecting it.
Right-click the file, choose Properties, and compare the size with the original. If the sender can run certutil -hashfile "filename" SHA256 in Terminal on their copy, and you run the same command on yours, matching results prove the file is identical. If they differ, download or copy it again. For cloud folders, right-click the file and choose the option to always keep it on this device, then wait for the sync to finish.
Fix 3: Use the right program
Different kinds of encryption need different programs:
- Encrypted ZIP files. File Explorer can open ZIPs that use the older ZipCrypto method, but AES-256 ZIPs often fail in Explorer. Use an archive tool that supports AES. See cannot open a password protected ZIP in Windows for details.
- Office and PDF files. Older or very basic viewers may not support modern encryption. Open them in a current version of the program that made them.
- Encryption app files. These open with the app that created them, unless they were made as a self-opening package.
If you received a file from someone using Document Key, they can send it as a self-opening share package, which needs only the password, or as a standard AES-256 encrypted ZIP that opens in most archive tools.
Fix 4: Check for EFS encryption
Files encrypted with Windows EFS do not ask for a password. They open silently for the account that encrypted them and show "Access is denied" for everyone else. This catches people out when:
- Windows has been reinstalled, creating a new account with a new certificate.
- A drive has been moved to a new computer.
- An administrator reset the account password, which can cut off access to the EFS keys.
The fix is the certificate backup you exported when you first used EFS. Our guide on EFS encrypted files access denied walks through importing it.
Fix 5: Rule out a changed or forgotten password
If none of the above helps, the password may simply be different from the one you have. Try older passwords you used around the time the file was made, and look for notes or a password manager entry. If you used an encryption app with a recovery key, now is the time to use it. Our article on what to do when you forget the password to an encrypted file covers the realistic options.
Avoid "password recovery" downloads that promise to unlock any file. Strong encryption cannot be bypassed this way, and these tools are a common source of malware.
Prevent it happening again
- Save recovery details. Keep the recovery key for any encryption app, the BitLocker recovery key and your EFS certificate somewhere other than the PC.
- Store passwords in a password manager rather than relying on memory.
- Test before you delete the original. After encrypting something important, open it once with the password to confirm it works.
- Keep backups. A second copy of an encrypted file, on another drive, protects you from corruption.
- Agree a format with the people you share with. A self-opening package or AES ZIP avoids "I don't have the right program" problems.
Document Key includes a password strength meter, a generator and a recovery key, so the password you set is strong and there is a way back if you lose it.
Frequently asked questions
Why does my password not work when I know it is right?
The usual causes are Caps Lock, a different keyboard layout, an extra space from copy and paste, or a password changed by whoever encrypted the file.
Can email or cloud sync damage an encrypted file?
Yes, an interrupted download or sync can leave an incomplete file. Compare the file size with the original and download it again.
Why does the file open on one PC but not another?
The second PC may lack the program that made the file, or the file may have been encrypted with EFS, which only opens for the original Windows account.
