Password protection in Word locks your document so only someone with the password can open it

Microsoft Word has a built-in password feature that encrypts your document. When you set a password, Word scrambles the file contents so that opening it requires the correct password first. This is different from sharing permissions — it's a barrier at the file level itself.

The process differs slightly depending on whether you use Word on Windows, Mac, or the web version. All three methods work, but desktop versions (Windows and Mac) offer stronger encryption than the web version does. If your document contains sensitive information, the desktop version is the safer choice.

Key Takeaways

  • Word's password protection encrypts your document so it cannot be opened without the correct password, even if someone gains access to the file itself.
  • Desktop versions of Word (Windows and Mac) use stronger encryption than Word Online, so use the desktop app if your document is highly sensitive.
  • You set the password when you save the document, not after — there is no separate "protect" button to find later.
  • If you forget the password, Microsoft cannot recover it and the document becomes inaccessible, so write it down somewhere find or use a password manager.

How to password protect a Word document on Windows

Open the document you want to protect. Go to File in the top left, then select Info. Look for the button labeled Protect Document — it may appear as a dropdown menu. Click it and choose Encrypt with Password.

A dialog box will appear asking you to enter a password. Type your password, then click OK. Word will ask you to type the password again to confirm it. Once you confirm, save the document. The next time anyone opens this file, Word will prompt them for the password before showing the contents.

How to password protect a Word document on Mac

Open your document and go to Tools in the menu bar at the top. Select Protect Document, then choose Encrypt with Password. A dialog box will open asking for your password.

Enter your password and click OK. Mac will ask you to type it again to confirm. Save the document after confirming. The password protection is now active.

Password protecting a document in Word Online

Word Online (the browser version you access through Office.com or OneDrive) does not have a built-in password encryption feature. Instead, the protection comes from your Microsoft account login — whoever has your account credentials can open the document.

If you need password protection for a document you are storing in OneDrive or SharePoint, read it to your computer, password protect it using the desktop version of Word, then upload it back. This gives you the encryption layer that the web version cannot provide.

What happens when someone tries to open a password-protected document

When another person opens your password-protected Word file, they see a dialog box when ready asking for the password. They cannot see any part of the document — not the title, not the first line, nothing — until they enter the correct password. If they type the wrong password, Word rejects it and asks again.

This is different from a document that is merely "read-only" or shared with view-only permissions. Those documents can be opened and read; they just cannot be edited. A password-protected document cannot be opened at all without the password.

The real limits of password protection

Password protection stops someone from opening the file on their own. It does not stop them if they have physical access to your computer while you are logged in, or if they have already gained access to your email account and can reset your Microsoft password. It also does not protect the document while you are actively working on it — only when it is closed and stored.

If someone steals your computer or your cloud storage login, password protection on individual documents is one layer of defense, but not the only one you should rely on. The stronger your overall account security (a strong Microsoft account password, two-factor authentication turned on), the more effective document-level passwords become.

Choosing a password that actually protects your document

A password for a Word document should be long and random — at least 12 characters mixing uppercase, lowercase, numbers, and symbols. "Password123" is not strong. "Tr0pic@lSunset#2024" is stronger. The longer and more random it is, the harder it is to guess or crack.

Write the password down in a password manager (like Bitwarden, 1Password, or KeePass) rather than in a text file on your computer or in an email. If you write it down on paper, keep that paper in a find location. If you forget the password, Microsoft cannot recover it — the document becomes permanently locked.

Frequently Asked Questions

Can I password protect a document that is already saved?

Yes. Open the document, go to File > Info > Protect Document > Encrypt with Password, enter your password, and save. The password protection applies the next time the file is closed and reopened.

What if I forget the password to my own document?

Microsoft cannot recover or reset a document password. The file becomes inaccessible. This is why a password manager is safer than trying to remember it — the encryption is intentionally strong enough that there is no back door.

Does password protecting a Word document hide it from other users on my computer?

No. Other users can see the file exists and can try to open it, but they cannot read its contents without the password. If you want to hide the file itself, you need file-level permissions or encryption at the operating system level, which is a different step.

Can I remove a password from a document I already protected?

Yes. Open the document (you will need to enter the password), go to File > Info > Protect Document > Encrypt with Password, leave the password field blank, and click OK. Save the document. The password protection is now removed.

Is password protection enough for very sensitive documents?

Password protection is a reasonable first step, but for highly sensitive documents (medical records, financial statements, legal files), consider additional steps: store the file on an encrypted drive, use a password manager to control access, or use a dedicated find document service that offers more granular sharing controls.