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

Microsoft Word lets you set a password that someone must enter before they can read or edit your document. This is different from sharing settings — a password-protected document stays protected no matter who has the file or where it moves. The person opening it needs the exact password you set, not a link or permission from you.

The steps differ slightly depending on whether you use Word on Windows, Mac, or the web version. All three methods work, but the Windows and Mac desktop versions give you more control over what someone can do once they open the file.

Key Takeaways

  • Word documents can be password protected on Windows, Mac, and the web, but desktop versions offer more protection options than the online version.
  • On Windows, use File > Info > Protect Document > Encrypt with Password; on Mac, use File > Properties and check "Require password to open this document."
  • Write down your password somewhere safe outside the document — if you forget it, Microsoft cannot recover it for you.
  • Password protection encrypts the file itself, so the password works even if someone copies the file to a USB drive or email.

Password protecting a Word document on Windows

Open the document you want to protect in Word. Click the File tab in the top left, then select Info from 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 the password you want to use — Word will not show the letters as you type, only dots or asterisks. Click OK. Word will ask you to type the password again to confirm you did not make a typo. Enter it a second time and click OK.

Save the document. The next time anyone tries to open this file, Word will prompt them for the password before showing any content. If they enter the wrong password, the document will not open.

Password protecting a Word document on Mac

Open your document in Word on Mac. Click File in the menu bar at the top, then select Properties from the dropdown. A dialog box will open with several tabs.

Look for the checkbox that says Require password to open this document and check it. A password field will appear. Type your password and click OK. Mac will ask you to enter the password again to confirm. Type it a second time and click OK. Save the document — the password protection is now active.

Password protecting a Word document in Word Online

Open your document in Word Online (the version you access through Office.com or OneDrive). Click File in the top left corner, then look for an option labeled Protect Document or Info. The exact wording depends on your version.

Select Protect with Password if you see that option. Enter your password and confirm it. Word Online will encrypt the file so that a password is required to open it. Note that Word Online offers less control than the desktop versions — you cannot set different permissions for editing versus reading.

What password protection actually does and does not do

Password protection encrypts the file itself, which means the protection travels with the document. If someone copies the file to a USB drive, emails it, or uploads it to a cloud service, the password requirement stays in place. They cannot bypass it by moving the file around.

However, password protection only controls who can open the document. On Windows and Mac, you can set additional restrictions through the same menu — for example, you can allow someone to open the document but prevent them from editing it or printing it. These are separate settings from the password itself. Word Online does not offer these extra restrictions.

Password protection does not hide the document from someone who has access to your computer or your cloud storage account. If someone can see your files in OneDrive or your Documents folder, they can see the password-protected file listed there — they just cannot open it without the password.

Choosing a strong password for your document

A strong password is one that would be hard for someone to guess or crack. Use at least 8 characters and mix uppercase letters, lowercase letters, numbers, and symbols. For example, "BlueMoon#2024" is stronger than "password" or "12345678."

Avoid using information someone might know about you, like your birthday, your pet's name, or your street address. Do not use the same password you use for email, banking, or social media — if someone learns this password, you want it to affect only this one document.

Write your password down on paper and store it somewhere safe, separate from the document itself. If you forget the password, Microsoft cannot recover it for you. There is no "forgot password" option for Word documents like there is for email accounts.

Removing or changing a password

To remove password protection, open the document (you will need to enter the current password). On Windows, go to File > Info > Protect Document > Encrypt with Password. Delete the password from the field that appears and click OK. Save the document.

On Mac, open File > Properties, uncheck the box that says Require password to open this document, and save. To change the password instead of removing it, follow the same steps but enter a new password instead of leaving the field blank.

Frequently Asked Questions

Can I password protect just part of a Word document?

No. Password protection applies to the entire document — you cannot lock some sections and leave others open. If you need to protect only certain content, consider splitting the sensitive information into a separate document and protecting that one.

What happens if I forget the password?

You cannot open the document. Microsoft does not have a way to recover or reset passwords on Word documents. Write down your password and keep it somewhere safe. If you lose it, the document remains locked.

Does password protection work if I share the file with someone?

Yes. When you send a password-protected document to someone, they will need the password to open it. You must tell them the password separately — never include it in the same email or message as the file.

Can someone remove the password protection without knowing the password?

Not with standard tools. Password protection uses encryption, which means removing it requires the correct password. Specialized software exists that claims to crack Word passwords, but these tools are unreliable and may not work on newer versions of Word.

Is password protection the same as OneDrive sharing settings?

No. OneDrive sharing settings control who can see the file in your cloud storage. Password protection controls who can open the file itself. You can use both together — restrict sharing to certain people and also require a password to open the document.