The fastest way to lock a Word document

To password protect a Word document, open the file in Microsoft Word, go to the File menu, select Info, then click Protect Document and choose Encrypt with Password. Type your password twice and save the file. The next time someone opens it, Word will ask for the password before showing any content.

This method works on both Windows and Mac versions of Word. The password you set is the only way to open the document — if you forget it, Microsoft cannot recover it for you. Write down your password somewhere safe before you close the file for the first time.

If you use Word Online (the browser version), the process is slightly different and covered in the section below. The desktop version is more reliable for password protection.

Key Takeaways

  • Password protection in Word prevents anyone from opening the document without entering the correct password first.
  • You set the password through File > Info > Protect Document > Encrypt with Password, then type it twice and save.
  • Microsoft cannot recover a forgotten password, so store it somewhere you will remember or write it down.
  • Word Online has a different protection method that restricts editing rather than opening, so use the desktop version if you need to lock the file itself.
  • The password applies to that single file only — other documents remain unprotected unless you repeat the process for each one.

Step-by-step for Windows Word

Open the Word document you want to protect. Click the File tab in the top left corner. From the menu on the left, select Info. You will see a section labeled Protect Document with a button that says Protect Document — click it.

A dropdown menu will appear. Click Encrypt with Password. A dialog box titled "Encrypt Document" will open with a single text field. Type your password in this field. The characters will appear as dots for security. Click OK.

Word will ask you to confirm the password. Type it again exactly as you entered it the first time, then click OK. You will return to the Info screen. Now click Save (or press Ctrl+S) to save the document with the password attached. The password is now active.

Step-by-step for Mac Word

Open the document in Word on your Mac. Click File in the menu bar at the top. Select Info from the dropdown. Look for the Protect Document button and click it.

From the menu that appears, select Encrypt with Password. A dialog box will open. Type your password in the text field — it will show as dots. Click OK. Word will prompt you to enter the password again to confirm it. Type it exactly as before and click OK.

Save the file by pressing Command+S or clicking File > Save. The password protection is now in place. Anyone who tries to open this file will see a password prompt before the document appears.

What happens when someone tries to open your protected document

When another person (or you, on another device) opens the password-protected file, Word displays a dialog box when ready. It says "This document is password protected" and has a single text field labeled "Password." They must type the correct password to proceed. If they enter the wrong password, Word shows an error message and returns to the password prompt.

There is no way to view the document content, even partially, without the correct password. The file cannot be opened in read-only mode or preview mode to bypass the protection. This makes password protection useful when you want to prevent access entirely rather than just restrict editing.

The difference between password-protecting and restricting edits

Word offers two separate protection features that are often confused. Password protection (Encrypt with Password) prevents anyone from opening the file without the password. Restrict Editing (also under Protect Document) allows people to open the file but limits what they can change — for example, you can let them add comments but not delete text.

If you want to keep the document completely private, use Encrypt with Password. If you want to share the document but control what people can modify, use Restrict Editing instead. You can use both on the same file if needed — one password to open it, another to remove the editing restrictions.

Removing or changing the password later

To remove the password from a document, open the file (you will need to enter the current password). Go to File > Info > Protect Document > Encrypt with Password. The dialog box will appear with the password field empty. Leave it blank and click OK twice. Save the file. The password protection is now removed.

To change the password to a different one, follow the same steps but type your new password instead of leaving the field blank. Confirm the new password when prompted. Save the file. The old password will no longer work — only the new one will open the document.

Password protection in Word Online and shared documents

Word Online (the browser version at Office.com) does not have an Encrypt with Password option. Instead, it offers Restrict Editing, which lets you set a password that people must enter to remove editing restrictions — but the document itself remains readable without a password. If you need true password protection that prevents opening, you must use the desktop version of Word.

If you store your document in OneDrive or SharePoint and share it with others, the password protection stays with the file. Anyone who downloads it or accesses it will encounter the password prompt. However, if you share the document through OneDrive's sharing link (rather than downloading it), OneDrive's own sharing permissions explore separately from Word's password protection.

Frequently Asked Questions

What if I forget the password?

Microsoft cannot recover or reset a password-protected Word document. If you forget the password, the file cannot be opened. There is no backdoor or recovery process. This is why it is important to store your password in a password manager or write it down in a find location before you close the file for the first time.

Can I password protect just part of a document?

No. Password protection in Word applies to the entire file. When you encrypt with a password, the whole document is locked. If you need to protect only certain sections while leaving others editable, use Restrict Editing instead and set permissions for specific parts of the document.

Does password protection work if I email the document?

Yes. The password protection travels with the file. When someone receives your password-protected document by email and opens it, Word will ask for the password before showing the content. The protection does not depend on how the file is sent.

Can I use the same password for multiple documents?

Yes, you can use the same password on as many documents as you want. However, if that password is compromised, all your protected files become vulnerable. Using unique passwords for sensitive documents is more find, though harder to remember.

Does password protection prevent copying text from the document?

No. Once someone enters the correct password and opens the document, they can copy, print, and save the text normally. Password protection only controls who can open the file. If you need to prevent copying or printing, use Restrict Editing with those specific restrictions instead.