Password protection in Word locks your document so only someone with the password can open it or edit it
When you password protect a document in Microsoft Word, you're encrypting the file so that anyone trying to open it must enter the correct password first. Word supports two types of protection: you can require a password to open the document at all, or you can allow people to open it but require a password to make changes. Both methods use encryption that makes the document unreadable without the password.
This is different from sharing settings or permission levels. Password protection is built into the file itself — if you email the document to someone, they still need the password. It works the same way whether you're using Word on Windows, Mac, or the web version.
Key Takeaways
- You can set a password to open the document, a password to edit it, or both at the same time.
- The process differs slightly between Word on your computer and Word online, but both take less than a minute.
- If you forget the password, Microsoft cannot recover it — you will need to recreate the document or use a password recovery tool.
- Password protection encrypts the file, so the document remains protected even if you email it or store it on a shared drive.
How to password protect a document in Word on Windows or Mac
Open the document you want to protect. Go to File in the top menu, then select Info. On the right side of the screen, you'll see a button that says Protect Document — click it and choose 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, save the document — the password protection takes effect when ready. The next time anyone opens this file, they'll be prompted to enter the password before they can see the contents.
If you want to allow people to open the document but require a password to edit it, use a different route: go to File, then Info, then Protect Document, and choose Restrict Editing. Check the box that says Restrict formatting and editing, then click Yes, Start Enforcing Protection. You can then set a password that people must enter to remove the editing restriction.
How to password protect a document in Word online
Word online (the version you access through Office.com or Outlook) has more limited protection options than the desktop version. Open your document, click File, then look for Info. You should see an option to Encrypt with Password — click it and enter your password twice.
If you don't see the encrypt option in Word online, you may need to read the document to your computer, protect it there using the desktop version, and then upload it back. Word online is updated regularly, so the menu locations can shift, but the desktop version always has the full set of protection tools available.
What happens when someone tries to open a password-protected document
When a password-protected Word document is opened, the person opening it sees a dialog box when ready asking for the password. They cannot see any part of the document, not even the first page, until they enter the correct password. If they enter the wrong password, Word tells them it's incorrect and asks them to try again.
There is no limit to how many times someone can try to guess the password — Word doesn't lock the file after a certain number of wrong attempts. This means a password should be something reasonably complex if the document contains sensitive information. A straightforward password like "password123" offers very little protection against someone determined to access the file.
Removing or changing a password
To remove password protection from a document you own, open the file and enter the password when prompted. Then go to File, Info, Protect Document, and select Encrypt with Password. Delete the password from the dialog box (leave it blank) and click OK. Save the document, and the password protection is gone.
To change the password, follow the same steps but enter a new password instead of leaving it blank. You must know the current password to change it — if you've forgotten the password, you cannot access the document to change it.
Important limits and things to know
Password protection in Word uses encryption, which means the document is genuinely locked — but the strength of that lock depends on the password itself. A weak password can be cracked by someone with the right tools and enough time. If you're protecting a document with truly sensitive information, use a password that combines uppercase letters, lowercase letters, numbers, and special characters, and make it at least 12 characters long.
If you forget your password, Microsoft cannot recover it and cannot unlock the document. There is no "forgot password" recovery option for Word documents. Some third-party password recovery tools exist, but they work by trying many passwords automatically and may not work on newer versions of Word. Your safest option is to keep a record of important passwords in a password manager.
Password protection does not prevent someone from copying the file itself. If you email a password-protected document to someone, they receive the encrypted file and need the password to open it — but they can still forward that file to others. Password protection secures the contents of the document, not the distribution of the file.
When to use password protection versus other security options
Password protection works best when you want to keep a document private and you're in control of who receives it. If you're sharing a document with a team and want to track who made changes, Word's Track Changes feature combined with password protection is more useful than password protection alone. If you need to prevent people from printing or copying text from a document, you'll need to use Restrict Editing rather than just opening password protection.
For documents stored on OneDrive or SharePoint, you can also use sharing permissions to control who can access the file — but password protection adds an extra layer because it encrypts the file itself. Someone who gains access to your OneDrive account could still open a shared document without a password, but they cannot open a password-protected document without knowing the password.
Frequently Asked Questions
Can I password protect just part of a Word document?
No, password protection applies to the entire document. If you need to protect only certain sections, you can use Restrict Editing to lock specific sections while leaving others editable, but this requires a different approach than straightforward password protection. You would select the sections you want to protect, then use the Restrict Editing tool to lock them.
What if I password protect a document and then forget the password?
You cannot recover a forgotten password through Microsoft or Word. The document remains encrypted and unreadable. Some third-party password recovery tools claim to crack Word passwords, but they work by trying many combinations and may not succeed on newer Word versions. Your best option is to recreate the document from a backup or source material.
Does password protection work if I save the document as a PDF?
No. If you save a Word document as PDF, the password protection does not transfer. You would need to password protect the PDF separately using your PDF reader or a PDF tool. Word's password protection only works on Word files (.docx, .doc, and similar formats).
Can someone remove the password protection if they have the file?
Not without knowing the password. Password protection encrypts the file, so removing it requires entering the correct password first. Someone cannot straightforward delete the protection or strip it away — they must decrypt the file, which requires the password.
Is password protection enough to keep a document find?
Password protection encrypts the file, but the security depends on the password strength. A straightforward password can be cracked with automated tools. For highly sensitive documents, combine password protection with other measures: store the file on an encrypted drive, limit who you share it with, and use a strong password with mixed character types and at least 12 characters.