Password protection in Word works differently depending on whether you want to lock the file itself or restrict what readers can do inside it
Microsoft Word offers two separate password features. The first encrypts the entire file so nobody can open it without the correct password — this is what most people mean by "locking" a document. The second lets you set a password that allows people to open the file but restricts their ability to edit, copy, or print. Which one you need depends on whether you want to keep the document completely private or just prevent accidental changes.
Both methods work on Windows and Mac versions of Word, though the exact menu locations differ slightly. The process takes less than a minute once you know where to look.
Key Takeaways
- Encrypting a Word file with a password prevents anyone from opening it without that password, and this is the strongest protection Word offers.
- On Windows, you encrypt a document through File > Info > Protect Document > Encrypt with Password.
- On Mac, the same feature is under File > Properties > Security > Encrypt Document Contents.
- If you only want to prevent editing rather than block access entirely, use File > Info > Protect Document > Restrict Editing instead.
- Once you set an encryption password, you must remember it — Word cannot recover a lost password.
Encrypting a Word document on Windows
Open the document you want to protect. Click the File tab in the top left corner, then select Info from 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 your password and click OK. Word will ask you to type it again to confirm. Once you click OK a second time, the document is encrypted. The next time anyone tries to open it — including you — Word will demand the password before displaying the file.
Save the document after encrypting it. The encryption takes effect when you save, not when you set the password.
Encrypting a Word document on Mac
Open the document and click File in the menu bar. Select Properties from the dropdown. A new window will open with several tabs at the top. Click the Security tab.
You will see a checkbox labeled Encrypt Document Contents. Check that box. Word will prompt you to enter a password and confirm it. Click OK, then save the document. The encryption is now active.
Restricting editing instead of blocking access
If you want people to be able to open your document but prevent them from making changes, use the Restrict Editing feature instead of encryption. This is useful when you want to share a document for review but keep the original version safe from accidental edits.
On Windows, go to File > Info > Protect Document > Restrict Editing. On Mac, use File > Protect Document > Restrict Editing. A panel will open on the right side of your screen. Check the box next to Limit Formatting and Editing, then choose what you want to allow — typically "Tracked Changes" or "Comments Only". Set a password if you want, then click Yes, Start Enforcing Protection.
People who open this document will see the restrictions in place. They can still read it, but they cannot make permanent changes without the password.
What happens when someone tries to open an encrypted document
When a password-protected Word file is opened, a dialog box appears immediately asking for the password. The person has three attempts to enter the correct password. After three wrong attempts, Word closes and they must try again by opening the file once more.
There is no way to bypass this password or recover it if forgotten. Word does not store a master password or recovery key. If you lose the password, the document remains locked and unreadable. Write down your password somewhere secure, or use a password manager to store it.
Removing or changing a password
To remove password protection from a document you created, open it with the correct password. Go to File > Info > Protect Document > Encrypt with Password (Windows) or File > Properties > Security > Encrypt Document Contents (Mac). Delete the password from the field — leave it blank — and click OK. Save the document. The encryption is now removed.
To change an existing password, follow the same steps but enter a new password instead of leaving the field blank. You must know the current password to change it.
Password strength and security considerations
Word encryption is reasonably strong for everyday use, but it is not military-grade. A password of at least 8 characters, mixing uppercase and lowercase letters with numbers and symbols, is standard practice. Avoid using words from the dictionary or personal information like birthdays.
Password protection only works if the file stays in Word format. If someone converts the document to a different format — like PDF or plain text — the password protection may not transfer. Also, if you email the document, the password travels separately from the file. Never send the password in the same email as the document.
Frequently Asked Questions
Can I password-protect just part of a Word document?
No. Encryption protects the entire file. If you want to lock only certain sections, use the Restrict Editing feature instead and set it to allow comments only, then share the document with instructions to comment rather than edit.
What if I forget the password to my own document?
Word cannot recover or reset a lost password. The document will remain locked. If you have a backup copy without the password, use that instead. For future documents, store passwords in a password manager or write them down securely.
Does password protection work if I save the file as PDF?
No. Word's password protection is specific to Word files. If you convert a protected document to PDF, the password does not transfer. PDF has its own separate password protection feature that you would need to set up in your PDF software.
Can my employer or IT department bypass my password?
If your company uses enterprise versions of Office with administrative controls, IT may have tools to manage documents on company devices. Check your company's security policy. For personal documents on your own computer, only someone with the password can open an encrypted file.