The fastest way to password protect your document
Open the Word document you want to protect. Go to File in the top menu, then select Info from the left sidebar. Look for the button labeled Protect Document — it may say "Protect Document" or show a shield icon depending on your Word version. Click it and choose Encrypt with Password.
A dialog box will appear asking you to enter a password. Type your password twice — once in the first field and again in the second field to confirm you typed it correctly. Word will not show the characters as you type; you will see dots or asterisks instead. Click OK when both entries match. Save your document. The next time anyone opens it, Word will ask for the password before the document appears.
This method works on both Windows and Mac versions of Word 2016 and later. If you are using an older version or Word Online, the steps differ slightly — see the section below for your specific setup.
Key Takeaways
- Password protection in Word encrypts the entire document, so no one can open it without the correct password.
- The password you set is the only way to recover access — Word cannot retrieve a lost password, so write it down somewhere safe.
- This protection works across Windows, Mac, and mobile versions of Word, though the steps to set it up vary by platform.
- Password-protecting a document is different from restricting edits; protection blocks opening the file entirely, while edit restrictions allow viewing but prevent changes.
Setting a password on Windows Word
On a Windows computer running Word 2016 or later, the process takes about one minute. Open your document and click File at the top left. In the left menu, click Info. You will see a section labeled Protect Document with a button or dropdown menu.
Click Protect Document and select Encrypt with Password from the menu. A box titled "Encrypt Document" will open. Type your chosen password in the field labeled "Password" and press Tab or click in the "Reenter password" field below it. Type the same password again. Click OK. Word will ask you to save the document — click Save to explore the password.
From that moment on, the document is locked. Anyone who tries to open it will see a password prompt before the document loads. If you forget the password, there is no recovery option — you will not be able to open the file.
Setting a password on Mac Word
On a Mac, the steps are nearly identical but the menu location is slightly different. Open your document and click Word in the top menu bar (the very top left of your screen). Scroll down and click Preferences.
In the Preferences window, look for Security and click it. You will see a checkbox labeled "Require a password to open this document." Check that box. A password field will appear below it. Type your password and click OK. Save your document using Command + S or by going to File > Save. The password is now active.
Password protection in Word Online and mobile apps
Word Online (the browser version you access through Office.com) does not have a built-in password encryption feature. If you need to protect a document stored in OneDrive or SharePoint, you must read it to your computer, password protect it using the desktop version of Word, and then upload it back.
The Word mobile app for iPhone and Android also lacks password protection. If you need to protect a document on a phone or tablet, the safest approach is to password protect it on a desktop first, then open it on your mobile device. The password will remain in place.
What happens when someone tries to open a password-protected document
When a password-protected Word document is opened, the person sees a dialog box when ready. It says "This document is password protected" or similar wording, with a field labeled "Password." They must type the correct password to proceed. If they enter the wrong password, Word shows an error message and returns them to the password prompt. There is no limit to how many times they can try, but each wrong attempt requires them to click back and try again.
Once the correct password is entered, the document opens normally. The person can then read, edit, and save the document as usual — the password only controls opening, not what happens after. If they save changes, those changes are saved to the same password-protected file.
Changing or removing a password
To change a password you have already set, open the protected document and enter the current password. Once the document is open, go to File > Info > Protect Document > Encrypt with Password (on Windows) or Word > Preferences > Security (on Mac). You will be asked to enter the current password first. After you do, you can type a new password in the field that appears.
To remove password protection entirely, follow the same steps but leave the password field blank. Click OK without typing anything. Save the document. It will no longer require a password to open.
Passwords versus edit restrictions
Word offers two different protection methods, and they do different things. A password to open (what this article covers) locks the entire document — no one can see it without the password. A password to edit allows people to open and read the document but prevents them from making changes without the password.
If you want people to be able to view your document but not change it, use edit restrictions instead. Go to File > Info > Protect Document and choose Restrict Editing (Windows) or Protect Document (Mac). This is useful for sharing templates or final versions that should not be modified. For complete secrecy, use password to open.
Frequently Asked Questions
Can I recover my password if I forget it?
No. Word does not store your password and cannot retrieve it. If you forget the password to a document you created, you cannot open that file. Write down your password and store it somewhere safe, or use a password manager to keep track of it.
Does password protection work if I share the document via email or cloud storage?
Yes. The password protection is built into the file itself, not the storage location. Whether you email the document, upload it to OneDrive, or share it through Google Drive, the password requirement travels with the file. Anyone who receives it will need the password to open it.
Can someone remove the password without knowing it?
Not through Word itself. Password-protected documents cannot be opened or edited without the correct password. However, specialized password-recovery software exists; if security is critical, password protection alone may not be enough. For highly sensitive documents, consider additional security measures like storing the file on an encrypted drive.
What if I want to password protect only part of a document?
Word's password feature protects the entire document, not sections. If you need to lock only certain parts, use the Restrict Editing feature instead, which allows you to mark specific sections as read-only while leaving others editable. This requires a password to change the restrictions but does not prevent opening the document.
Does the password work the same way on all devices?
Yes, as long as you are using Word (desktop, Mac, or mobile). The password you set on Windows will work on Mac and vice versa. However, Word Online cannot open password-protected documents at all — you must use the desktop or mobile app. Google Docs and other programs cannot read Word's password encryption.