Password protection locks your Word document so it cannot be opened without the correct password
When you password-protect a Word document, Windows or Mac encrypts the file. Anyone who tries to open it sees a password prompt before they can read, edit, or print anything inside. This works for .docx files (Word 2007 and newer) and older .doc formats. The protection stays in place even if someone emails the file, copies it to a USB drive, or finds it on a shared computer.
The process takes about 30 seconds and requires no extra software. You do it through Word's own menu, and you choose the password yourself — there is no master key or recovery code if you forget it, so write it down somewhere safe.
Key Takeaways
- Password protection in Word encrypts your document so it cannot be opened without the correct password.
- You set the password yourself through Word's File menu, and there is no way to recover it if you forget it.
- The same password protects the document whether it is on your computer, a shared drive, or sent via email.
- Word also offers separate options to restrict editing or require a password to make changes — these are different from opening protection.
How to password-protect a Word document on Windows
Open the document you want to protect in Microsoft Word. Click File in the top left corner, then click Info in the left sidebar. You will see a button labeled Protect Document with a dropdown arrow next to it.
Click that dropdown and select Encrypt with Password. A dialog box appears asking you to enter a password. Type the password you want to use — it can be letters, numbers, symbols, or any combination. Word does not show you what you are typing for security reasons. Click OK.
Word asks you to enter the password again to confirm you typed it correctly. Type it a second time and click OK. The document is now protected. Save the file (Ctrl+S or File > Save) to apply the protection. The next time anyone opens this file, they will see a password prompt.
How to password-protect a Word document on Mac
Open the document in Microsoft Word for Mac. Click File in the menu bar at the top, then click Info. Look for a button that says Protect Document and click the dropdown arrow next to it.
Select Encrypt with Password. A dialog box opens. Type your password and click OK. Word asks you to type the password again to confirm. Enter it and click OK. Save the file using Cmd+S or File > Save. The password protection is now active.
What happens when someone tries to open a password-protected document
When you or anyone else tries to open a password-protected Word file, a small dialog box appears before the document loads. It says "Password" with a text field. The person must type the correct password to proceed. If they type the wrong password, Word shows an error message and returns to the password prompt. They can try again, but they cannot see any part of the document without the correct password.
This protection applies whether the file is opened from your computer, a shared network drive, a cloud storage service like OneDrive, or an email attachment. The encryption travels with the file.
How to remove or change a password
To remove password protection, open the document (you will need to enter the current password). Go to File > Info > Protect Document > Encrypt with Password. A dialog box appears with the password field empty. Leave it blank and click OK. Save the file. The password protection is now removed.
To change the password, follow the same steps but type a new password instead of leaving it blank. Confirm the new password when prompted and save the file.
The difference between password protection and editing restrictions
Word offers two separate protection features that do different things. Password protection (Encrypt with Password) prevents anyone from opening the document at all without the password. Editing restrictions (Restrict Editing) allow people to open the document but limit what they can do — for example, you can let them view and comment but not make changes.
Editing restrictions are found in the same Protect Document menu. They are useful if you want to share a document with colleagues who should see it but not alter it. However, editing restrictions are easier to bypass than password protection, so they are not suitable for sensitive information. If you need real security, use password protection instead.
Things to know before you password-protect a document
Write down your password and store it somewhere safe — in a password manager, a locked drawer, or another secure location. Word has no way to recover a forgotten password. If you forget it, you cannot open the document. There is no "forgot password" button or recovery email.
Password protection does not prevent someone from copying the file itself or sending it to others. It only prevents them from opening it. If you need to track who has the file or prevent it from being shared, you need different tools — such as file sharing permissions on OneDrive or SharePoint, or a document management system that logs access.
If you share a password-protected document with someone, you need to send them the password separately — never in the same email as the file. Use a phone call, text message, or a different email to share the password.
Frequently Asked Questions
Can I password-protect a Word document in Google Docs or LibreOffice?
Google Docs does not have a built-in password protection feature. LibreOffice Writer (the free alternative to Word) does have password protection in its File > Save As menu — look for "Save with Password" in the dialog. However, the steps differ from Microsoft Word, so check LibreOffice's documentation for your version.
What if I password-protect a document and then forget the password?
You cannot open the document. Word does not have a password recovery option, and Microsoft cannot unlock it for you. The file remains encrypted and inaccessible. This is why writing down your password in a safe place is important.
Does password protection work if I upload the document to OneDrive or Google Drive?
Yes. The password protection is part of the file itself, not dependent on where it is stored. Whether the file is on your computer, OneDrive, Google Drive, or a shared network folder, the password protection remains active. Anyone who downloads or opens the file will see the password prompt.
Can someone remove the password protection without knowing the password?
Password protection in Word uses encryption, which is difficult to break without the password. It is not impossible — specialized software exists that can attempt to crack passwords — but it requires time and technical skill. For everyday security, password protection is effective.
Should I use a simple password or a complex one?
Use a password that is hard to guess. Avoid dictionary words, birthdays, or names. A mix of uppercase letters, lowercase letters, numbers, and symbols is stronger. However, the most important thing is that you remember it or store it safely, because you cannot recover it if you forget.