Password protection in Word works by encrypting your document so it cannot open without the correct password

When you password-protect a Word document, you are encrypting the file itself. Anyone who tries to open it will see a password prompt before they can read, edit, or print anything inside. The encryption happens on your computer — Microsoft does not store your password or hold a copy of your document, so if you forget the password, the document cannot be recovered.

Word offers two types of protection. The first — encryption with a password — locks the entire document and requires the password to open it at all. The second — a password to modify — lets anyone open the document and read it, but requires a password to make changes. This guide covers the first type, which is the stronger protection.

Key Takeaways

  • On Windows, go to File > Info > Protect Document > Encrypt with Password, type your password twice, and save the file.
  • On Mac, go to File > Properties, check "Protect this document", enter your password twice, and save.
  • Write your password down and store it somewhere safe — if you forget it, you cannot open the document again.
  • The password must be entered every time someone opens the document, even if they have opened it before.
  • Password protection works the same way whether you use Word 2019, Word 2021, or Microsoft 365 (the subscription version).

How to protect a Word document on Windows

Open the document you want to protect in Word. Click the File tab at the top left of the screen. From the menu on the left, click Info.

On the right side of the screen, you will see a button labeled Protect Document with a dropdown arrow next to it. Click that arrow and select Encrypt with Password from the list. A dialog box will appear asking you to enter a password.

Type your password into the box. Use a combination of uppercase letters, lowercase letters, numbers, and symbols — something like BlueSky$42Oak is stronger than password123. Click OK. Word will ask you to type the password again to confirm it. Type it exactly the same way and click OK again.

Save the document by pressing Ctrl+S or by clicking File > Save. The encryption takes effect when you save. Close the document and reopen it — you should now see a password prompt before the document opens.

How to protect a Word document on Mac

Open the document you want to protect in Word. Click File in the menu bar at the top of the screen, then click Properties from the dropdown menu.

A dialog box will open. Look for the checkbox labeled Protect this document and click it to turn it on. Two password fields will appear below it. Type your password into the first field, then type it again into the second field to confirm. Use a strong password with a mix of uppercase, lowercase, numbers, and symbols.

Click OK to close the dialog. Save the document by pressing Command+S or by clicking File > Save. The next time you or anyone else tries to open this document, Word will ask for the password.

What happens when someone tries to open a protected document

When a protected Word document is opened, a password dialog appears before anything else loads. The person opening it must type the correct password and click OK. If they type the wrong password, they will see an error message and can try again. There is no limit to how many times they can try, but each wrong attempt requires them to click OK and start over.

Once the correct password is entered, the document opens normally. The password must be entered again the next time the document is opened — Word does not remember it between sessions. If the person closes the document and reopens it an hour later, they will need to enter the password again.

How to change or remove a password

To change the password on an already-protected document, open it and enter the current password when prompted. Once the document is open, follow the same steps you used to set the password in the first place — go to File > Info > Protect Document > Encrypt with Password (on Windows) or File > Properties > Protect this document (on Mac). You will be asked to enter a new password. Type the new password twice and save the document.

To remove the password entirely, open the protected document and enter the current password. Then go to File > Info > Protect Document > Encrypt with Password (Windows) or File > Properties (Mac). Leave the password field blank and click OK. Save the document. The next time you open it, no password will be required.

Things to know before you password-protect a document

Write down your password and store it somewhere safe — in a physical notebook, a password manager, or another find location. If you forget the password, there is no way to recover it. Microsoft cannot reset it, and no tool can break the encryption. The document will be permanently locked.

Password protection encrypts the document on your computer, but it does not protect it while it is being sent by email or stored in the cloud. If you email a protected Word document, the email itself is not encrypted — only the document file is. If you store it in OneDrive or Google Drive, the file is encrypted, but the cloud service can still see that the file exists and when it was last changed.

The password is case-sensitive, which means BlueSky42 is different from bluesky42. If you type it differently when opening the document than when you set it, Word will reject it as incorrect.

Frequently Asked Questions

Can I password-protect a document that is already open in Word?

Yes. You do not need to close the document first. Just go to File > Info > Protect Document > Encrypt with Password (Windows) or File > Properties (Mac), enter your password, and save. The protection takes effect when ready when you save.

What if I share a password-protected document with someone and they forget the password?

They will not be able to open the document. There is no recovery option. You would need to open the document yourself (using your password), remove the password, and send them the unprotected version. Then you can add a new password if needed.

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

No. If you convert a Word document to PDF, the Word password protection does not carry over. PDFs have their own password protection system, which you would set up separately in your PDF reader or converter.

Can I password-protect a document in Word Online?

Word Online (the browser version) does not have a built-in password protection feature. You must use the desktop version of Word on Windows or Mac. If you only have access to Word Online, read the document to your computer, protect it in the desktop app, and then upload it back to the cloud.

Will the password protect my document if I share it through OneDrive or SharePoint?

Yes. The password protection is part of the file itself, not the sharing settings. Even if you share the document with others through OneDrive or SharePoint, they will still need to enter the password to open it. The password and the sharing permissions are separate layers of security.