Password protection in Word locks your document so only someone with the password can open it
Microsoft Word lets you encrypt a document with a password directly in the program — no extra software needed. When you set a password, Word scrambles the file's contents. Anyone who tries to open it will see a password prompt before they can read or edit anything. This works the same way in Word on Windows, Mac, and the web version.
The password you create is the only key to that file. If you forget it, Microsoft cannot recover it for you, and neither can anyone else. So write it down somewhere safe before you close the document for the first time.
Key Takeaways
- Password protection in Word encrypts the entire document, so no one can open it without the correct password.
- You set the password through File > Info > Protect Document on Windows, or File > Properties on Mac.
- The password you create cannot be recovered by Microsoft if you forget it, so keep it written down in a safe place.
- Password protection works on Word documents saved as .docx files, but not on older .doc format files.
- A password protects the document from being opened, but does not prevent someone from copying text if they have the password.
How to password-protect a Word document on Windows
Open the document you want to protect in Microsoft Word. Click the File tab in the top left corner, then select Info from the menu on the left side.
Look for the Protect Document button. Click it, then choose Encrypt with Password from the dropdown menu. A dialog box will appear asking you to enter a password. Type the password you want to use, then click OK.
Word will ask you to type the password again to confirm it. Enter it exactly as you did the first time, then click OK. Save the document — you can use Ctrl+S or go to File > Save. The next time anyone opens this file, they will see a password prompt.
How to password-protect a Word document on Mac
Open your document in Word. Click File in the menu bar at the top, then select Properties. A panel will open on the right side of the screen.
Look for the Security section in the Properties panel. Click the lock icon next to "Password to open" and enter your password in the box that appears. Click Save to apply the password. The next time the file is opened, Word will prompt for the password.
How to password-protect a Word document in the web version
Open your document in Word Online (office.com). Click File in the top left, then select Info. You will see a button labeled Protect Document.
Click it and choose Encrypt with Password. Enter your password and click OK, then enter it again to confirm. The document will be encrypted and saved automatically. Anyone opening it from now on will need the password.
What happens when someone tries to open a password-protected document
When a password-protected Word file is opened, the person sees a dialog box with a password field before the document appears. They must type the correct password to proceed. If they enter the wrong password, Word rejects it and asks them to try again.
This protection applies every time the file is opened — even if the person has already opened it before. They cannot bypass the password by renaming the file, moving it, or opening it in a different program. The encryption is built into the file itself.
Removing or changing a password
To remove the password from a document, open the file (you will need to enter the current password), then go to File > Info > Protect Document > Encrypt with Password. Delete the password from the box and click OK. Save the document. It will no longer be password-protected.
To change the password, follow the same steps but enter a new password instead of leaving the box blank. Save the document with the new password in place.
Important limits of password protection
Password protection prevents someone from opening the document without the password, but it does not prevent them from copying text if they do have the password. Once someone enters the correct password, they can read, copy, and print the document normally.
If you need to prevent someone from editing the document even after they open it, you can use Word's Restrict Editing feature instead. This lets you allow viewing and commenting while blocking changes to the actual text. You can find this under File > Info > Protect Document > Restrict Editing.
Password protection also works only on Word files saved in the .docx format (the current standard). If your document is saved as an older .doc file, the password protection feature may not be available.
Frequently Asked Questions
Can Microsoft recover my password if I forget it?
No. Microsoft does not store your password and cannot recover it. If you forget the password to a Word document, you cannot open that file. Write down your password and store it somewhere safe, separate from the document itself.
Does password protection work if I email the document to someone?
Yes. The password protection stays with the file no matter how it is sent or stored. The person receiving the email will need the password to open the attachment.
Can I password-protect only certain pages in a Word document?
No. Word's password protection encrypts the entire document. You cannot protect individual pages or sections. If you need different people to access different parts of a document, you would need to create separate files for each section.
What if someone has the password but I want to lock them out?
Change the password. Open the document with the old password, go to File > Info > Protect Document > Encrypt with Password, and enter a new password. Save the document. The old password will no longer work.
Is a Word password as secure as a password on my computer login?
Word passwords are reasonably secure for everyday use, but they are not as strong as operating system encryption. If someone has advanced tools and significant time, they may be able to break a Word password. For highly sensitive documents, consider using full-disk encryption or a dedicated encryption tool in addition to Word's password feature.