Password protection locks your Word file so only someone with the password can open it
You can add a password to any Word document on Windows, Mac, or online. When you do, the file stays encrypted — nobody can read it without typing the correct password first. This works for .docx files (modern Word) and .doc files (older versions). The process takes less than a minute and uses tools built into Word itself.
The steps differ slightly depending on whether you use Word on your computer, Word online, or an older version. Pick the section that matches what you have, then follow the numbered steps in order.
Key Takeaways
- Word on Windows and Mac both have a password option in the File menu under Info or Protect Document.
- Word online (Office 365 in a browser) does not have password protection built in — you must download the file, protect it on your computer, then upload it back.
- Once you set a password, you must type it every time you open the file, so write it down somewhere safe.
- Password protection encrypts the entire file, not just parts of it, so the document is locked from the moment you save it.
- If you forget the password, there is no recovery method — Microsoft cannot unlock the file for you.
Password-protect a Word file on Windows
Open the document you want to lock in Word. Click the File tab at the top left of the screen. From the menu on the left, click Info. You will see a button labeled 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 the password you want to use — it can be letters, numbers, and symbols. Word will not show you what you are typing, so type carefully. Click OK.
Word will ask you to type the password again to confirm it. Type it exactly the same way and click OK. Save the file by pressing Ctrl+S or clicking File and then Save. The password is now active. The next time anyone opens this file, Word will ask for the password before showing the document.
Password-protect a Word file on Mac
Open the document in Word. Click File in the menu bar at the top. Scroll down and click Info. Look for a button that says Protect Document and click the dropdown arrow next to it.
Select Encrypt with Password from the menu. A dialog box will open. Type your password in the field provided — remember that it is case-sensitive, meaning uppercase and lowercase letters are treated as different characters. Click OK.
Type the password again when Mac asks you to confirm it. Click OK and then save the file. The password protection is now in place. Anyone who tries to open this file will see a password prompt before the document appears.
Password-protect a Word file in Office 365 online
Word online does not have a built-in password feature. If you are working in a browser at Office.com or through OneDrive, you will not see a password option in the File menu. The workaround is to download the file to your computer, protect it there, and then upload it back.
Click File and then Download or Download a Copy. Save the file to your computer. Open the file in the Word desktop application (the program you install on your computer, not the browser version). Follow the Windows or Mac steps above to add the password. Save the file.
Once the password is set, you can upload the protected file back to OneDrive or SharePoint if you want to store it online. Anyone who accesses it from the web will be prompted to download it and enter the password before they can read it.
What to do if you forget the password
Microsoft does not store your password and cannot recover it for you. If you forget the password to a Word file, there is no official way to open it. The file remains encrypted and locked.
Some third-party password recovery tools claim they can crack Word passwords, but they are unreliable and may contain malware. The safest approach is to treat the password as permanent — if you lose it, the file is inaccessible. Write down your password and store it somewhere secure, like a password manager or a locked drawer.
Remove password protection from a Word file
Open the file and type the password when prompted. Click File and then Info. Click the Protect Document dropdown and select Encrypt with Password. The password dialog will appear with your current password already filled in as dots.
Delete all the dots so the field is completely empty. Click OK. Save the file. The password protection is now removed, and the file will open without a password from now on.
Common mistakes to avoid
Do not assume that password-protecting a Word file hides it from someone who has access to your computer. Password protection only locks the file when it is closed. If someone sits down at your computer while the file is already open, they can read and edit it without the password. Lock your computer when you step away.
Do not use a password you have used elsewhere, especially not your email password or banking password. If someone guesses or cracks the Word password, you do not want them to have access to other accounts. Create a unique password just for this file.
Do not rely on password protection as your only security measure for sensitive documents. Password protection encrypts the file, but it does not back it up. Keep a copy of important documents in a separate location in case the original file becomes corrupted or lost.
Frequently Asked Questions
Can I password-protect just part of a Word document?
No. Word's password feature locks the entire file. If you need to protect only certain sections and allow others to be edited, you can use the Restrict Editing feature instead, which lets you set permissions on specific parts of the document. This is found under the Review tab in Word.
Does password protection work if I share the file via email or cloud storage?
Yes. The password protection stays with the file no matter where you send it or how you share it. When someone downloads or opens the file, they will be asked for the password before they can see the contents. The protection does not depend on where the file is stored.
What happens if I password-protect a file and then share it with someone?
You must give them the password separately — it is not sent automatically with the file. Share the password through a different channel than the file itself, such as a phone call or a separate message. Never send the password in the same email as the file.
Can I use the same password for multiple Word files?
Yes, you can use the same password for multiple files. However, if someone learns that password, they can open all of those files. Using unique passwords for each file is more secure, especially if the files contain different types of sensitive information.
Does Word show me if a file is password-protected before I open it?
No. You will not know a file is password-protected until you try to open it and the password prompt appears. There is no indicator on the file icon or in the file name that tells you a password is set.