Password protection in Word works differently depending on which version you use
The steps to add a password to a Word document depend on which version you have. Microsoft 365 (the subscription version) and Word 2021 (the one-time purchase) both use the same method: the Info menu. Word Online, which runs in your browser, has a separate process. All three methods encrypt your document so that anyone opening it must type the correct password first.
Password protection in Word does not prevent you from editing the document yourself — it only stops others from opening it without the password. If you want to let people read the document but not change it, Word has a different feature called "Restrict Editing" that works alongside password protection.
Key Takeaways
- In Microsoft 365 and Word 2021, go to File, then Info, then Protect Document, then Encrypt with Password to set a password.
- Word Online requires you to download the document, password-protect it in the desktop version, then upload it back to OneDrive or SharePoint.
- A password-protected Word document cannot be opened without the correct password, but you will need to remember it — Word cannot recover a lost password.
- Password protection encrypts the entire document, so losing the password means losing access to the file permanently.
How to password-protect a Word document in Microsoft 365 or Word 2021
Open the document you want to protect. Click the File tab in the top left corner. From the menu on the left, click Info. You will see a button labeled Protect Document with a dropdown arrow next to it. Click that dropdown and select Encrypt with Password.
A dialog box will appear asking you to enter a password. Type your password and click OK. Word will ask you to type the password again to confirm it. Once you confirm, click OK again. Save the document — use Ctrl+S on Windows or Command+S on Mac. The password is now active. The next time anyone opens this file, Word will prompt them to enter the password before the document appears.
How to password-protect a Word document in Word Online
Word Online does not have a built-in password protection feature. If your document is stored in OneDrive or SharePoint, you will need to download it to your computer first. Click the Download button (or Download a Copy depending on your version) and save the file to your computer.
Open the downloaded file in the desktop version of Word — either Microsoft 365 or Word 2021. Follow the steps in the section above to add a password. Once you have saved the password-protected version, you can upload it back to OneDrive or SharePoint if you want. From that point forward, anyone accessing the file through Word Online will still need the password to open it.
What happens when someone tries to open a password-protected document
When a person opens a password-protected Word file, they see a dialog box immediately asking for the password. They must type the correct password to proceed. If they enter the wrong password, Word tells them it is incorrect and lets them try again. There is no limit to the number of attempts, so someone could theoretically try many passwords, but Word does not make this easy or fast.
Once the correct password is entered, the document opens normally. The person can then read, edit, and save the document as usual — the password only controls access to opening the file, not what happens after it is open.
How to remove a password from a Word document
Open the password-protected document and enter the password when prompted. Once the document is open, go to File, then Info, then click the Protect Document dropdown and select Encrypt with Password again. The dialog box will appear with your current password already filled in as dots. Delete the dots so the field is empty, then click OK. Save the document. The password is now removed.
This process works the same way whether you are using Microsoft 365 or Word 2021. You do not need to know the original password to remove it — you only need to be able to open the document, which requires entering the current password first.
Important limits and things to know about Word passwords
Word passwords are case-sensitive, meaning "Password" and "password" are two different passwords. Use a combination of uppercase letters, lowercase letters, numbers, and symbols to make your password harder to guess. Avoid using words from the dictionary or personal information like birthdays or names.
If you forget the password, there is no way to recover it or bypass it — Word's encryption is designed to make this impossible. You will not be able to open the document. Keep your password written down somewhere safe, or use a password manager to store it. If you lose access to a critical document this way, your only option is to contact Microsoft Support, though they cannot decrypt the file for you either.
Password protection versus other Word security features
Word has several security features that work differently from password protection. Restrict Editing lets you password-protect specific parts of a document while leaving other parts editable, or it can make the entire document read-only. Mark as Final suggests that a document should not be edited further, but it does not prevent editing — anyone can turn this flag off. Information Rights Management (IRM) is available in some versions and lets you control who can read, edit, print, or copy a document, though it requires a Microsoft 365 subscription and additional setup.
For most situations, password protection is the simplest choice. Use it when you want to keep the document completely private. Use Restrict Editing when you want to share the document but control what parts people can change. Use Mark as Final when you want to signal that a document is finished but do not need to enforce that technically.
Frequently Asked Questions
Can I password-protect just part of a Word document?
No, password protection locks the entire document. If you want to protect only certain sections, use Restrict Editing instead. Go to File, then Info, then Protect Document, then Restrict Editing. This lets you choose which parts of the document people can edit and which parts are locked.
What if I share a password-protected document and the recipient cannot open it?
Make sure you gave them the correct password and that they are typing it exactly as you specified — passwords are case-sensitive. If they are still having trouble, ask them to try copying and pasting the password instead of typing it, since this avoids mistakes. If they are using an older version of Word or a non-Microsoft program to open the file, they may encounter compatibility issues.
Does password protection work if I email the document?
Yes. The password protection stays with the file no matter how it is sent. Email does not remove or weaken the encryption. The recipient will see the password prompt when they open the attachment, just as they would if they opened the file from their computer.
Can I change the password on a document that already has one?
Yes. Open the document and enter the current password. Go to File, Info, Protect Document, Encrypt with Password. Delete the current password and type a new one, then click OK. Save the document. The old password will no longer work.
Is a Word password as secure as a password on my computer login?
Word passwords use encryption, but they are not as strong as operating system passwords. A determined person with technical skills could potentially crack a Word password given enough time and computing power. For highly sensitive documents, consider storing them in a password-protected folder or using additional encryption software on top of Word's protection.