Password protection locks your Word document so only people with the password can open it

When you password-protect a Word document, Windows or Mac encrypts the file. Anyone who tries to open it without the correct password sees a locked dialog box instead of the document. This works on .docx files (the standard format since Word 2007) and older .doc files, though the steps differ slightly between versions.

Password protection is useful when you store sensitive documents on a shared computer, send files by email, or keep them in cloud storage where others might have folder access. The password stays with the file — if you email it or upload it, the protection travels with it.

Key Takeaways

  • On Windows, open the document, go to File > Info > Protect Document, and choose "Encrypt with Password" to set a password.
  • On Mac, use File > Properties > Security and enter a password in the "Password to open" field.
  • Write down your password somewhere safe — Word cannot recover a lost password, and you will not be able to open the document.
  • Password protection encrypts the entire file, so the document stays locked until someone enters the correct password.
  • Older Word versions use File > Save As and a Tools menu to set passwords, but the principle is the same.

How to password-protect a document on Windows

Open the Word document you want to protect. Click the File tab in the top left corner, then select Info from the menu on the left side. You will see a button labeled Protect Document with a dropdown arrow next to it.

Click that dropdown and choose 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. Click OK. Word will ask you to type the password again to confirm it. Type it exactly the same way, then click OK again.

Save the document. The next time anyone opens this file, they will see a password prompt before the document appears. If they enter the wrong password, the document will not open.

How to password-protect a document on Mac

Open your Word document and click File in the menu bar at the top. Scroll down and select Properties. A panel will open on the right side of the screen.

Look for the Security section in that panel. You will see a field labeled Password to open. Click in that field and type your password. Click OK or press Enter. Mac will ask you to type the password again to confirm. Type it exactly the same way and click OK.

Save the document by pressing Command+S or going to File > Save. The password protection is now active. Anyone who tries to open this file will need to enter the password first.

What happens when someone tries to open a password-protected document

When a password-protected Word file is opened, the person sees a dialog box that says "This document is password protected" or similar wording, depending on the Word version. There is a field to enter the password. If they type the wrong password and click OK, the dialog appears again. They can try again, but the document will not open until the correct password is entered.

This is different from a document that is read-only or restricted to certain edits. A password-protected document is completely locked until the password is provided. The person cannot see any part of it, cannot copy text from it, and cannot work around the protection by using a different program to open the file.

Important things to know about passwords

Word does not store a copy of your password anywhere. If you forget it, there is no way to recover the document — not through Word, not through Microsoft support, not through any other method. Write your password down and store it somewhere safe, like a password manager or a locked drawer. If you use a password manager, it can generate a strong password for you and remember it automatically.

Passwords are case-sensitive, which means "MyPassword" is different from "mypassword". If you set a password with capital letters, the person opening the file must type those capital letters in the same places. Make sure anyone who needs to open the document knows the exact password, including which letters are capitalized.

Password protection encrypts the file, so it is secure even if someone copies the file to a USB drive or downloads it from email. The encryption is built into the file itself and cannot be removed without the password.

Removing a password from a document

If you want to remove password protection from a document you created, open the file and enter the password when prompted. Then follow the same steps you used to add the password, but leave the password field blank. On Windows, go to File > Info > Protect Document > Encrypt with Password, and when the dialog appears, delete any text in the password field and click OK twice. On Mac, go to File > Properties > Security, delete the password from the "Password to open" field, and click OK.

Save the document. The password protection is now removed, and anyone can open the file without entering a password.

Differences between older Word versions

If you are using Word 2003 or earlier, the steps are different. Open the document, go to File > Save As. In the Save dialog, look for a Tools menu or button (it may say "Tools" or have a gear icon). Click it and select Security Options or General Options. You will see a field for "Password to open". Type your password there, click OK, confirm the password, and then save the file.

The concept is the same — the document becomes encrypted and locked — but the menu path is different. If you are unsure which version you have, click File > Help (or About Microsoft Word on Mac) and look for the version number.

Frequently Asked Questions

Can I password-protect a document that is already shared with others?

Yes. Add the password to your copy of the document, save it, and then send the updated version to the people who need it. They will need to enter the password to open it. If the document is in a shared folder like OneDrive or SharePoint, uploading the password-protected version will replace the old one, and anyone trying to open it will see the password prompt.

What if I set a password and now I cannot remember it?

There is no recovery method. Word does not have a "forgot password" option, and Microsoft support cannot unlock the file. If the document is critical, your only option is to recreate it from a backup or from memory. This is why writing down passwords or using a password manager is important.

Does password protection work if I save the document to OneDrive or Google Drive?

Yes. The password protection is part of the file itself, not part of the cloud storage. When someone downloads or opens the file from OneDrive, Google Drive, or any other location, they will still need to enter the password. The cloud storage does not remove or bypass the encryption.

Can I password-protect only certain pages or sections of a document?

Word does not have a built-in feature to protect individual pages or sections with different passwords. Password protection locks the entire document. If you need different people to see different parts, you would need to create separate documents and password-protect each one individually.

Is password protection the same as making a document read-only?

No. Read-only means someone can open and view the document but cannot edit it. Password protection means the document is completely locked until the password is entered. You can set a document to be both password-protected and read-only, but they are two different features.