The fastest way to lock a Word document

To password protect a Word document, open the file in Microsoft Word, go to File > Info, select Protect Document, and choose Encrypt with Password. Type your password twice and save the file. The next time someone opens it, Word will ask for the password before showing any content.

This method works the same way in Word for Windows, Word for Mac, and Word Online. The password you set is the only way to open the document — if you forget it, Microsoft cannot recover it for you, so write it down somewhere safe.

If you use Word Online through Microsoft 365, the process is slightly different. Open the document, click File > Info, select Protect Document, then Restrict Access. You can then set who can view or edit the file. This method uses your Microsoft account permissions instead of a separate password.

Key Takeaways

  • Password protection in Word prevents anyone from opening the document without entering the correct password first.
  • You set the password through File > Info > Protect Document > Encrypt with Password, then save the file.
  • Microsoft cannot recover a forgotten password, so store it somewhere you will remember.
  • Word Online offers a different protection method using account-based access instead of a single password.
  • Password protection encrypts the file itself, not just the content — the entire document remains locked until the password is entered.

Protecting a document in Word for Windows

Open the Word document you want to protect. Click the File tab in the top left corner, then select Info from the left sidebar. You will see a button labeled Protect Document with a dropdown arrow next to it.

Click the dropdown and select Encrypt with Password. A dialog box will appear asking you to enter a password. Type your password in the first field, then type it again in the second field to confirm it. Click OK. Save the document using Ctrl+S or File > Save. The password protection is now active.

The next time you or anyone else opens this file, Word will display a password prompt before the document loads. Without the correct password, the file cannot be opened or viewed.

Protecting a document in Word for Mac

Open your Word document and click the File menu at the top. Select Info from the dropdown. Look for the Protect Document button — on Mac it may appear as a shield icon or under a menu labeled Protect.

Click Encrypt with Password. Enter your password in the dialog that appears, then enter it again to confirm. Click OK and save the file. The process is nearly identical to Windows, though the menu layout may look slightly different depending on your Word version.

Using password protection with Word Online

If you store your document in OneDrive or SharePoint and open it through Word Online, password encryption works differently. Open the document, click File, then Info. Select Protect Document and choose Restrict Access.

This method does not use a single password. Instead, you choose specific people who can view or edit the file, and Word uses your Microsoft 365 account to control access. Anyone not on your permission list cannot open the document, even if they have the file itself. This approach is more flexible if you need to share the document with some people but not others, since you can change permissions without creating a new password.

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

When a password-protected Word file is opened, a dialog box appears immediately asking for the password. The person opening the file must type the exact password — Word is case-sensitive, so "Password" is different from "password". If the wrong password is entered, Word displays an error message and returns to the password prompt.

There is no limit to how many times someone can try to guess the password. Word does not lock the file after a certain number of failed attempts. This means a weak password can be guessed through trial and error, so choose something that is not a common word or date.

Removing or changing a password

To remove password protection from a document, open the file and enter the password when prompted. Once the document is open, go to File > Info > Protect Document > Encrypt with Password. The password field will be empty. Leave it blank and click OK, then save the file. The password protection is now removed.

To change the password, follow the same steps but enter a new password instead of leaving the field blank. Save the file, and the new password will take effect immediately.

Password protection versus other Word security features

Word offers several ways to control who can access or edit a document. Password encryption locks the entire file — no one can open it without the password. This is different from Mark as Final, which discourages editing but does not prevent it, or Restrict Editing, which lets you choose which parts of a document people can change.

If you want to let someone view a document but not edit it, password protection is not the right tool. Instead, use Restrict Editing under the Protect group on the Review tab. This lets you set specific permissions for different users without locking the entire file. For maximum security, combine password protection with restricted editing — password protection controls who can open the file, and restricted editing controls what they can do inside it.

Frequently Asked Questions

Can I open a password-protected Word document on my phone or tablet?

Yes, if you use the Word mobile app for iPhone, iPad, or Android. When you open a password-protected file, the app will ask for the password just like the desktop version. Word Online on a mobile browser also supports password-protected documents, though the experience is the same as on a computer.

What if I forget the password to my document?

Microsoft cannot recover or reset a password-protected Word document. If you forget the password, the file cannot be opened. This is by design — it means the encryption is strong enough that even Microsoft cannot bypass it. Store passwords in a password manager or write them down in a secure location.

Does password protection work if I save the file as a PDF?

No. If you convert a password-protected Word document to PDF, the Word password does not transfer. You would need to set a separate password in your PDF reader or converter. The Word password only applies to .docx and .doc files.

Can multiple people share the same password?

Yes, but it is not recommended for sensitive documents. Everyone who knows the password can open, edit, and save the file. If you need to track who made changes, use Word's Track Changes feature instead, or use Word Online's permission-based access so each person logs in with their own account.

Is password protection enough to keep my document secure?

Password protection encrypts the file and prevents unauthorized opening, but it does not protect against all threats. If someone gains access to your computer or cloud account, they can still find the file. For highly sensitive documents, store them in an encrypted folder, use a password manager, and keep your device and accounts secure with strong passwords and two-factor authentication.