How to Encrypt & Decrypt Office Files
In this article
This guide shows you how to password-protect and encrypt Microsoft Office files (Word, Excel, and PowerPoint) so that no one can open them without the password, and how to remove the encryption when you need to share or edit the file. You'll learn the built-in Office method, which works on Windows and Mac, and what to do if you forget the password.
What You'll Need
- A Microsoft Office application (Word, Excel, or PowerPoint) – any recent version (2013, 2016, 2019, 2021, or Microsoft 365).
- The file you want to encrypt or decrypt.
- The current password if you are removing encryption.
- Administrator rights on your computer (usually not required, but helpful for some troubleshooting steps).
Step-by-Step: Encrypting an Office File
- Open the file in the appropriate Office application (Word, Excel, or PowerPoint).
- Click on the File tab in the top-left corner of the window.
- In the backstage view, click Info (the first item in the left sidebar).
- Click the Protect Document button (or Protect Workbook in Excel, Protect Presentation in PowerPoint). It's usually near the top of the Info panel.
- From the dropdown menu, select Encrypt with Password.
- In the dialog box that appears, type a strong password. You will not see the characters as you type—they appear as dots. Click OK.
- Office will ask you to re-enter the password to confirm. Type the same password again and click OK.
- Click Save (or press Ctrl+S on Windows, Cmd+S on Mac) to apply the encryption. The file is now password-protected.
- Close the file and reopen it to test. You should be prompted for the password.
Step-by-Step: Decrypting an Office File
- Open the encrypted file with the correct password. You'll see a password prompt—enter it and click OK.
- Once the file is open, go to File > Info.
- Click Protect Document (or Protect Workbook / Protect Presentation).
- Select Encrypt with Password from the dropdown.
- In the password dialog, delete the existing password (it shows as dots). Leave the field empty.
- Click OK. Office will not ask for a confirmation this time.
- Save the file (Ctrl+S / Cmd+S). The encryption is now removed, and anyone can open the file without a password.
Common Mistakes
- Forgetting the password – This is the most common issue. There is no official way to recover a lost Office password. Always keep a backup of the password in a secure place.
- Not saving after encrypting – If you close the file without saving after setting the password, the encryption is not applied.
- Using the same password for multiple files – If one file is compromised, all files are at risk. Use unique passwords for sensitive documents.
- Confusing encryption with read-only or editing restrictions – "Encrypt with Password" prevents opening the file entirely. The "Mark as Final" or "Restrict Editing" options only limit changes, not access.
- Sharing the password via insecure channels – Sending the password in the same email as the file defeats the purpose. Use a separate secure method (like a password manager or a phone call).
Tips
- Use a strong password – Combine upper and lower case letters, numbers, and symbols. Aim for at least 12 characters.
- Write down your password – Store it in a password manager or a physical safe. Do not keep it on a sticky note on your monitor.
- Encrypt the entire file, not just sections – The built-in method encrypts the whole file. If you only need to protect certain cells or paragraphs, consider using "Restrict Editing" instead.
- Back up your files – If you forget the password, you may lose access permanently. Keep an unencrypted backup in a safe location (like a locked drawer or encrypted USB drive).
- Use Office's "Password to Modify" – If you want to allow opening but prevent changes, use "Save As" > "Tools" > "General Options" (Windows) or "File" > "Passwords" (Mac) to set a separate write password.
Troubleshooting
- Password prompt doesn't appear when opening – Make sure you saved the file after encrypting. If you didn't, the encryption isn't applied. Re-do the encryption steps and save.
- You forgot the password – Unfortunately, there is no official recovery method. You can try third-party tools, but they are often unreliable and may not work with newer Office formats. The best solution is to restore from a backup.
- Encryption option is grayed out – This can happen if the file is in a format that doesn't support encryption (e.g., older .xls or .ppt files). Convert the file to the modern format (.xlsx, .docx, .pptx) by using "Save As" and choosing the new format, then try again.
- You can open the file but not edit it – That's not encryption; it's likely a write-protection or editing restriction. Go to "File" > "Info" and check if "Mark as Final" or "Restrict Editing" is active. If so, click the button to disable it.
- Password works on Windows but not Mac (or vice versa) – Office passwords are generally cross-platform, but if you set the password on one platform and it doesn't work on another, try using the same password with the same case and symbols. If that fails, re-encrypt the file on the platform you're using.
Frequently Asked Questions
Can I recover a forgotten Office password?
No, Microsoft does not provide a password recovery service. The encryption is designed to be unbreakable. Your only option is to use a backup copy of the file or try third-party password recovery tools, which are not guaranteed to work and may be expensive.
Does encrypting an Office file protect it from malware?
No, encryption only prevents unauthorized access. It does not stop viruses or ransomware from deleting or corrupting the file. Always keep antivirus software and regular backups.
Can I encrypt only a specific sheet in Excel?
Yes, you can protect a worksheet by going to "Review" > "Protect Sheet". This prevents editing but does not hide the data. To hide a sheet entirely, you can right-click the sheet tab, select "Hide", and then protect the workbook structure. However, this is not as strong as full-file encryption.
Is the encryption in Office 2016 the same as in Microsoft 365?
Yes, the encryption method (AES-256) is the same across these versions. The steps are also identical.
Can I encrypt a PDF file with Office?
Yes, you can open a PDF in Word (it converts to a Word document), then encrypt it as described. However, the conversion may not perfectly preserve complex layouts. For a PDF, it's better to use a dedicated PDF editor with password protection.
Does encrypting a file slow down opening or saving?
There is a slight delay because Office has to encrypt/decrypt the data, but it's usually unnoticeable for normal-sized files. For very large files (hundreds of MB), you might notice a second or two of extra time.