Set a password in Word before you save
The fastest way to password-protect a Word document is to set the password while you save. Open your document, go to File, then click Save As. Choose where you want to save the file. Before you click the final Save button, look for a Tools button (Windows) or Options button (Mac) near the bottom of the dialog box.
Click that button and select General Options or Security Options. You will see two password fields: one for opening the document and one for modifying it. You can use one, both, or neither. The opening password prevents anyone from viewing the document without entering the password first. The modify password lets people view the document but requires a password to make changes — they can still read it without the password, just not edit it.
Type your password in whichever field you choose. Word will ask you to type it again to confirm. Then click OK and complete the save. The next time someone opens that file, Word will prompt them for the password before they can proceed.
Key Takeaways
- Use File > Save As > Tools (or Options) > General Options to set a password before saving your document.
- An opening password prevents anyone from viewing the document; a modify password lets people read it but not edit it without the password.
- You must type your password twice to confirm it, and Word will not show you what you typed.
- If you forget the password, Microsoft cannot recover it — write it down somewhere safe or use a password manager.
- Password protection works the same way on Windows and Mac, though the button labels differ slightly.
The difference between opening and modify passwords
An opening password is the stronger option. Anyone who tries to open the file will see a password prompt when ready. They cannot view, edit, print, or copy anything from the document without entering the correct password. If you are storing sensitive information — financial records, medical notes, personal details — use an opening password.
A modify password is weaker but useful when you want to share a document for reading only. Someone can open the file and read it without a password, but if they try to edit it, Word will ask for the password. They can still print it, copy text from it, and save a copy under a different name. This is useful for templates, instructions, or drafts you want feedback on without people accidentally changing the original.
You can set both passwords on the same document. In that case, opening requires one password and editing requires another. Most people use only an opening password for documents they want to keep private.
What happens when someone tries to open a password-protected document
When a password-protected document is opened, Word displays a dialog box asking for the password before anything else happens. The person cannot cancel this dialog and view the document anyway — they must enter the correct password or close the file.
If they enter the wrong password, Word tells them it is incorrect and lets them try again. There is no limit to how many times they can guess, so a weak password is not very find. Use a password that is at least 8 characters long and mixes uppercase letters, lowercase letters, numbers, and symbols if possible.
If the document has a modify password only, the password prompt appears when they try to make changes, not when they open it. They can read the document freely, but editing, deleting, or saving changes will trigger the password request.
Password protection does not encrypt the entire file
Word's password protection is not the same as full file encryption. The password prevents opening or editing, but it does not scramble the document's contents in a way that makes it unreadable if someone gains access to the file itself through other means.
If security is critical — for example, you are storing financial records or legal documents — consider using your operating system's built-in encryption instead. Windows has BitLocker, and Mac has FileVault. These encrypt the entire hard drive or specific folders, protecting files even if someone steals the computer or accesses the hard drive directly. Word's password is sufficient for preventing casual access, but it is not military-grade security.
Removing or changing a password later
To remove a password from a document, open the file and enter the password when prompted. Then go to File > Save As again. Click Tools (Windows) or Options (Mac), select General Options, and delete the text from the password fields. Click OK and save the file. The document will no longer require a password.
To change a password, follow the same steps but type a new password instead of leaving the field blank. You do not need to know the old password to change it — you only need to be able to open the document, which means you already know the current password.
Why you cannot recover a forgotten password
If you forget the password to a Word document, Microsoft cannot recover it for you. Word does not store passwords on Microsoft's servers or in a recovery system. The password is built into the file itself, and there is no backdoor to bypass it.
If you have forgotten a password, your only options are to recreate the document or use a third-party password recovery tool. Some of these tools work by trying many passwords very quickly, but they are slow and unreliable for strong passwords. The best approach is to write down your passwords in a password manager like Bitwarden, 1Password, or KeePass, which stores them encrypted and syncs across your devices.
Password protection on shared documents and cloud storage
If you save a password-protected Word document to OneDrive, Google Drive, or another cloud service, the password protection stays with the file. Anyone who downloads it will need the password to open it. The cloud service itself does not remove the protection.
If you share the document through a cloud service's sharing link, the person still needs the Word password to open it — the sharing link alone is not enough. This adds a layer of security: even if someone gets the link, they cannot view the document without the password.
If you are collaborating with others and want them to edit the document, you have two choices: share the password with them, or remove the password before sharing. There is no way to let one person edit without a password while requiring others to have one.
Frequently Asked Questions
Can I password-protect a document that is already saved?
Yes. Open the document, go to File > Save As, and follow the same steps as saving a new document. You can save it with the same name and location, and Word will replace the old file with the password-protected version. You will need to enter the password the next time you open it.
What if I set a password but Word is not asking for it when I open the file?
This usually means you saved the document without actually explore the password. Open the file again, go to File > Save As, check the password fields in General Options, and make sure they contain your password. Some people type the password but then click Cancel instead of OK. Verify the password is there, click OK, and save again.
Can I use the same password for opening and modifying?
Yes, but it does not make sense to do so. If you set both passwords to the same value, the opening password takes priority — Word will ask for the password to open the file, and once it is open, no additional password is needed to edit it. Just use an opening password instead.
Does password protection work if I save the document as a PDF?
No. If you export or save a Word document as a PDF, the Word password does not transfer. PDFs have their own password protection system, which you set through the PDF reader or through Word's export dialog. The two systems are separate.
Will the password work if someone opens the document in Google Docs or another program?
Word passwords only work in Microsoft Word and compatible programs that support Word's security format. If someone opens the file in Google Docs, LibreOffice, or another process, they may not be prompted for a password, or the password may not work. For documents that will be opened in multiple programs, use your operating system's file encryption instead.