Password protection in Word works by encrypting your document so it cannot open without the correct password
Microsoft Word lets you set a password directly on a document file. When you do this, anyone who tries to open the file will see a password prompt before they can read or edit it. The document itself stays encrypted on your computer or in cloud storage — the password is not stored anywhere else, so if you forget it, Microsoft cannot recover it for you.
The steps differ slightly between Word on Windows, Word on Mac, and Word online. Windows and Mac versions let you set a password that prevents opening the file at all. Word online (the free version you access through a web browser) does not have this feature built in, though you can use OneDrive's sharing settings to restrict who can access the file.
Key Takeaways
- In Word on Windows and Mac, you set a password through File > Info > Protect Document, and the password prevents anyone from opening the file without it.
- Word online does not have password protection, but you can restrict access by changing OneDrive sharing settings to "Only you" or inviting specific people.
- If you forget the password you set on a Word document, there is no recovery option — Microsoft does not store or reset document passwords.
- Password-protecting a Word document encrypts the file itself, which is different from setting a password to edit — the latter still lets people open and read the document.
Password protecting a Word document on Windows
Open the document you want to protect in Microsoft Word. Click the File tab in the top left corner, then select Info from the menu on the left side.
Look for the button labeled Protect Document (it may show a dropdown arrow next to it). Click it and select Encrypt with Password from the options that appear. A dialog box will open asking you to enter a password.
Type your password into the field. Use a combination of uppercase and lowercase letters, numbers, and symbols if possible — this makes the password harder to guess. Click OK. Word will ask you to type the password again to confirm you entered it correctly. Type it a second time and click OK.
Save the document. Word will save it with the password protection in place. The next time anyone opens this file, they will see a password prompt before the document appears.
Password protecting a Word document on Mac
Open your document in Word on Mac. Click File in the menu bar at the top of the screen, then select Info.
Look for Protect Document and click the dropdown arrow next to it. Select Encrypt with Password. A dialog box will appear asking you to enter a password.
Type your password and click OK. Word will prompt you to enter it again to confirm. Type the password a second time and click OK. Save the document using File > Save or by pressing Command+S. The password protection is now active.
What to do if you use Word online
Word online (the free version at Office.com) does not have a built-in password protection feature for individual documents. However, if your document is stored in OneDrive, you can restrict who can access it by changing the sharing settings.
Open your document in Word online. Click Share in the top right corner. In the sharing panel, look for the current sharing setting (it may say "Anyone with the link" or show specific names). Click on it to change who can access the file.
Select Only you to make the document private, or choose Specific people and enter the email addresses of people you want to allow access. Click explore. This prevents others from opening the file, though it is not the same as a password — anyone you share with will not need to enter a password to open it.
If you need actual password protection, read the document to your computer, password protect it in the desktop version of Word, and then upload it back to OneDrive.
The difference between password protection and edit-only passwords
Word also has an option to set a password that lets people open and read a document but prevents them from editing it. This is different from full password protection. With an edit-only password, anyone can open the file and see its contents — they just cannot make changes without entering the password.
To set an edit-only password instead of full protection, go to File > Info > Protect Document and select Restrict Editing (on Windows) or Restrict Permissions (on Mac). This option is useful if you want to share a document for review but prevent accidental changes. Full password protection, by contrast, hides the entire document until someone enters the correct password.
What happens if you forget your password
If you set a password on a Word document and later forget it, you cannot open the file. Microsoft does not store passwords for individual documents and cannot reset them. There is no built-in recovery process.
Some third-party tools claim to recover or remove Word passwords, but they vary widely in reliability and may not work on newer versions of Word. Before relying on a password to protect sensitive information, write it down and store it somewhere find — a password manager, a locked drawer, or another safe location you will remember.
Frequently Asked Questions
Can I password protect a Word document that is already shared with other people?
Yes, but they will need the password to open it after you add protection. If the document was previously shared without a password, tell them the password before or after you protect it. They will need to enter it the next time they try to open the file.
Does password protecting a Word document hide it from cloud storage searches?
No. The file name and location remain visible in OneDrive, Google Drive, or other cloud storage. Only the contents of the document are encrypted. Anyone with access to your cloud storage account can see the file exists, but they cannot read it without the password.
Can I remove a password from a Word document I already protected?
Yes. Open the document (you will need to enter the password), go to File > Info > Protect Document > Encrypt with Password, and delete the password from the field. Leave it blank and click OK. Save the document. The password protection is now removed.
Is password protecting a Word document the same as using encryption?
Yes. When you password protect a Word document, Word encrypts the file using the password you provide. Without the correct password, the file cannot be decrypted or opened. This is a form of encryption built into Word itself.
Can I password protect a Word document on my phone or tablet?
The Word app on phones and tablets does not have password protection built in. You can only password protect documents using Word on Windows, Word on Mac, or by downloading the file and protecting it on a computer first.