Password protection in Word works at the file level, not the document content
When you password protect a Word document, you are locking the file itself — not hiding text within it. Anyone who tries to open the file will see a password prompt before they can read anything. Word offers two types of protection: one password to open the file, and a separate password to edit it. You can require both, either one, or neither.
The process is the same whether you use Word on Windows, Mac, or the web version. You do not need any special software or plugins. The protection uses encryption, which means the password cannot be bypassed by someone with basic computer knowledge — they would need the actual password to open the file.
Key Takeaways
- You set passwords through File > Info > Protect Document, not through a separate dialog or menu.
- An "open password" prevents anyone from reading the document without the password; an "edit password" lets people view it but not change it.
- If you forget the password, Word cannot recover it — you will need to recreate the document or contact whoever set the password.
- Password protection encrypts the file, so it works even if someone copies the file to another computer or email account.
Setting an open password on Windows
Open the document you want to protect in Word. Click the File tab at the top left, then click Info in the left sidebar. You will see a button labeled Protect Document with a dropdown arrow next to it. Click the arrow and select Encrypt with Password.
A dialog box will appear asking you to enter a password. Type your password and click OK. Word will ask you to type it again to confirm. Once you click OK the second time, the document is encrypted. The next time anyone opens this file — including you — they will need to enter that password first.
If you want to remove the password later, follow the same steps and leave the password field blank when the encryption dialog appears. Click OK twice, and the protection is gone.
Setting an open password on Mac
Open the document in Word and click File in the menu bar. Select Properties from the dropdown. In the Properties window, look for the Security tab and click it. You will see a checkbox labeled Encrypt Document Contents. Check that box.
Word will prompt you to enter a password. Type it and click OK, then type it again to confirm. The document is now password protected. On Mac, this is the only password option available — you cannot set a separate edit-only password the way you can on Windows.
Setting an edit-only password on Windows
If you want people to be able to open and read the document without a password, but prevent them from making changes, use an edit password instead. Open the document, go to File > Info > Protect Document, and this time click Restrict Editing.
A panel will open on the right side of the screen. Under Editing Restrictions, check the box that says Editing Restrictions, then choose Read Only from the dropdown menu. Click Yes, Start Enforcing Protection. Word will ask you to enter a password that people will need to know in order to edit the document. Type it twice to confirm.
Anyone who opens this document will be able to read it without a password, but if they try to edit it, Word will ask for the password. They can still copy text and take screenshots, but they cannot save changes to the file itself.
Using both passwords at once
You can combine an open password and an edit password, though this is less common. Set the open password first using the Encrypt with Password option. Then, after the file is encrypted, go back to File > Info > Protect Document > Restrict Editing and set the edit password as described above.
The result is that someone needs one password just to open the file, and a different password to make changes. This is useful if you want to share a document with a group where some people should only read it and others should be able to edit it — you give the open password to everyone and the edit password only to editors.
What happens when someone tries to open a protected document
When a password-protected Word file is opened, the person sees a dialog box that says Password Required. They type the password and click OK. If they enter the wrong password, Word tells them it is incorrect and lets them try again. There is no limit to how many times they can try, so a weak password can be guessed.
If the file has only an edit password, the document opens normally and displays a yellow banner at the top saying the document is read-only. The person can read everything, but if they try to make changes, Word will ask for the edit password before allowing any edits.
Password strength and what to avoid
Word does not enforce any rules about password length or complexity, so you can set a password as straightforward as "1" or as long as you want. However, a straightforward password is easier to guess. A strong password is at least 8 characters long and includes uppercase letters, lowercase letters, numbers, and symbols — for example, MyDoc#2024Blue.
Do not use passwords that are straightforward to guess, like your name, birthday, or common words. Do not write the password on a sticky note attached to your computer. If you are protecting a document that will be shared with others, use a password you can communicate securely — not in the same email as the document itself.
If you forget the password, Word cannot recover it. You will need to contact whoever set the password, or you will have to recreate the document from scratch. There is no back door or master password that Word support can use to unlock it.
Frequently Asked Questions
Can I password protect just one section of a Word document?
No. Word's password protection locks the entire file, not individual sections or paragraphs. If you need to protect only certain parts of a document, you can use the Restrict Editing feature to allow editing only in specific sections while locking others, but this does not use a password — it just prevents changes in the locked areas.
Does password protection work if I save the file as a PDF?
No. If you convert a password-protected Word document to PDF, the password protection does not carry over. You would need to set a new password on the PDF using your PDF reader or a separate PDF tool. The Word password only protects the .docx or .doc file itself.
What if I share a password-protected document and the recipient says they cannot open it?
Make sure you gave them the correct password and that they are typing it exactly as you specified — passwords are case-sensitive, so MyDoc is different from mydoc. If they are still having trouble, ask them to try copying and pasting the password instead of typing it, in case they made a typo. If the problem persists, you may need to send them an unprotected copy and set a new password together.
Can someone remove the password if they have the file?
Not without the password. Word's encryption is strong enough that guessing or cracking the password would take an extremely long time with a reasonably strong password. However, if your password is very straightforward — like "password" or "123456" — someone with basic tools could potentially crack it in minutes.
Does Word's password protection work on the web version?
The web version of Word (Office.com) does not have a built-in password protection feature. If you need to password protect a document, use the desktop version of Word on Windows or Mac, then upload the protected file to OneDrive or SharePoint. The password will remain active when you open it from the web.