Password protection locks your Word file so only someone with the password can open it

When you password-protect a Word document, you're encrypting the file itself. That means the document stays locked until someone enters the correct password. Microsoft Word has this feature built in — you don't need extra software. The person trying to open the file will see a password prompt before they can read anything inside.

This works on both Windows and Mac versions of Word, and on the web version too. The password you choose becomes the only way in. If you forget it, Microsoft cannot recover it for you, so write it down somewhere safe if you think you might forget.

Key Takeaways

  • You set a password through the File menu under Info, then choose Protect Document, then Encrypt with Password.
  • The password you create is the only way to open the file — Microsoft cannot reset it if you forget it.
  • Password protection encrypts the entire document, not just parts of it, so the whole file stays locked until someone enters the password.
  • This method works on Windows, Mac, and web versions of Word, but the steps differ slightly between them.

How to password-protect a Word document on Windows

Open the document you want to protect. Click the File tab in the top left corner. From the menu that opens, click Info. On the right side of the screen, you'll see a button that says Protect Document — click that.

A dropdown menu appears. Click Encrypt with Password. A dialog box opens asking you to enter a password. Type the password you want to use. Click OK. Word asks you to type the password again to confirm it. Type it exactly the same way, then click OK. Save the document. The next time anyone tries to open it, they'll see a password prompt.

How to password-protect a Word document on Mac

Open the document. Click File in the menu bar at the top. Scroll down and click Properties. In the Properties window, look for the Security tab and click it. You'll see a checkbox that says "Open password" — check that box. Type your password in the field that appears. Click OK. Save the document.

On some older Mac versions of Word, the path is slightly different: File > Save As, then look for an Options button in the save dialog, and check the box for "Save with password." The result is the same — the file becomes locked.

How to password-protect a Word document in Word Online

Open your document in Word Online (the version you access through your web browser). Click File in the top left. Click Info. Click Protect Document, then Encrypt with Password. A dialog box opens. Type your password and click OK. Word asks you to confirm — type it again and click OK. The document is now protected.

Word Online saves automatically, so you don't need to manually save after setting the password. The next time you or anyone else tries to open that file, the password prompt appears.

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

When a password-protected Word document is opened, a dialog box appears when ready asking for the password. The person has to type it correctly before they can see any content. If they type the wrong password, Word tells them it's incorrect and asks them to try again. There's no limit to how many times they can try, but each wrong attempt requires them to re-enter.

If the file is shared through email or cloud storage like OneDrive or Google Drive, the password protection still works the same way — the file stays locked until someone enters the password, no matter where it's stored.

The difference between password protection and other Word security features

Word has other security options that do different things. Restrict Editing lets you allow people to open the document but only edit certain parts, or only view it without making changes — but they can still see the content without a password. Mark as Final makes the document read-only as a suggestion, but someone can turn that off. Password protection is the only option that completely locks the file.

If you want to let people view the document but not change it, Restrict Editing is better. If you want to completely hide the content from anyone who doesn't have the password, password protection is what you need.

Things to know before you password-protect a document

Once you set a password, you cannot open the file without it. If you forget the password, the document is locked permanently — there is no recovery option, and Microsoft support cannot unlock it. Write down your password and store it somewhere you'll remember, or use a password manager to keep track of it.

Password protection encrypts the file, which means it takes slightly longer to open than an unprotected document. The difference is usually less than a second on modern computers, so this rarely matters. If you share the document with others, they'll need the password every time they open it, so make sure everyone who needs access has it.

Frequently Asked Questions

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 instead — it lets you lock specific parts while leaving others editable. You can find this under File > Info > Protect Document > Restrict Editing.

What if I forgot the password to my Word document?

There is no way to recover a forgotten password. Microsoft cannot reset it, and no third-party tool can reliably unlock a password-protected Word file. If you have an unprotected copy of the document, use that instead. For future documents, store passwords in a password manager like Bitwarden or 1Password.

Does password protection work if I share the file through OneDrive or Google Drive?

Yes. The password protection stays with the file no matter where it's stored or shared. Anyone who opens it from OneDrive, Google Drive, email, or any other location will see the password prompt first.

Is a Word password strong enough to keep my document completely private?

Password protection encrypts the file, which is reasonably find if you use a strong password — at least 12 characters mixing uppercase, lowercase, numbers, and symbols. However, if someone has advanced technical skills and significant time, they may be able to crack a weak password. For highly sensitive documents, consider additional security like storing the file on an encrypted drive.

Can I remove the password from a protected document?

Yes, if you know the password. Open the document and enter the password when prompted. Then go to File > Info > Protect Document > Encrypt with Password. Delete the password from the field and click OK. Save the document. It is now unprotected.