Password protection locks your Word document so that anyone who tries to open it must type the correct password first
Microsoft Word lets you set a password directly in the program itself — you do not need any extra software or tools. The password encrypts your document, which means the file becomes unreadable without the correct password. This works the same way in Word on Windows, Mac, and in the web version.
The steps differ slightly depending on which version of Word you use, but the core process is the same: you go to File, then Info, then Protect Document, then Encrypt with Password. After you set the password and save, anyone opening that file will see a password prompt before the document appears.
Key Takeaways
- Password protection in Word encrypts your document so it cannot be opened without the correct password.
- You set the password through File > Info > Protect Document > Encrypt with Password in Word on Windows and Mac.
- The web version of Word (Office.com) uses File > Info > Protect Document but the exact menu layout differs slightly.
- Once you set a password and save the document, you must type that same password every time you open it.
- If you forget the password, Microsoft cannot recover it — there is no "forgot password" option for document passwords.
Setting a password in Word on Windows
Open the Word document you want to protect. Click the File tab in the top left corner of the screen. From the menu that appears on the left side, click 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 dropdown arrow and select Encrypt with Password from the list. A dialog box will appear asking you to enter a password.
Type your password in the box. Use a combination of uppercase letters, lowercase letters, numbers, and symbols to make it harder to guess — something like "BlueSky#2024" is stronger than "password". Click OK. Word will ask you to type the password again to confirm you did not make a typo. Type it exactly the same way and click OK again.
Now save the document by pressing Ctrl+S or by clicking File and then Save. The password is now active. The next time anyone opens this file, they will see a password prompt before the document loads.
Setting a password in Word on Mac
Open the Word document you want to protect. Click File in the menu bar at the top of the screen. From the dropdown menu, click Info.
Look for the section labeled Protect Document on the right side of the screen. Click the dropdown next to it and select Encrypt with Password. A dialog box will appear asking for your password.
Type your password and click OK. Word will prompt you to type it again to confirm. Enter it exactly the same way and click OK. Save the document by pressing Command+S or by clicking File and then Save. The password protection is now in place.
Setting a password in Word Online (Office.com)
If you use Word through Office.com in your web browser, the process is similar but the menu layout is slightly different. Open your document and click File in the top left. Click Info.
Look for Protect Document and click the dropdown arrow next to it. Select Encrypt with Password. A dialog box will ask you to enter a password. Type your password, click OK, then type it again to confirm and click OK once more.
The document saves automatically in Word Online, so your password protection takes effect right away. Anyone who tries to open this file will need to enter the password first.
What happens when someone tries to open your password-protected document
When a password-protected Word document is opened, the person sees a dialog box with a single text field labeled "Password" before the document appears. They must type the correct password and click OK to proceed. If they type the wrong password, Word shows an error message and returns them to the password prompt.
This happens every single time the document is opened — even if the person who set the password is the one opening it. There is no "remember this password" option. You will need to type the password each time unless you save it in your password manager.
Removing or changing a password
To remove a password from a document, open the file and type the password when prompted. Once the document is open, go to File > Info > Protect Document > Encrypt with Password. The dialog box will show asterisks where your current password is. Delete all the asterisks so the field is completely empty, then click OK. Save the document. The password protection is now removed.
To change a password, follow the same steps but type your new password instead of leaving the field empty. You do not need to enter the old password first — just clear the field and type the new one.
Important things to know about Word document passwords
If you forget your password, Microsoft cannot recover it for you. There is no password reset option, no recovery email, and no way to bypass it. The document will remain locked. This is by design — it means your password protection is actually secure, but it also means you must remember or store your password somewhere safe.
Password protection in Word encrypts the document itself, which is different from sharing permissions. A password prevents someone from even opening the file. If you want to let certain people view or edit the document but prevent others from seeing it at all, password protection is the right choice. If you want to let people view a document but prevent them from editing it, you can use Word's "Mark as Final" feature instead, though that is easier to bypass.
Passwords are case-sensitive, which means "Password" and "password" are two different passwords. Write down your password exactly as you typed it, including uppercase and lowercase letters, or store it in a password manager so you do not lose it.
Frequently Asked Questions
Can I password-protect just part of a Word document?
No. Word's password protection locks the entire document. If you need to protect only certain sections, you would need to split the document into separate files and password-protect only the ones you want to restrict. Word does have a "Restrict Editing" feature that lets you lock specific sections while leaving others editable, but that is a different tool than password protection.
What if I set a password but then forget it?
You cannot open the document without the correct password, and Microsoft has no way to reset it. If you have a backup copy of the file without a password, use that instead. Going forward, store your passwords in a password manager like Bitwarden, 1Password, or the password manager built into your browser so you do not lose them.
Does password protection work if I share the document with someone else?
Yes. When you send a password-protected Word document to someone, they will see the password prompt when they try to open it. You must tell them the password separately — through a phone call, text message, or a different email — so they can open the file. Never send the password in the same email as the document.
Is Word document password protection secure?
Word's password protection uses encryption that is reasonably secure for everyday use — it stops casual snooping and accidental access. However, if someone has significant technical resources and time, older versions of Word encryption can be cracked. For highly sensitive documents, consider using full-disk encryption or a dedicated encryption tool instead.
Can I password-protect a document in Google Docs or other programs?
Google Docs does not have built-in password protection. You can restrict who can view or edit a document through sharing settings, but you cannot set a password. If you need password protection, you must use Word or download the document, password-protect it in Word, and then share the protected file.