Password protection locks your Word document so that anyone who tries to open it must type the correct password first

Microsoft Word has a built-in feature that encrypts your document with a password. When you set this up, the file itself becomes locked — even if someone has the document file on their computer, they cannot read it without entering the password you chose. This works the same way in Word on Windows, Mac, and the web version.

The process takes about two minutes and requires only that you know where the Info menu is located. Once you set a password, you will need to type it every time you open that document, so choose something you can remember or store in a password manager.

Key Takeaways

  • Word's password protection encrypts the entire document, making it unreadable without the correct password.
  • On Windows and Mac, you access password protection through File > Info > Protect Document.
  • The web version of Word (Office.com) does not have a built-in password feature, but you can password-protect the file through OneDrive or SharePoint instead.
  • You must remember your password — Word cannot recover it if you forget, and the document will be permanently locked.
  • Password protection is different from sharing permissions; it encrypts the file itself rather than controlling who can access it through a link.

How to password protect a Word document on Windows

Open the document you want to protect in Microsoft Word. Click the File tab in the top left corner, 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 — it can be any combination of 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 by pressing Ctrl+S or clicking File > Save. The password protection is now active.

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

How to password protect a Word document on Mac

Open your document in Word and click File in the menu bar at the top. Select Info from the dropdown menu. Look for the button that says Protect Document and click the dropdown arrow next to it.

Choose Encrypt with Password. A dialog will appear asking for your password. Enter the password you want to use and click OK. Word will prompt you to type it again for confirmation. Type it exactly as you did the first time and click OK. Save the document by pressing Command+S or using File > Save. Your document is now password protected.

What to do if you are using Word online

The web version of Word at Office.com does not have a password protection feature built into the application itself. However, if your document is stored on OneDrive or SharePoint, you can password-protect the file through those services instead.

Right-click the document file in OneDrive or SharePoint and select Share. Choose Specific people and set the permission to View only or Edit depending on what you want. You can also click More options to set an expiration date for access. This controls who can see the file, but it is not the same as encrypting the document with a password — people you share it with can still read it once they have access.

If you need true password encryption for a file you use in Word online, download the document to your computer, password-protect it using the Windows or Mac steps above, then upload it back to OneDrive or SharePoint.

Choosing a password that actually protects your document

A strong password is at least 12 characters long and includes uppercase letters, lowercase letters, numbers, and symbols. Avoid passwords based on your name, birthdate, or common words. Do not use the same password for your document that you use for email, banking, or other important accounts.

Write your password down in a physical notebook kept in a safe place, or store it in a password manager like Bitwarden, 1Password, or the password manager built into your browser. If you forget the password, there is no way to recover it — Word cannot reset it, and you will not be able to open the document.

Removing password protection from a document

If you no longer want the document to be password protected, open it and type the password when prompted. Once the document is open, go to File > Info > Protect Document > Encrypt with Password. The password dialog will appear again. Leave the field blank and click OK. Save the document. The password protection is now removed.

You can also remove the password by opening the document, going to File > Save As, and saving it as a new file without password protection. The original file will still be protected, but the new copy will not be.

Password protection versus other security features

Word offers several different ways to control access to documents, and they work differently. Password protection encrypts the file itself so it cannot be opened without the password. Sharing permissions control who can see or edit a file through OneDrive or SharePoint, but do not encrypt it. Marking a document as final prevents accidental editing but does not prevent someone from removing that restriction.

If you want to prevent someone from editing your document but still allow them to read it, use File > Info > Protect Document > Mark as Final instead. If you want to control who can access the file through a cloud service, use the sharing settings in OneDrive or SharePoint. If you want to make the file completely unreadable without a password, use password protection.

Frequently Asked Questions

What happens if I forget my password?

Word cannot recover or reset a forgotten password. The document will be permanently locked and unreadable. There is no backdoor or recovery method. This is why storing your password in a password manager or writing it down in a secure location is important.

Can I password protect just part of a document?

No. Word's password protection locks the entire document. If you need to protect only certain sections, you can split the document into separate files and password-protect only the sensitive one, or use the Restrict Editing feature under File > Info > Protect Document to allow editing only in specific sections.

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

Yes. The password protection stays with the file no matter how it is sent. When the recipient opens the document, they will be prompted for the password before they can read it.

Can someone break a Word document password?

Password-protected Word documents use encryption, which makes them very difficult to break with standard tools. A strong password with 12 or more characters including numbers and symbols provides solid protection against casual attempts. However, no encryption is completely unbreakable with enough time and computing power.

Is password protection the same as read-only mode?

No. Read-only mode prevents editing but allows anyone to open and read the document. Password protection prevents anyone from opening the document at all without the correct password. They are two different features with different purposes.