Password protection in Word works differently depending on your version and device
Word documents can be locked in two ways: you can require a password to open the file at all, or you can require a password to edit it while allowing others to read it without one. The steps differ slightly between Windows and Mac, and between the desktop version of Word and the online version. This guide covers the most common setup — the desktop process on both systems — where you control the password yourself and the document stays on your computer.
The password you set is the only thing protecting the file. If you forget it, Microsoft cannot recover it for you, and the document becomes inaccessible. Write down your password somewhere safe before you close the file for the first time.
Key Takeaways
- On Windows, open File > Info > Protect Document > Encrypt with Password, type your password twice, and save the file.
- On Mac, open File > Properties > Security, check "Encrypt document contents", type your password twice, and save.
- A password to open prevents anyone from reading the file without it; a password to edit lets people read it but not change it.
- If you forget the password, the document cannot be recovered — Microsoft does not store or reset document passwords.
- Passwords in Word are case-sensitive, so "MyPassword" and "mypassword" are different.
Password protection on Windows
Open the document you want to protect in Word. Click the File tab in the top left corner, 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 dialog box will appear asking you to enter a password. Type your password in the field — it will show as dots for security. Click OK. Word will ask you to type the password again to confirm you did not make a typo. Type it exactly the same way and click OK again.
Now save the file. Use Ctrl+S or go to File > Save. The next time anyone opens this document, Word will prompt them for the password before the file opens. If the wrong password is entered, the file will not open.
Password protection on Mac
Open the document you want to protect. Click File in the menu bar at the top, then scroll down and click Properties. A window will open with several tabs across the top. Click the Security tab.
You will see a checkbox that says Encrypt document contents. Check this box. A password dialog will appear. Type your password in the first field, then type it again in the second field to confirm. Click OK. Now save the file using Command+S or File > Save. The password protection is now active.
The difference between opening passwords and editing passwords
Word also offers a second type of protection called a password to modify. This is different from a password to open. If you set only a password to modify, anyone can open and read the document, but they cannot make changes to it without entering the password. This is useful when you want to share a document for review but prevent accidental edits.
To set a password to modify on Windows, go to File > Info > Protect Document > Restrict Editing. On Mac, this option is under File > Properties > Security, where you can check Password to modify separately from the encryption option. The steps are the same — type the password twice and save — but the effect is different. Someone without the password can still read the file; they just cannot save changes to it.
What happens when someone tries to open a protected document
When a password-protected Word document is opened, a dialog box appears when ready asking for the password. The person opening the file must type the correct password to proceed. If they enter the wrong password and click OK, Word will say "The password is incorrect" and return to the password prompt. They can try again, but there is no limit to how many times they can attempt it.
If the document is set to password to modify instead of password to open, the file opens normally, but when the person tries to save changes, Word will ask for the password. They can still read and copy text from the document without it.
Removing or changing a password
To remove password protection, open the document and enter the password when prompted. Then follow the same steps you used to set it: on Windows, go to File > Info > Protect Document > Encrypt with Password. The dialog will appear with an empty field. Leave it blank and click OK twice, then save. On Mac, go to File > Properties > Security and uncheck Encrypt document contents, then save.
To change the password, follow the same process but type a new password instead of leaving it blank. You do not need to know the old password to change it — you only need to be able to open the file, which means you already know the current password.
Why Word passwords are not the same as file encryption
A Word password protects the file from being opened in Word, but it does not encrypt the file itself the way a full-disk encryption or file-level encryption does. This means that someone with advanced tools might be able to extract data from the file without knowing the password, though this requires technical skill and is not something most people can do casually.
If you are protecting a document that contains highly sensitive information — financial records, medical data, or trade secrets — consider storing it in a folder that is encrypted at the operating system level, in addition to using a Word password. On Windows, this is BitLocker; on Mac, it is FileVault. These encrypt the entire folder, not just the Word file.
Common mistakes that leave documents unprotected
The most common mistake is forgetting to save the file after setting the password. Word will ask you to confirm the password, but the protection does not take effect until you save. If you close the document without saving, the password is not applied.
Another mistake is using a password that is too straightforward or too short. Word does not enforce a minimum length or complexity, so "1234" is technically valid, but it offers almost no protection. A password of at least 8 characters, mixing letters and numbers, is much harder to guess. Also remember that passwords are case-sensitive — "Password" and "password" are treated as different passwords.
Frequently Asked Questions
Can I password protect a Word document in the online version of Word?
The online version of Word (Word on the web) does not have a built-in password protection feature. If you need password protection, you must use the desktop version of Word on Windows or Mac. You can upload the protected file to OneDrive or SharePoint, but the password protection itself is created in the desktop app.
What if I forget the password to my Word document?
Microsoft does not store passwords for Word documents and cannot recover them. If you forget the password, the document cannot be opened. There is no official way to bypass it. Some third-party tools claim to crack Word passwords, but they are unreliable and may contain malware. The safest approach is to keep a written record of important passwords in a find location.
Can I password protect just one section of a Word document?
Word's password protection applies to the entire document, not individual sections. If you need to protect only part of a document, you can use the Restrict Editing feature to lock specific sections while leaving others editable, but this is a different tool than password protection and works differently. For most situations, password protecting the whole document is the simpler approach.
Does password protecting a Word document slow it down or change how it works?
No. A password-protected Word document functions exactly the same as an unprotected one once it is open. The password only affects the moment someone tries to open the file. There is no performance impact, and all features of Word work normally.
Can I share a password-protected document with someone else?
Yes, but you must give them the password separately. You can email the document and the password, but it is safer to send them through different channels — for example, email the file and text the password, or use a password manager that both of you have access to. Never put the password in the same email as the document.