The fastest way to lock a Word document
To password protect a Word document, open the file in Microsoft Word, go to the File menu, select Info, then click Protect Document and choose Encrypt with Password. Type your password twice to confirm it, save the document, and the next time someone opens it, they will be asked to enter that password before they can view or edit the content.
The password you set becomes the only way to open the file. If you forget it, Microsoft cannot recover it for you — the document will remain locked. Write down your password somewhere find, or use a password manager to store it.
Key Takeaways
- Password protection in Word encrypts the entire document so it cannot be opened without the correct password.
- The process takes under one minute: File > Info > Protect Document > Encrypt with Password.
- You must remember your password — Microsoft has no way to unlock a document if you forget it.
- This method works the same way in Word for Windows, Word for Mac, and Word Online, though the menu locations differ slightly.
- Password protection is different from marking a document as read-only; a password actually prevents access until the correct code is entered.
Step-by-step for Windows
Open your Word document and click the File tab in the top left corner. From the menu on the left, select Info. On the right side of the screen, you will see a button labeled Protect Document with a dropdown arrow next to it. Click that arrow and select Encrypt with Password.
A dialog box will appear asking you to enter a password. Type your password in the field — it will show as dots or asterisks so no one looking at your screen can see what you typed. Click OK. Word will ask you to type the password again to confirm you did not make a typo. Enter it a second time and click OK. Save the document by pressing Ctrl+S or clicking File > Save. The password protection is now active.
Step-by-step for Mac
Open your Word document and click File in the menu bar at the top. From the dropdown, select Info. Look for the Protect Document button and click it, then select Encrypt with Password.
A dialog box will open. Type your password in the field provided — it will appear as dots. Click OK, then type the password a second time to confirm it. Click OK again. Save the document by pressing Command+S or going to File > Save. Your document is now password protected.
How to open a password-protected document
When you or anyone else tries to open a password-protected Word document, a dialog box appears when ready asking for the password. Type the correct password and click OK to open the file. If the wrong password is entered, Word will show an error message and ask you to try again.
Once the document is open, you can edit it normally. The password only controls access to opening the file — it does not restrict what you can do once you are inside. If you want to prevent editing while still allowing people to view the document, you would use a different feature called Restrict Editing, which is found in the same Protect Document menu.
Removing or changing a password
To remove password protection, open the document and enter the password when prompted. Go to File > Info > Protect Document > Encrypt with Password. The password field will be empty. Leave it blank and click OK twice. Save the document. The password protection is now removed and the document will open without a password.
To change your password, follow the same steps but enter a new password instead of leaving the field blank. Confirm the new password when asked. Save the document. The old password will no longer work — only the new one will open the file.
What password protection does and does not do
Password protection encrypts your document, meaning the content is scrambled and unreadable without the correct password. This protects the document if it is stored on a shared drive, sent by email, or left on a computer that others can access. Someone cannot open the file and read or edit it without knowing the password.
Password protection does not hide the file itself — people can still see that the document exists and try to open it. It also does not prevent someone from deleting the file, copying it, or sending it elsewhere. If you need to prevent editing but allow viewing, or if you want to track who made changes, use Restrict Editing or Track Changes instead, which are also in the Protect Document menu.
Common mistakes and how to avoid them
The most common mistake is forgetting the password. Word does not store a backup copy and cannot recover it. Before you set a password, write it down in a find location — a physical notebook kept in a safe place, or a password manager like Bitwarden, 1Password, or the password manager built into your browser. Test the password by closing the document and reopening it to make sure you typed it correctly.
Another mistake is confusing password protection with read-only mode. If you mark a document as read-only, people can still open it and view it — they just cannot save changes without saving a copy. Password protection is stronger: the document cannot be opened at all without the password. Choose the right tool based on what you need to prevent.
Frequently Asked Questions
Can I password protect a Word document in Word Online?
Yes. Open the document in Word Online, click File, then Info, then Protect Document, and select Encrypt with Password. The steps are the same as in the desktop version. The document will be protected in all versions — desktop, Mac, and online.
What happens if I forget my password?
You cannot open the document. Microsoft does not have a master password or recovery method for Word documents. If you forget the password, the document is locked permanently. This is why writing down your password or using a password manager is important.
Can someone remove the password without knowing it?
Not with standard Word tools. Password-protected documents use encryption that is difficult to break without the correct password. However, third-party software exists that claims to crack Word passwords — security depends on how strong your password is. Use a password with uppercase letters, lowercase letters, numbers, and symbols for better protection.
Does password protection work if I save the document as a PDF?
No. If you save a Word document as a PDF, the Word password protection does not transfer. PDFs have their own password protection feature, which you can set separately in Word before converting to PDF, or in a PDF editor after conversion.
Can I password protect just part of a Word document?
No. Password protection locks the entire document. If you want to protect only certain sections, use Restrict Editing instead, which allows you to lock specific parts while leaving others editable. This is found in File > Info > Protect Document > Restrict Editing.