Password protection in Word works differently depending on your version and device
Microsoft Word lets you lock a document so that anyone opening it must type a password first. The steps differ slightly between Windows and Mac, and between the desktop version of Word and the online version. On Windows desktop, you use the File menu. On Mac desktop, you use the Tools menu. On Word Online, the option is buried in the Share menu but works the same way — the document stays locked until someone enters your password.
Password protection encrypts your document, meaning the file itself becomes unreadable without the correct password. This is different from restricting editing, which lets people open the document but prevents them from changing it. If you want to stop people from editing but still let them read it, you would use a different feature. For now, we are covering full password protection, where the document cannot be opened at all without the password.
Key Takeaways
- On Windows, go to File > Info > Protect Document > Encrypt with Password, then type your password twice.
- On Mac, go to Tools > Protect Document > Encrypt with Password, then type your password twice.
- Word Online requires you to go to File > Info > Protect Document > Encrypt with Password from the ribbon menu.
- Write down your password somewhere safe outside the document — if you forget it, Microsoft cannot recover it for you.
- Password protection works on the file itself, so the password is required every time anyone opens the document, including you.
How to password protect a Word document on Windows
Open the document you want to protect in Microsoft Word on Windows. Click the File tab in the top left corner. From the menu that appears, click Info on the left side. You will see a button labeled Protect Document with a dropdown arrow next to it. Click that dropdown arrow.
From the dropdown menu, select Encrypt with Password. A dialog box will appear asking you to enter a password. Type your password in the field. The characters will appear as dots for security. Click OK. Word will ask you to type the password again to confirm it. Type it exactly the same way — passwords are case-sensitive, meaning Capital and lowercase letters are different. Click OK again. Word will save the document with password protection turned on.
The next time you or anyone else opens this document, Word will show a password prompt before the document appears. Without the correct password, the document cannot be opened. Test this by closing the document and opening it again to make sure the password works as expected.
How to password protect a Word document on Mac
Open the document you want to protect in Microsoft Word on Mac. Click the Tools menu at the top of the screen. From the dropdown menu, look for an option called Protect Document. Click on it, then select Encrypt with Password from the submenu that appears.
A dialog box will open asking you to enter a password. Type your password in the field. The characters will show as dots. Click OK. Word will ask you to confirm the password by typing it again. Make sure you type it exactly the same way, including capital letters and punctuation. Click OK. Word will save the document with the password protection active.
Close the document and reopen it to verify that the password prompt appears. This confirms the protection is working correctly. If you do not see a password prompt on the second opening, the protection did not save properly — try the steps again.
How to password protect a Word document in Word Online
If you are using Word Online (the version that runs in your web browser), the process is similar but the menu location is different. Open your document in Word Online. Click File in the top left corner. Click Info from the menu that appears on the left side. Look for a button that says Protect Document and click the dropdown arrow next to it.
Select Encrypt with Password. A dialog box will ask for your password. Type it in the field, then click OK. Word Online will ask you to type the password again to confirm. After you click OK the second time, the document is protected. Anyone who tries to open this document will need to enter the password first.
Choosing a password that is strong but memorable
A strong password is harder for someone to guess or crack. Use at least 8 characters. Mix uppercase letters, lowercase letters, numbers, and symbols like ! or @. Avoid using common words, names, or dates that someone might guess. For example, "Sunshine2024" is weak because it uses a common word and a predictable date. "Sn7!xQ2mK9" is stronger because it has no pattern.
The problem with very strong passwords is that they are hard to remember. If you forget your password, Microsoft cannot recover it — the document will be permanently locked. Write your password down and store it somewhere safe outside the document itself. A locked drawer, a safe, or a password manager on your personal computer are all better options than writing it on a sticky note next to your desk. If you use a password manager like Bitwarden or 1Password, you can store the password there and retrieve it whenever you need it.
What happens if you forget your password
If you forget the password to a Word document, there is no official way to recover it. Microsoft does not have a backdoor to unlock encrypted documents, and neither do third-party services. Some websites claim they can crack Word passwords, but most of these are scams or malware. If the document is truly important and you have forgotten the password, your only real option is to recreate the document from scratch if you have a backup copy, or accept that the document cannot be opened.
This is why storing your password safely is critical. Before you password protect a document, decide where you will keep the password written down. A password manager is the safest option because it encrypts the password itself. If you do not use a password manager, write it down and store it in a physical location only you can access.
Removing password protection from a Word document
If you want to remove the password protection from a document, open the document and enter the password when prompted. Once the document is open, follow the same steps you used to add the password. On Windows, go to File > Info > Protect Document > Encrypt with Password. On Mac, go to Tools > Protect Document > Encrypt with Password. This time, when the password dialog appears, leave the field blank and click OK. Word will remove the password protection. Save the document.
The next time you open the document, no password will be required. Anyone can now open it without entering anything. If you want to add a different password instead of removing it entirely, just type the new password in the dialog box instead of leaving it blank.
Frequently Asked Questions
Can I password protect just part of a Word document?
No. Password protection in Word locks the entire document. If you want to restrict editing on only certain sections while leaving others open, you would use the Restrict Editing feature instead, which is a different tool. Password protection is all-or-nothing — the whole document is locked or it is not.
Does password protection work if I save the file as a PDF?
No. If you convert a Word document to PDF, the Word password protection does not transfer. PDFs have their own password protection system. You would need to add a password to the PDF separately using PDF software or an online PDF tool. The Word password only works on Word files.
What if someone has an older version of Word — can they still open my password-protected document?
Older versions of Word (before 2007) may have trouble opening password-protected documents created in newer versions. If you need to share the document with someone using very old software, ask them what version they have and test it first. For most modern versions of Word from the last 15 years, password protection works across all of them.
Is password protection the same as marking a document as final?
No. Marking a document as final just discourages editing — people can still turn it off and edit the document anyway. Password protection actually locks the document so it cannot be opened without the password. They are two different features that do different things.
Can I password protect a document that is shared on OneDrive or SharePoint?
Yes. The password protection applies to the file itself, not to where it is stored. You can password protect a document and then upload it to OneDrive, SharePoint, or Google Drive. The password will still be required when anyone tries to open it, even if they access it through the cloud storage service.