What password protection actually does

Password-protecting a Word document means setting a password that someone must enter before they can open the file at all. When you do this, the document itself becomes encrypted — the content is scrambled in a way that requires the correct password to unscramble it. Without the password, the file is unreadable.

This is different from other Word security features. You can also set a password that lets people open the document but prevents them from editing it, or from printing it. For most people, the "can't open without a password" option is what they want.

Password protection works on both Windows and Mac versions of Microsoft Word, and also on Google Docs and LibreOffice. The steps are slightly different depending on which program you use.

Key Takeaways

  • In Microsoft Word on Windows, go to File > Info > Protect Document > Encrypt with Password, then type your password twice.
  • On Mac, use File > Properties > Security > Require a Password to Open This Document.
  • In Google Docs, you cannot password-protect a single document — instead, you control who can view or edit it through the Share settings.
  • A strong password for a document should be at least 12 characters and include uppercase, lowercase, numbers, and symbols.
  • If you forget the password, Microsoft and Google cannot recover it for you — write it down somewhere safe or use a password manager.

Password protection in Microsoft Word on Windows

Open the document you want to protect. Click the File tab in the top left corner. From the menu that appears, click Info. On the right side of the screen, you will see a button that says "Protect Document" — click it and select "Encrypt with Password" from the dropdown.

A dialog box will appear asking you to enter a password. Type your password, then click OK. Word will ask you to type the password again to confirm it. Once you click OK a second time, the document is protected. The next time someone tries to open it, they will see a password prompt before the document opens.

If you want to remove the password later, follow the same steps but leave the password field blank when the dialog appears, then click OK.

Password protection in Microsoft Word on Mac

Open the document. Click File in the menu bar at the top, then select Properties. In the Properties window, click the Security tab. Check the box next to "Require a Password to Open This Document." Type your password in the field that appears, then click OK.

Word will ask you to type the password again. After you confirm it, save the document — the protection takes effect when you save. The next time the file is opened, a password prompt will appear.

Password protection in Google Docs

Google Docs does not have a single-document password feature. Instead, you control access through the Share button. Click Share in the top right corner of the document. In the sharing dialog, you can set who can view, comment on, or edit the document — but there is no password option.

If you need password protection for a Google Doc, your options are limited. You can restrict sharing to specific people and turn off the ability for them to share it further. You can also read the document as a Word file, password-protect it in Word, and then share the Word file instead.

What makes a strong password for a document

A password that is straightforward to guess is almost no protection at all. Use at least 12 characters. Mix uppercase letters, lowercase letters, numbers, and symbols — something like "BlueMoon#2024$Safe" is much stronger than "password123."

Avoid using words from the dictionary, your name, your birthday, or anything someone who knows you could guess. Do not use the same password you use for email, banking, or other important accounts — if someone cracks one password, you do not want them to have access to everything.

Write the password down in a physical notebook kept in a safe place, or store it in a password manager like Bitwarden, 1Password, or KeePass. Do not email it to yourself or store it in a text file on your computer.

What happens if you forget the password

Microsoft and Google cannot recover a forgotten document password. There is no "reset" option and no way to contact support to unlock it. If you forget the password, the document is locked permanently.

This is actually a feature, not a bug — it means the encryption is strong enough that even the company that made the software cannot break it. But it also means you need to keep track of your password yourself. If you use a password manager, the password is stored there. If you write it down, keep the paper somewhere you will not lose it.

When password protection is and is not enough

Password protection stops someone from opening your document by accident or by casually trying to read it. It does not protect against someone with serious technical skill and time — encryption can be broken, though it takes significant effort.

If you are protecting a document that contains financial information, medical records, or other sensitive data, password protection is a reasonable first step. If you are protecting something that a determined person with resources might want to access, you need additional security measures beyond a password.

Also remember that password protection only protects the file itself. If you email the document to someone, it travels across the internet unencrypted. If you store it on a cloud service like OneDrive or Google Drive, the company can see the file (though they cannot read the contents if it is password-protected). If you want end-to-end encryption for sharing, you need a different tool.

Frequently Asked Questions

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

No. Word's password protection is all-or-nothing — either the entire document is locked behind a password, or none of it is. If you need to protect specific sections while leaving others editable, you can use Word's "Restrict Editing" feature instead, which lets you lock certain parts while allowing changes to others.

What if I want people to open the document but not edit it?

In Word on Windows, go to File > Info > Protect Document and choose "Restrict Editing" instead of "Encrypt with Password." This lets you set a password that prevents editing but allows the document to be opened and read. On Mac, use File > Properties > Security and check "Require a Password to Modify This Document."

Does password-protecting a Word document slow it down?

No. The encryption happens when you save the file and when someone opens it, but once the document is open, it works normally. You will not notice any difference in speed or performance.

If I password-protect a document and then share it, does the recipient need the password?

Yes. When you send a password-protected Word document to someone, they will need to enter the password before they can open it. You should tell them the password through a separate channel — never in the same email as the document.

Can I password-protect a document that is already shared on OneDrive or Google Drive?

Yes, but it works differently depending on where it is stored. If the document is in OneDrive and you password-protect it in Word, the password protection applies to the file itself. People who have access to the file through OneDrive sharing will still need the password to open it. With Google Docs, you cannot password-protect the document itself, only control who can access it through sharing settings.