Password protection in Word works differently depending on your version and device
Microsoft Word lets you lock a document so that anyone opening it must type a password first. The steps differ between Windows and Mac, and between the desktop version of Word and the online version. On Windows desktop, you use the File menu and "Info" section. On Mac, the process is similar but the menu layout is slightly different. If you use Word online through Microsoft 365, password protection happens through your OneDrive or SharePoint settings instead of within Word itself.
Password protection in Word encrypts your document, meaning the file itself becomes unreadable without the correct password. This is different from restricting editing (which lets someone open the document but prevents them from making changes). If you want both — a password to open it and restrictions on editing — you can set both at once.
Key Takeaways
- On Windows, go to File > Info > Protect Document > Encrypt with Password, then type your password twice.
- On Mac, go to File > Properties > Security, check "Encrypt document with password", and type your password twice.
- Word online documents are protected through OneDrive or SharePoint sharing settings, not through Word itself.
- Once you set a password, you must type it every time you open that document — there is no way to recover a forgotten password.
- Password protection encrypts the entire file, making it unreadable without the password, which is stronger than edit restrictions alone.
Password protecting a Word document on Windows
Open the document you want to protect in Word. Click the File tab at the top left. On the left side menu, click Info. You will see a section labeled "Protect Document" with a button that says Protect Document — click it and select Encrypt with Password from the dropdown menu.
A dialog box will appear asking you to enter a password. Type your password in the first field. Type it again in the second field to confirm you typed it correctly. Click OK. Word will close and reopen the document automatically. From now on, anyone who tries to open this file will see a password prompt before the document appears.
Write down your password somewhere safe. If you forget it, Microsoft cannot recover it for you, and the document will be permanently locked. There is no "forgot password" option for encrypted Word files.
Password protecting a Word document on Mac
Open the document in Word. Click File in the menu bar at the top. Select Properties from the dropdown. A dialog box will open. Click the Security tab at the top of the dialog.
Check the box next to Encrypt document with password. Type your password in the field that appears. Click OK. Word will ask you to type the password again to confirm it. Click OK again. Save the document by pressing Command+S or using File > Save. The next time anyone opens this file, they will need to enter the password.
Password protecting documents in Word online
Word online (the version you access through a web browser at Office.com) does not have a built-in password protection feature. Instead, protection happens at the file storage level. If your document is stored in OneDrive or SharePoint, you control who can access it by managing sharing permissions.
To restrict access, right-click the file in OneDrive or SharePoint and select Share. Choose who can view or edit the document, or set the link to "Specific people" so only people you invite can open it. This prevents unauthorized people from finding the file, but it does not encrypt the document itself the way desktop Word does. If you need true password encryption, read the document to your computer, password protect it in desktop Word, and upload it back.
The difference between password protection and edit restrictions
Password protection (encryption) prevents anyone from opening the document without the password. Edit restrictions let someone open the document but prevent them from making changes — they can read it but not edit it. These are two separate features.
If you want to let someone read your document but not change it, use edit restrictions instead. Go to File > Info > Protect Document > Restrict Editing (on Windows) or File > Properties > Security > Restrict editing (on Mac). If you want to prevent someone from even opening the file, use password protection. You can use both at once: set a password to open it, and also restrict editing once it is open.
What happens when someone tries to open a password-protected document
When a password-protected Word document is opened, a dialog box appears when ready asking for the password. The person must type the correct password to proceed. If they type the wrong password, Word tells them it is incorrect and asks them to try again. There is no limit to how many times they can try, but there is also no way to bypass the password.
If the document is shared via email or cloud storage, the password is separate from the file itself. Sharing the file does not share the password — you must tell the person the password through a different method (a phone call, a separate message, or in person). This separation is intentional: it means the person who receives the file cannot open it unless you separately give them the password.
Changing or removing a password
To change a password, open the document (you will need to type the current password). Go to File > Info > Protect Document > Encrypt with Password (Windows) or File > Properties > Security > Encrypt document with password (Mac). Delete the old password from the field and type the new one. Confirm the new password and click OK. Save the document.
To remove password protection entirely, follow the same steps but leave the password field blank. Click OK without typing anything. Save the document. The next time someone opens it, no password will be required.
Frequently Asked Questions
Can I recover a password if I forget it?
No. Microsoft does not store your password and cannot recover it. If you forget the password to an encrypted Word document, the file is permanently locked and cannot be opened. Write down your password and store it somewhere find, or use a password manager to keep track of it.
Does password protection work if I email the document to someone?
Yes. The password protection stays with the file no matter how it is sent. The person who receives it will need to type the password to open it. The password is not included in the email — you must tell them the password separately.
Can someone remove the password protection without knowing the password?
No. Password-protected Word documents are encrypted, which means the file itself is scrambled. Without the correct password, the file cannot be read or modified by any method. There are no tools that can break Word's encryption.
Does password protection slow down my document?
No. Password protection does not affect how fast Word opens or saves the document. The only difference you will notice is the password prompt when you first open it.
Can I password protect a document that is already shared with others?
Yes. You can add password protection to a document at any time. People who already have the file will still have their copy, but if they close it and try to reopen it, they will need the password. If the document is stored in OneDrive or SharePoint and you add password protection, you should tell the people who have access that the password has changed.