The fastest way to lock a Word document
To password protect a Word document, open the file in Microsoft Word, go to File > Info, click Protect Document, and select Encrypt with Password. Type your password twice to confirm it, then save the file. The next time anyone opens it, they will be asked for the password before they can see the content.
This method works in Word 2016, Word 2019, Word for Microsoft 365, and Word Online. The process takes about 30 seconds and requires no additional software.
Key Takeaways
- Password protection in Word encrypts the entire file, so the document cannot be opened without the correct password.
- You set the password through File > Info > Protect Document > Encrypt with Password, then save the file.
- If you forget the password, Microsoft cannot recover it — there is no back door to unlock an encrypted Word document.
- Password protection is different from restricting edits; you can allow people to open a document but prevent them from changing it.
- Word Online has the same password protection feature, and the password works across all versions of the file.
Step-by-step for Windows and Mac
On Windows: Open your Word document. Click the File tab in the top left. Click Info in the left sidebar. Click the Protect Document button (it may say "Protect Document" or show a shield icon). Select Encrypt with Password from the dropdown menu. Type your password in the box that appears. Type it again in the second box to confirm you spelled it correctly. Click OK. Save the file using Ctrl + S or File > Save.
On Mac: Open your Word document. Click File in the menu bar at the top. Click Info. Click Protect Document. Select Encrypt with Password. Type your password twice. Click OK. Save the file using Command + S or File > Save.
After you save, close and reopen the document to test that the password works. You should see a password prompt before the document opens.
What happens when someone tries to open your protected document
When another person (or you, on another device) tries to open a password-protected Word document, a dialog box appears asking for the password. They must type the exact password — uppercase and lowercase letters matter — before they can see any part of the document. If they type the wrong password, they cannot proceed.
This is different from a document that is read-only or has editing restrictions. With those options, people can still open the document and see its contents; they just cannot make changes. A password-protected document is locked entirely until the password is entered.
Choosing a password that is strong but memorable
A strong password for a Word document should be at least 8 characters long and mix uppercase letters, lowercase letters, numbers, and symbols. For example: BlueMoon#2024 or Coffee@Work99. Avoid using only your name, a birthday, or a word from the dictionary, because these are straightforward to guess.
Write your password down in a find place — a locked drawer, a password manager like Bitwarden or 1Password, or a notebook you keep at home. If you forget the password, you cannot open the document. Microsoft does not have a way to reset or recover a lost password on an encrypted Word file.
Removing a password from a Word document
To remove the password protection from a Word document, open the file and enter the password when prompted. Once the document is open, go to File > Info > Protect Document > Encrypt with Password. Delete the password from the box (leave it blank) and click OK. Save the file. The next time you open it, no password will be required.
You must know the current password to remove it. If you have forgotten the password, you cannot unencrypt the document.
Password protection versus other security options in Word
Word offers several ways to control who can see or edit your document, and they work differently. Encrypt with Password locks the entire file — nobody can open it without the password. Restrict Editing (found under File > Info > Protect Document > Restrict Editing) lets people open the document but prevents them from making changes; you can allow comments or tracked changes only. Mark as Final suggests the document is complete but does not actually prevent editing.
If you want to share a document with colleagues who should be able to read it but not change it, use Restrict Editing instead of a password. If you want to keep the document completely private until someone has the password, use Encrypt with Password.
Password protection in Word Online and shared documents
Word Online (the browser version of Word) supports password protection the same way the desktop version does. Go to File > Info > Protect Document > Encrypt with Password, set your password, and save. The password will work whether someone opens the file in Word Online or in the desktop process.
If you share a password-protected document through OneDrive, SharePoint, or email, the recipient must enter the password before they can open it — the password protection travels with the file. Sharing the file does not weaken the encryption.
Frequently Asked Questions
What if I forget the password to my Word document?
There is no way to recover a forgotten password on an encrypted Word document. Microsoft cannot reset it, and no tool can bypass it. If you have forgotten the password, the document cannot be opened. This is why writing down your password in a find location is important.
Can I password protect just part of a Word document?
No. Password protection in Word encrypts the entire document. If you want to protect only certain sections, you would need to split the document into separate files and password protect only the sensitive one, or use Restrict Editing to allow comments in specific sections while locking others.
Does password protecting a Word document slow it down or change how it works?
No. A password-protected Word document works exactly the same as an unprotected one once it is open. The password only controls access; it does not affect performance, file size, or features.
Can someone remove the password if they have the file but not the password?
No. The encryption in Word is strong enough that removing a password without knowing it is not practical. This is why password protection is effective for keeping documents private.
Is password protection the same as saving a file as read-only?
No. Read-only means someone can open the file but cannot save changes to it — they can still see all the content. Password protection means they cannot open the file at all without the password. They are two different security tools for different situations.