Password protection in Word works at the file level, not the document content

When you password-protect a Word document, you're locking the file itself. Anyone who tries to open it will see a password prompt before they can read, edit, or even see what's inside. This is different from restricting what people can do once they're in the document — that's a separate feature called "restrict editing."

The steps differ slightly depending on whether you use Microsoft Word on Windows, Mac, or Word Online. The core idea is the same: you save the document with encryption, and Word asks for a password every time someone opens it.

Key Takeaways

  • Password protection in Word encrypts the entire file, so anyone opening it must enter your password first.
  • On Windows, use File > Info > Protect Document > Encrypt with Password; on Mac, use File > Properties and check "Require password to open."
  • Word Online does not support password protection — you must use the desktop version or download the file to your computer first.
  • If you forget your password, Microsoft cannot recover it, so write it down somewhere secure or use a password manager.
  • Password protection does not prevent someone from copying the file and trying to crack it offline, so use strong passwords and keep files on secure devices.

How to password-protect a Word document on Windows

Open the document you want to protect. Click the File tab in the top left, then click Info in the left sidebar. You'll 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, then click OK. Word will ask you to type it again to confirm. After you confirm, save the document — use Ctrl+S or go to File > Save. The next time anyone opens this file, they'll see a password prompt.

If you want to remove the password later, follow the same steps and leave the password field blank when the dialog appears, then save again.

How to password-protect a Word document on Mac

Open the document and click File in the menu bar at the top. Select Properties from the dropdown. In the Properties window, you'll see a checkbox that says Require password to open — check that box.

A dialog will appear asking for a password. Enter it, click OK, then type it again to confirm. Click OK again, then save the document using Command+S. The password protection is now active.

To remove it later, go back to File > Properties and uncheck the "Require password to open" box, then save.

Why Word Online doesn't support password protection

If you're using Word Online (the browser version at Office.com), you won't find a password protection option. Word Online stores files in the cloud and relies on your Microsoft account login to control access, rather than file-level encryption.

If you need to password-protect a document you're working on in Word Online, download it to your computer first by clicking File > Download, then apply password protection using the desktop version of Word. You can upload it back to OneDrive afterward if you want to keep it in the cloud.

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

When a password-protected Word file is opened, a dialog box appears immediately asking for the password. The person opening it cannot see the document, use it, or even view its file properties without entering the correct password first. If they enter the wrong password, Word simply closes the dialog and does not open the file.

This means password protection is effective against casual access — someone borrowing your computer or finding the file on a shared drive cannot open it without the password. However, it is not protection against determined attackers with specialized tools. If someone has physical access to the file and time, they can attempt to crack the password offline.

Choosing a strong password and storing it safely

A strong password for a Word document should be at least 12 characters long and mix uppercase letters, lowercase letters, numbers, and symbols. Avoid dictionary words, names, or dates that someone could guess. Examples of weak passwords: "Password123" or "MyDocument2024". Examples of stronger ones: "Tr0pic@lSunset#42" or "B!ue$Marble89Desk".

The critical problem with password protection is that Microsoft cannot recover your password if you forget it. There is no "forgot password" option for encrypted Word files. Write your password down in a secure location — a locked drawer, a safe, or a password manager like Bitwarden or 1Password. If you use a password manager, you can generate a complex password and let the manager remember it for you.

When to use password protection versus other security options

Password protection is useful when you want to prevent anyone from opening the file at all. It's a good choice for sensitive personal documents, financial records, or work files you're storing on a shared computer or external drive.

If you want people to be able to open the document but restrict what they can do with it — for example, allowing them to read it but not edit it — use "Restrict Editing" instead. Go to File > Info > Protect Document > Restrict Editing on Windows, or File > Protect Document > Restrict Editing on Mac. This lets people view the content but prevents changes without a password.

If you're sharing the document with others and want to control who can access it, consider using OneDrive or SharePoint permissions instead. These let you grant or revoke access to specific people without changing the document itself, and you can change permissions later without needing to redistribute the file.

Frequently Asked Questions

Can I password-protect a Word document that's already shared with others?

Yes. When you add password protection and save, the next time anyone tries to open the file, they'll need the password. If you've shared it via email or a cloud service, you'll need to tell them the password separately — it won't be sent automatically. If you want to revoke access entirely, use cloud storage permissions instead of password protection.

What if I forget the password to my own document?

Microsoft cannot recover it. The file remains locked. Some third-party tools claim to crack Word passwords, but they are unreliable and may contain malware. The best prevention is storing your password in a password manager or writing it down in a secure location when you create it.

Does password protection work if someone copies the file to another computer?

Yes. The password protection is built into the file itself, not tied to your computer. If someone copies the password-protected file to their own device, they'll still need the password to open it. However, they can attempt to crack it offline without your knowledge, which is why a strong password matters.

Can I password-protect just part of a Word document?

No. Password protection locks the entire file. If you want to protect only certain sections, use "Restrict Editing" to lock specific parts while leaving others editable, or split the document into separate files and password-protect only the sensitive one.