Password-protect your Word document so it cannot be opened without the right password
The fastest way to protect a Word document is to add a password that someone must enter before they can even open the file. This stops anyone without the password from reading what is inside. Word stores this password in a way that makes it very hard to crack, so a strong password actually works.
The steps differ slightly depending on whether you use Microsoft Word on Windows, Mac, or Word Online. All three methods take less than a minute once you know where to look.
Key Takeaways
- A password on a Word document prevents anyone from opening the file without entering the correct password first.
- Windows Word users go to File > Info > Protect Document > Encrypt with Password, while Mac users find the same option under File > Properties.
- Word Online does not have a built-in password feature, but you can password-protect the file through your OneDrive or SharePoint settings instead.
- If you forget the password, Microsoft cannot recover it for you, so write it down somewhere safe or use a password manager.
- Protecting a document with a password does not prevent someone from copying text if they have the file open — use "Restrict Editing" if you want to stop changes or copying.
Password-protect a Word document on Windows
Open the document you want to protect in Microsoft Word. Click the File tab at the top left, then click Info in the left sidebar. You will see a button labeled Protect Document with a dropdown arrow next to it.
Click that dropdown and select Encrypt with Password. A small box will appear asking you to enter a password. Type a password that is at least 8 characters long and includes a mix of uppercase letters, lowercase letters, numbers, and symbols — something like BlueMoon#2024 is much stronger than password123. Click OK.
Word will ask you to enter the password a second time to confirm you typed it correctly. Do this and click OK again. Save the document by pressing Ctrl+S or clicking File > Save. The next time anyone tries to open this file, Word will prompt them for the password before the document appears.
Password-protect a Word document on Mac
Open your document in Word for Mac. Click File at the top of the screen, then scroll down and click Properties. A panel will open on the right side of your screen.
Look for the section labeled Security and click the checkbox next to Encrypt this document with a password. A dialog box will appear asking you to create a password. Enter a strong password (uppercase, lowercase, numbers, and symbols work best), then click OK. Word will ask you to type the password again to confirm it. After you do, save the document by pressing Command+S.
Password-protect a Word document stored in OneDrive or SharePoint
If your document lives in OneDrive or SharePoint rather than on your computer, Word Online does not have a password feature built in. Instead, you can password-protect the entire folder or file through your cloud storage settings.
Right-click the document in OneDrive and select Share. At the bottom of the sharing panel, click More settings or the gear icon. Look for an option to Require a password or Set password and turn it on. OneDrive will generate a password or let you create one. Anyone who receives a link to the file will need to enter this password.
This method protects the file at the storage level rather than inside Word itself, so it works even if someone tries to download the file to their computer first.
Restrict editing so people cannot change or copy your document
Password-protecting a document stops people from opening it, but once they have it open, they can still copy text, edit content, and save their own version. If you want to prevent changes or copying, use Restrict Editing instead.
On Windows, go to File > Info > Protect Document and select Restrict Editing. A panel will open on the right side. Check the box next to Limit formatting and editing, then choose what you want to allow — you can let people add comments only, fill in forms only, or track changes only. Click Yes, Start Enforcing Protection and set a password. On Mac, click File > Properties, find Security, and look for Restrict Editing.
This does not prevent someone from removing the restriction if they know how, but it stops accidental changes and makes it clear the document should not be edited.
The difference between password protection and editing restrictions
Password protection (Encrypt with Password) stops someone from opening the file at all. They see a locked file icon and cannot read anything inside without the password. This is the strongest protection if you want to keep the contents completely private.
Editing restrictions (Restrict Editing) let someone open and read the document, but prevent them from making changes, copying text, or printing it. Use this when you want to share a document but keep it from being altered. You can also use it to create a form where people can only fill in certain boxes.
You can use both at the same time — password-protect the file so it cannot be opened without a password, and then restrict editing so that even someone with the password cannot change the content.
What to do if you forget the password
Microsoft cannot recover a lost password for a Word document. If you forget the password you set, you cannot open the file. There is no "forgot password" button or recovery process.
Write down your password and store it somewhere safe — a physical notebook in a drawer, a password manager like Bitwarden or 1Password, or even a sealed envelope. If you use a password manager, it will remember the password for you and fill it in automatically when you open the file.
If you have already forgotten a password and need to open the file, your only option is to ask the person who created the document to remove the password and send you an unprotected copy.
Frequently Asked Questions
Can I password-protect a Word document and still let certain people open it?
No — a password protects the document for everyone equally. If you want different people to have different access levels, use OneDrive or SharePoint sharing settings instead, which let you give edit access to some people and view-only access to others without a password.
Does password-protecting a Word document hide it from my computer?
No. The file still appears in your folder and on your desktop like any other file. The password only protects it when someone tries to open it. If someone has access to your computer, they can still see the file exists and try to open it — they just cannot read it without the password.
Can I remove a password from a Word document?
Yes. Open the document, go to File > Info > Protect Document > Encrypt with Password, and leave the password field blank. Click OK. Save the file. The password protection is now removed.
What happens if I password-protect a document and then share it with someone?
They will receive the file but cannot open it without the password. You must give them the password separately — through a phone call, text message, or a different email — not in the same message as the file. Never send the password and the file together.
Does password protection work if I save the document as a PDF?
No. When you save a Word document as a PDF, the password protection does not carry over. You would need to password-protect the PDF separately using your PDF reader or a dedicated tool.