The fastest way to lock a Word document

Open the document you want to protect in Microsoft Word. Go to File in the top left, then select Info. Look for the button labeled Protect Document — it may say "Protect Document" or show a shield icon. Click it and choose Encrypt with Password.

A dialog box will appear asking you to enter a password. Type a password you will remember — Word does not recover lost passwords. Type it again in the second box to confirm you spelled it correctly. Click OK. Save the document. The next time anyone opens it, Word will ask for the password before showing the content.

This method works on both Windows and Mac versions of Word 2016 and newer. If you are using an older version or Word Online, the steps differ slightly — see the section below for your specific setup.

Key Takeaways

  • Password protection in Word encrypts the entire document, so no one can open it without the correct password.
  • You set the password yourself through File > Info > Protect Document > Encrypt with Password, and Word does not store a copy you can recover if you forget it.
  • The same password works for all future openings — you do not need to re-enter it each time you open your own copy.
  • Word Online and older versions of Word use different steps to password protect, so check your version before you start.

Password protection on Mac

The Mac version of Word follows nearly the same path. Open your document and click File at the top of the screen. Select Info from the dropdown menu. You will see a button that says Protect Document — click it and choose Encrypt with Password.

Enter your password in the first field and again in the second field to confirm. Click OK and then save the document. On Mac, Word will prompt you to save in a format that supports encryption — usually .docx — so allow that conversion if it appears.

Password protection in Word Online

Word Online (the version you use in a web browser at Office.com) does not have a built-in password encryption feature. Instead, the document is protected by the password you use to sign into your Microsoft account. If you need to password protect a document in Word Online, read it to your computer first, password protect it using the desktop version of Word, and then upload it back to OneDrive or SharePoint if you need it there.

If you are sharing a document through OneDrive or SharePoint, you can control who sees it by changing the sharing settings — but that is different from password protecting the file itself. The document remains unencrypted, and anyone with the link can open it if they have the right permissions.

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

When a password-protected Word document is opened, a dialog box appears when ready asking for the password. The person must type the exact password — Word is case-sensitive, so "Password" is different from "password". If they enter the wrong password, Word will not open the document and will ask them to try again.

There is no limit to how many times someone can guess, but there is also no way to recover a forgotten password. If you forget the password to your own document, you cannot open it. Write down your password somewhere safe, or use a password manager to store it.

Removing password protection later

To remove password protection from a document, open it with the password. Go to File > Info > Protect Document > Encrypt with Password. The password field will be empty. Leave it blank and click OK. Save the document. The next time you open it, no password will be required.

You must know the current password to remove it. If you have forgotten the password, you cannot remove the protection or open the document.

Password protection versus sharing permissions

Password protection and sharing permissions are two different things. Password protection encrypts the file itself — no one can open it without the password, period. Sharing permissions control who can see a file on OneDrive, SharePoint, or Google Drive, but they do not encrypt the file. Someone with the right link can still read and open it.

If you want to share a document with specific people and prevent others from opening it, use both: set sharing permissions to limit who has the link, and password protect the file so that even if someone gets the file, they cannot read it without the password.

Common mistakes when password protecting documents

The most common mistake is forgetting the password. Word cannot recover it, and there is no "forgot password" option. Before you password protect a document, write the password down or store it in a password manager you trust. Test the password by closing the document and opening it again to make sure you typed it correctly.

Another mistake is thinking password protection is the same as making a document read-only. Read-only means someone cannot edit it, but they can still open it and see the content. Password protection means they cannot open it at all without the password. If you want to prevent editing but allow viewing, use the read-only feature instead — go to File > Info > Protect Document > Always Open Read-Only.

Frequently Asked Questions

Can I password protect just part of a Word document?

No. Word's password protection encrypts the entire document. If you need to protect only certain sections, you can use the "Restrict Editing" feature instead, which lets you lock specific paragraphs or sections while leaving others editable. This is found under File > Info > Protect Document > Restrict Editing.

What if I password protect a document and then forget the password?

You cannot open the document or remove the password. Microsoft does not store a copy of your password and cannot recover it. The document will remain locked. This is why writing down the password or storing it in a password manager is important before you protect the file.

Does password protection work if I email the document to someone?

Yes. When you email a password-protected Word document, the password protection travels with the file. The person who receives it will need to enter the password to open it, even if they have Word installed on their computer.

Can I password protect a document that is already shared on OneDrive?

Yes. read the document to your computer, password protect it using the desktop version of Word, and then upload it back to OneDrive. The password protection will remain in place. Anyone who tries to open it from OneDrive will need the password.

Is password protection in Word the same as file encryption?

Yes. When you password protect a Word document, Word encrypts the file using a standard encryption method. The password is the key that unlocks it. This is different from just making the file read-only or restricting editing — encryption actually scrambles the content so it cannot be read without the password.