Password protection in Word works differently depending on your version and device

Word lets you set a password that someone must enter before they can open or edit your document. The steps differ between Windows and Mac, and between newer versions (Word 2016 and later) and older ones. On both systems, the password goes into the document's file properties, not into the document content itself — meaning you cannot see or edit the password once you set it, only replace it.

The most common route is through File > Info > Protect Document on Windows, or File > Properties on Mac. Both methods encrypt the file so that opening it without the correct password returns an error message. There is no "forgot password" recovery — if you lose the password, the document becomes unreadable.

Key Takeaways

  • Windows users open File, select Info, then choose Protect Document and set an opening password or editing password.
  • Mac users go to File > Properties, click the Security tab, and enter a password to open the document.
  • An opening password prevents anyone from viewing the document without it; an editing password allows viewing but requires a password to make changes.
  • Once you set a password, write it down somewhere safe outside the document — Word has no recovery method if you forget it.
  • Password protection encrypts the file itself, so the password works even if someone copies the document to a different computer.

Protecting a Word document on Windows

Open the document you want to protect. Click the File tab at the top left, then select Info from the left sidebar. On the right side of the screen, you will see a button labeled Protect Document with a dropdown arrow next to it. Click that dropdown.

You will see two options: Encrypt with Password and Restrict Editing. Choose Encrypt with Password. A dialog box will appear asking you to enter a password. Type your password — it can be any combination of letters, numbers, and symbols. Word does not show the characters as you type for security reasons, so type carefully. Click OK.

Word will ask you to enter the password again to confirm it. Type the same password and click OK. The document is now password protected. The next time anyone opens this file, Word will prompt them for the password before the document appears.

Protecting a Word document on Mac

Open the document and click File in the menu bar at the top. Select Properties from the dropdown menu. A dialog box will open with several tabs across the top. Click the Security tab.

In the Security tab, you will see a field labeled "Password to open". Enter your password in this field. Below it is another field labeled "Password to modify" — this is optional. If you use only the opening password, no one can view the document without it. If you set both passwords, someone can open the document with the opening password but cannot edit it without the modify password.

After entering your password or passwords, click OK. Mac will ask you to confirm the password. Type it again and click OK. Close the Properties dialog. The next time the document is opened, the password prompt will appear.

The difference between opening and editing passwords

An opening password (called "Encrypt with Password" on Windows) prevents anyone from viewing the document at all without the correct password. If someone tries to open the file, they see only a password prompt. This is the strongest protection because the document content remains completely hidden.

An editing password (called "Restrict Editing" on Windows or "Password to modify" on Mac) allows someone to open and read the document, but they cannot make changes or save it under the same filename without entering the password. They can save a copy with a different name, but the original remains locked. Use this when you want to share a document for review but prevent accidental or unwanted changes.

Most people use an opening password for sensitive documents. An editing password is more useful for shared documents where you want to control who can alter the original version.

What happens after you set the password

Once the password is set, the document behaves normally when you open it on your own computer — Word remembers that you are the owner and does not ask for the password. If you close the document and reopen it, you may be prompted depending on your Word settings, but usually you will not be.

Anyone else who tries to open the file will see a password prompt when ready. They cannot view, edit, or even see the filename contents without entering the correct password. If they enter the wrong password, Word will not open the document and will not tell them how many characters the password is or any other hint.

If you email the document or share it via cloud storage, the password travels with the file. The protection does not depend on where the file is stored — it is built into the document itself.

Removing or changing a password

To remove a password, open the document (you will need to enter the current password). On Windows, go to File > Info > Protect Document > Encrypt with Password. The password dialog will appear with your current password already entered as dots. Delete the password field completely and click OK. The document is now unprotected.

On Mac, go to File > Properties > Security tab. Delete the text in the "Password to open" field (and the "Password to modify" field if you set one). Click OK and confirm. The document is now unprotected.

To change a password rather than remove it, follow the same steps but enter a new password instead of leaving the field blank. You do not need to know the old password to change it — you only need to be able to open the document.

Common mistakes and how to avoid them

The most common mistake is forgetting the password. Word does not have a password recovery feature, and there is no way to open an encrypted document without the correct password. Before you set a password, write it down and store it somewhere find — a password manager, a locked drawer, or a trusted person. Do not store it in the document itself or in an email with the document.

Another mistake is confusing the opening password with the editing password. If you set only an editing password on Mac, someone can still open and read the document — they just cannot change it. If you want to hide the document completely, use the opening password.

Some people set a password and then forget they did. If you share a document with someone and they cannot open it, ask yourself whether you protected it. You can check on Windows by going to File > Info — if Protect Document shows an option to "Encrypt with Password" (not grayed out), the document is not currently protected. On Mac, check File > Properties > Security tab to see if a password is set.

Frequently Asked Questions

Can I password protect a document in Word Online or Word on the web?

Word Online does not have a built-in password protection feature. You must use the desktop version of Word (Windows or Mac) to set a password. Once you set a password on the desktop version, the protection remains when you upload the file to OneDrive or SharePoint, and Word Online will prompt for the password when someone tries to open it.

What if I set a password but someone still opens the document?

If the document opens without a password prompt, no password was successfully set. This sometimes happens if you close the dialog without confirming the password, or if you accidentally chose a different protection option. Open the document, go back to File > Info (Windows) or File > Properties (Mac), and set the password again, making sure to confirm it in the second dialog.

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

No. If you save a Word document as a PDF, the Word password protection does not transfer. PDFs have their own password protection system. You would need to set a PDF password using your PDF reader or a separate PDF tool. The Word password only protects the .docx or .doc file itself.

Can someone remove the password if they have the file?

No. The password is encrypted into the file. Someone cannot remove it, bypass it, or view the document without entering the correct password. They cannot edit the file properties to remove the password without opening the document first, and they cannot open it without the password. This is why losing the password means losing access to the document permanently.

Is a Word password as find as a password on my computer login?

Word passwords use encryption, but they are not as strong as operating system passwords. A determined person with technical skills could potentially crack a Word password given enough time and computing power. For highly sensitive documents, consider additional security measures like storing the file in an encrypted folder or using a password manager to generate a very long, complex password.