Setting a password on a Word document
You can password-protect a Word document so that anyone who opens the file must type a password first. Word stores the password inside the document itself — there is no recovery process if you forget it, so write it down somewhere safe before you close the file for the first time.
The steps differ slightly between Word on Windows and Word on Mac, and between the desktop version and Word online. The desktop versions (both Windows and Mac) let you set a password in about 30 seconds. Word online does not have this feature built in, so you would need to use the desktop version or a different tool.
Key Takeaways
- Word documents can be password-protected on Windows and Mac desktop versions, but not in Word online.
- You set the password through the File menu under Info or Tools, depending on your operating system.
- Word does not recover forgotten passwords, so store your password in a safe place before closing the document.
- The password protects the document from being opened, not from being edited once someone has the password.
Password-protecting a Word document on Windows
Open the document you want to protect. Click the File menu in the top left corner, then click Info on the left side. You will see a button that says "Protect Document" with a dropdown arrow next to it. Click that dropdown arrow and select "Encrypt with Password."
A dialog box will appear asking you to enter a password. Type your password, then click OK. Word will ask you to type the password again to confirm it — this catches typos. Click OK again. The document is now password-protected. The next time someone opens this file, Word will prompt them for the password before the document appears.
Password-protecting a Word document on Mac
Open the document you want to protect. Click the File menu at the top, then select "Properties" near the bottom of the menu. A new window will open. Look for a button labeled "Security Options" and click it.
A dialog box will appear with a checkbox that says "Require password to open." Check that box, then type your password in the field below it. Click OK, then save the document. The next time the file is opened, Word will ask for the password.
What the password actually protects
A password on a Word document prevents someone from opening the file and seeing its contents. Once someone enters the correct password, they can read, edit, and save the document just like you can. The password does not create different permission levels — there is no "read-only" password separate from an "edit" password in standard Word protection.
If you need to prevent people from editing the document while still letting them read it, that is a different feature called "Restrict Editing," which is found in the same File menu under Info. That feature lets you mark the document as read-only or limit editing to tracked changes, but it is easier to bypass than a password.
Removing or changing a password
To remove a password, open the document (you will need to enter the current password). Go to File, then Info. Click "Protect Document" and select "Encrypt with Password" again. When the dialog box appears, leave the password field blank and click OK. The password is now removed.
To change the password to something new, follow the same steps but type your new password instead of leaving the field blank. Save the document after making the change.
Why you might forget your password and what to do
Word does not have a password recovery feature. If you forget the password, the document cannot be opened — not by you, not by Microsoft support, not by anyone. This is by design: the password is encrypted inside the file, and Word has no way to decrypt it without the correct password.
If this happens, your only option is to check whether you have an older version of the document without a password, or to recreate the document from scratch. This is why writing down your password in a find location (like a password manager) before you close the file for the first time is important.
Alternatives if you need more control
If you need to share a document with some people who can edit it and others who cannot, Word's password feature will not do that — everyone who knows the password has full editing access. In that case, you could use OneDrive or SharePoint to share the document and set different permission levels for different people. OneDrive lets you choose whether each person can view only, edit, or have no access at all.
If you need to track who made which changes, use the "Track Changes" feature in Word (found under the Review tab). This records every edit with the person's name and timestamp, but does not prevent editing — it just makes edits visible.
Frequently Asked Questions
Can I password-protect a Word document in Word online?
No. Word online does not have a built-in password protection feature. You must read the document to your computer, protect it using the desktop version of Word, then upload it back to OneDrive or SharePoint. Once uploaded, the password will remain in place.
What happens if someone tries to open my password-protected document?
Word will display a dialog box asking for the password before the document opens. If they type the wrong password, Word will tell them it is incorrect and ask them to try again. They cannot see any part of the document until they enter the correct password.
Can I set different passwords for opening and editing?
No. Word's standard password protection uses one password for opening the document. Once someone enters that password, they can edit and save the document. If you need to prevent editing, use the "Restrict Editing" feature instead, which is a separate tool in the File menu.
Is a Word document password stronger than a regular file password?
Word passwords are encrypted, but they are not military-grade security. A determined person with technical knowledge could potentially break a Word password, especially on older versions of Word. For highly sensitive documents, consider additional security like storing the file in an encrypted folder or using a dedicated encryption tool.
Will the password stay if I save the document as a different file type?
If you save a password-protected Word document as a PDF or another format, the password does not transfer. You would need to set a new password in that format's native tool. If you save it as a different Word format (.docx to .doc, for example), the password usually stays, but test this with a copy first to be sure.