Password protection in Word stops others from opening your file without permission
Microsoft Word lets you add a password so that anyone trying to open the document must type it in first. This is the most straightforward way to keep a Word file private. The steps differ slightly depending on whether you use Word on Windows, Mac, or the web version, but the feature works the same way in all three: you set a password, save the file, and from then on, that password is required to read it.
Password protection encrypts your document, meaning the file itself becomes unreadable without the correct password. This is different from marking a document as "read-only" or sharing it with restricted permissions — those methods rely on the person you share with respecting those restrictions. A password makes the file itself inaccessible to anyone who doesn't have it.
Key Takeaways
- In Word on Windows and Mac, you set a password by going to File > Info > Protect Document > Encrypt with Password.
- Word on the web (Office 365) does not have a built-in password feature, but you can password-protect the file through your OneDrive or SharePoint settings instead.
- Once you set a password, you must type it every time you open the document — there is no way to bypass it if you forget.
- Password protection encrypts the entire file, so no one can read it without the password, even if they have the file itself.
How to password-protect a Word document on Windows
Open the document you want to protect. Click the File tab 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 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. Once you confirm, click OK again. Save the document — use Ctrl+S or go to File > Save. The password is now active. The next time anyone opens this file, Word will prompt them to enter the password before the document appears.
How to password-protect a Word document on Mac
Open your document and click File in the menu bar at the top. Select Info from the dropdown. You will see Protect Document on the right side of the screen. Click the dropdown arrow next to it and choose Encrypt with Password.
Enter your password in the dialog box that appears, then click OK. Type the password again to confirm it, then click OK once more. Save the file using Command+S or File > Save. The password protection is now in place.
Password protection in Word on the web and OneDrive
Word on the web (the version you use in your browser through Office 365) does not have a password feature built into the process itself. Instead, you protect the file through OneDrive or SharePoint, where the document is stored. Right-click the file in OneDrive and select Share. Choose Specific people and set permissions to View only or Edit for only the people you want to access it. This prevents others from opening it at all, though it is not the same as password encryption.
If you need actual password encryption for a file stored in OneDrive, read it to your computer, password-protect it using the Windows or Mac steps above, and then upload the protected version back to OneDrive. This way, the file itself is encrypted with a password, and OneDrive's sharing settings add a second layer of control.
What happens if you forget the password
If you forget the password to a Word document, there is no built-in recovery method. Microsoft does not store your password and cannot retrieve it for you. You cannot open the document without the correct password — Word will straightforward reject any incorrect attempt.
This is intentional: the security of password protection depends on the password being known only to you. If Microsoft could recover forgotten passwords, the encryption would be weaker. Write down your password somewhere safe, or use a password manager to store it. If you lose the password, your only option is to recreate the document from scratch or restore it from a backup if you have one.
The difference between password protection and other Word security features
Word offers several ways to control how people use a document, and they work differently. Password protection (Encrypt with Password) makes the file unreadable without the password — no one can even open it. Restrict Editing lets people open the document but limits what they can change; they can read it but cannot edit it without a password. Mark as Final suggests the document is complete and discourages editing, but anyone can turn this off. Shared access through OneDrive or SharePoint controls who can see the file at all, but does not encrypt it.
If your main concern is privacy — keeping the document completely hidden from people who shouldn't see it — use password protection. If you want to share a document but prevent accidental changes, use Restrict Editing. If you are sharing through OneDrive and want to control who has access, use the sharing settings there.
Removing or changing a password
To remove a password from a Word document, open the file and enter the password when prompted. Go to File > Info > Protect Document > Encrypt with Password. The dialog box will appear with your current password already in the field (shown as dots). Delete the password field entirely so it is blank, then click OK. Save the document. The password protection is now removed, and anyone can open the file without entering anything.
To change the password to something different, follow the same steps but type your new password instead of leaving the field blank. Save the file, and the new password takes effect when ready.
Frequently Asked Questions
Can someone crack a Word document password?
Word passwords are encrypted, but older versions of Word (before 2007) used weaker encryption that specialized tools can break. Modern versions use stronger encryption that is much harder to crack. For highly sensitive documents, password protection is a good first step, but it is not military-grade security. If you need maximum security, consider additional measures like storing the file on an encrypted drive.
Does password-protecting a Word document slow it down?
No. The encryption happens when you save the file and when someone opens it, but once the document is open, it performs normally. You will not notice any speed difference while working in the document.
Can I password-protect just part of a Word document?
No. Password protection in Word applies to the entire file. If you need to protect only certain sections, use Restrict Editing instead, which lets you lock specific parts of the document while leaving others editable.
What if I share a password-protected document with someone?
You must give them the password separately — through a phone call, text message, or another channel. Never send the password in the same email as the document. Once they have the password, they can open the file, but they will need to enter it each time they open it.
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 does not transfer. You would need to set a separate password on the PDF using your PDF reader or a PDF tool.