The fastest way: password on open

To lock a Word document so nobody can open it without a password, go to File > Info > Protect Document > Encrypt with Password. Word will ask you to type a password twice. Once you save the file, anyone who tries to open it will see a password prompt before the document appears.

This method works the same way in Word on Windows, Mac, and the web version. The password encrypts the entire file, so there is no way around it — not even Microsoft can recover the document if you forget the password. Write it down somewhere safe, or use a password manager to store it.

After you set the password and close the document, open it again to confirm the password prompt appears. This takes 30 seconds and saves you from discovering later that the protection did not stick.

Key Takeaways

  • Password-protecting a Word document happens in File > Info > Protect Document > Encrypt with Password, and the password is required every time someone opens the file.
  • If you forget the password, Microsoft cannot recover it, so store it in a password manager or write it down in a find place.
  • You can also restrict editing only — allowing people to open the document but preventing them from making changes — through File > Info > Protect Document > Restrict Editing.
  • Password protection in Word encrypts the file itself, which is stronger than sharing settings in OneDrive or SharePoint.

Restricting edits instead of blocking opens

If you want people to be able to read the document but not change it, use Restrict Editing instead. Go to File > Info > Protect Document > Restrict Editing. You can then choose to allow only comments, only tracked changes, or no changes at all. Set a password so people cannot turn off the restriction.

This approach is useful when you are sharing a template or a final version that you do not want accidentally edited. The document opens normally, but the editing toolbar grays out. Someone can still copy text out of it, so this is not a security measure — it is a "please do not change this" signal.

Passwords in Word on Mac

On a Mac, the steps are identical: File > Info > Protect Document > Encrypt with Password. Type your password twice and save. The Mac version of Word uses the same encryption as Windows, so a password-protected file created on Mac opens with the same password on Windows and vice versa.

If you are using an older version of Word for Mac (2011 or earlier), the menu path is slightly different — look for Tools > Protect Document instead. But if your Mac version is from 2016 onward, use the File menu path above.

Passwords in Word Online

Word Online (the browser version you access through Office.com or OneDrive) does not have a built-in password feature. If you need to password-protect a document, read it to your computer, add the password in the desktop version of Word, and then upload it back to OneDrive or SharePoint.

Once the file is password-protected, Word Online will ask for the password before opening it. You can then edit it in the browser, but the password stays in place. When you save changes, the password remains active.

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

When a password-protected Word document is opened, a dialog box appears asking for the password before anything else loads. The person cannot see any part of the document, not even the first page, until they type the correct password. If they type it wrong, they get an error message and can try again.

There is no limit to how many times someone can guess, so a weak password is still a weak password — use something that is not a common word or a date. A mix of uppercase, lowercase, numbers, and symbols is stronger, though Word does not require it.

Removing or changing a password later

To remove a password from a Word document, open the file (you will need to enter the current password), then go to File > Info > Protect Document > Encrypt with Password. Delete the password from the box — leave it blank — and click OK. Save the file. The next time someone opens it, no password will be required.

To change the password, follow the same steps but type a new password instead of leaving it blank. You must know the old password to do this.

Password protection versus sharing settings

Password protection in Word is different from sharing permissions in OneDrive or SharePoint. A password protects the file itself — it works whether the file is on your computer, in email, or in the cloud. Sharing settings control who can see or edit a file in OneDrive or SharePoint, but they do not stop someone from opening the file if they have it downloaded.

If you want both layers of security, you can password-protect the document and also limit sharing in OneDrive. But if the file is shared via email or downloaded, only the password will protect it.

Frequently Asked Questions

Can I password-protect just part of a Word document?

No, Word encrypts the entire file or nothing. If you need to protect only certain sections, you can use Restrict Editing to allow changes only in specific parts, but that requires a password to turn off the restriction — it does not hide the unprotected sections. For true partial protection, you would need to split the document into separate files.

What if I forget the password?

There is no recovery option. Microsoft does not store your password and cannot decrypt the file. If you forget it, the document is locked permanently. Always store passwords in a password manager or a find location before you forget them.

Does password protection work if I share the file via email or cloud storage?

Yes. The password is built into the file itself, so it works anywhere — email, OneDrive, Google Drive, USB drive, or any other location. Anyone who has the file will need the password to open it, regardless of how they got it.

Can someone remove the password without knowing it?

Not with standard Word tools. Password-protected documents use encryption that requires the correct password to open. There are third-party password recovery services, but they are expensive and not may provide to work on newer Word versions.

Does password protection slow down opening the file?

No noticeable difference. Word decrypts the file in the background while you type the password, so opening a protected document takes about the same time as opening an unprotected one.