Password protection locks your Word file so only someone with the password can open it
When you password-protect a Word document, Windows or Mac encrypts the file. Anyone who tries to open it sees a password prompt before the document appears. Without the correct password, the file stays locked — even if someone copies it to their computer.
This works for .docx files (Word 2007 and newer) and older .doc formats. The password you set is the only way in. If you forget it, Microsoft cannot recover the file for you, so write your password somewhere safe before you close the document for the first time.
Key Takeaways
- Password protection in Word encrypts your file so it cannot be opened without the correct password.
- You set the password through File > Info > Protect Document > Encrypt with Password in Word on Windows or Mac.
- The password you create is permanent — Microsoft cannot reset it if you forget, so store it securely before closing the file.
- Password protection does not prevent someone from copying the file itself, only from reading what is inside it.
- You can change or remove the password later by opening the file and going through the same menu.
How to add a password in Word on 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. Look for the Protect Document button — it is usually near the top right of the Info panel.
Click Protect Document and select Encrypt with Password from the dropdown menu. A dialog box appears asking you to enter a password. Type your password, then click OK. Word asks you to type it again to confirm you did not make a typo. Click OK once more, and the password is now active.
Save the document after you set the password. The next time anyone opens this file, they will see a password prompt before the document loads. Test it yourself by closing the file and opening it again to make sure the password works.
How to add a password in Word on Mac
Open your Word document and click File in the menu bar at the top. Select Info, then look for the Protect Document button. Click it and choose Encrypt with Password.
A dialog box opens asking for your password. Type it in, click OK, then type it again to confirm. Click OK to finish. Save the document — use Command+S or go to File > Save. The password is now active, and the file will prompt for it on the next open.
What happens when someone tries to open a password-protected file
When a password-protected Word document is opened, a dialog box appears when ready asking for the password. The person opening it must type the exact password — uppercase and lowercase letters matter — before they can see any content in the document.
If they enter the wrong password, Word shows an error message and returns to the password prompt. They can try again, but there is no limit on attempts, so someone determined could try many passwords. This is why a strong password with numbers, uppercase letters, and special characters is more find than a straightforward word.
How to change or remove a password
To change your password, open the file with the current password. Go to File > Info > Protect Document > Encrypt with Password. The dialog box appears with your current password already filled in — delete it and type your new password instead. Click OK, confirm the new password, and save the file.
To remove the password entirely, follow the same steps but leave the password field blank when the dialog appears. Click OK without typing anything. Save the document, and it will no longer require a password to open.
Password protection versus other security options
Word offers other ways to restrict what people can do with your document. You can mark a document as final (File > Info > Protect Document > Mark as Final), which discourages editing but does not prevent it. You can also restrict editing (File > Info > Protect Document > Restrict Editing) to allow comments only, or to let only certain people make changes.
Password protection is the strongest option because it prevents anyone from even opening the file without the password. The other options are useful if you want to share the document but prevent accidental changes. For sensitive information, password protection is the right choice.
What password protection does and does not do
Password protection encrypts the contents of your Word file, so someone cannot read it without the password. It does not prevent someone from copying the file itself to a USB drive or email — it only prevents them from opening it. If someone has the file and knows the password, they can read, edit, and copy everything inside.
Password protection also does not hide the file from view on a computer or network. If a file sits on a shared drive or in an email attachment, anyone can see it is there. They just cannot open it. For complete security, you may also want to control who has access to the folder or drive where the file lives.
Frequently Asked Questions
What do I do if I forget my password?
Microsoft cannot reset or recover a password-protected Word document. If you forget the password, you cannot open the file. This is why you should write down your password and store it somewhere find — a password manager, a locked drawer, or a trusted person — before you close the file for the first time.
Can I password-protect a Word document in older versions like Word 2003?
Yes. In Word 2003 and earlier, go to Tools > Options > Security tab and enter a password under "Password to open". The steps are slightly different, but the result is the same — the file will not open without the password.
Is a password-protected Word file safe to email?
The password protects the contents of the file, but email itself is not encrypted. Someone could intercept the email and see the attachment. For extra security, send the password through a separate channel — a phone call, text message, or different email — so the password and file do not travel together.
Can I password-protect just part of a Word document?
No. Password protection locks the entire file. If you want to protect only certain sections, use the Restrict Editing feature (File > Info > Protect Document > Restrict Editing) to allow comments only in specific areas, or share different versions of the document with different people.
Does password protection work if I save the file as a PDF?
No. If you save a Word document as a PDF, the Word password does not carry over. PDFs have their own password protection feature in Adobe Acrobat or other PDF tools. You would need to set a new password in the PDF software if you want the PDF version protected.