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 from the left sidebar. Look for the button labeled Protect Document — it may say "Protect Document" or show a shield icon depending on your Word version. 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 field to confirm you entered it correctly. Click OK. Save the document. The next time anyone opens it, Word will ask for the password before the document appears on screen.

This method works the same way on Windows and Mac versions of Word 2016 and newer. If you use an older version or a different program like Google Docs or LibreOffice, the steps differ slightly, but the principle is identical: you set a password through a menu option, then save.

Key Takeaways

  • Password protection in Word encrypts the entire document, so no one can open it without the correct password.
  • The password you set cannot be recovered by Microsoft or anyone else if you forget it, so write it down somewhere safe.
  • You can change or remove the password later by opening the document, returning to File > Info > Protect Document, and selecting a new option.
  • Password protection does not prevent someone from copying text if they have the password — it only prevents opening the file without permission.

Where the password option lives in different Word versions

In Word 2016, 2019, and Microsoft 365 (the subscription version), the path is always File > Info > Protect Document > Encrypt with Password. The button location and exact wording may shift slightly between versions, but you are always looking for a shield icon or the word "Protect" near the top of the Info panel.

On a Mac, the steps are identical — click File, then Info, then look for Protect Document. Mac users sometimes see the option labeled as Set Password instead, but it does the same thing.

If you use Word Online (the free version you access through a web browser), password protection works differently. Word Online does not have a built-in password feature. Instead, you rely on the password protection of your Microsoft account and the sharing settings of the folder where the file lives — usually OneDrive or SharePoint. You cannot encrypt the document itself with a separate password.

What happens after you set a password

Once you save a password-protected document, Word encrypts it using a standard encryption method. The file itself becomes unreadable without the password — even if someone copies the file to another computer, they cannot open it. This is different from restricting editing, which still lets someone view the document but prevents changes.

Every time the document is opened, Word prompts for the password before showing any content. The person opening it must type the exact password — capitalization matters. If they enter the wrong password three times in a row, Word may lock them out temporarily, but they can try again after waiting a moment.

If you need to remove the password later, open the document (you will need to enter the current password), go back to File > Info > Protect Document, and select Encrypt with Password again. This time, leave the password field blank and click OK. Save the document. The password is now removed.

Passwords versus other protection options in Word

Word offers several ways to restrict access to a document, and they do different things. Password protection (Encrypt with Password) prevents anyone from opening the file at all without the password. Restrict Editing lets people open and read the document but prevents them from making changes — useful when you want feedback but not edits. Mark as Final signals that the document is complete, but anyone can remove this flag and edit anyway.

If your goal is to keep the document private and unreadable by unauthorized people, password protection is the right choice. If you want to share a document but prevent accidental changes, Restrict Editing is better. You can use both at once — password-protect the document and also restrict editing — but that is usually unnecessary.

Common mistakes that weaken password protection

The most common mistake is using a password that is too straightforward or too straightforward to guess. A password like "password123" or "document1" offers almost no real protection. A stronger password uses a mix of uppercase letters, lowercase letters, numbers, and symbols — something like "Tr0pic@lSunset42" is much harder to crack. The longer the password, the better.

Another mistake is telling people the password in an email or text message. If you need to share a password-protected document, send the document through one channel (email) and the password through a different channel (a phone call or text message). This way, if someone intercepts one, they do not have both pieces.

A third mistake is assuming password protection is the same as backup. Password protection prevents unauthorized access, but it does not protect against data loss. If your computer crashes or the file is deleted, the password does not bring it back. Keep a backup copy of important documents in a separate location.

Password protection on shared documents and cloud storage

If you store a Word document in OneDrive, Google Drive, or Dropbox, password protection still works — the encryption happens at the file level, not the storage level. Anyone who downloads the file will need the password to open it. However, if you share the document through the cloud service's sharing settings, those settings are separate from the password. A person with sharing access can still read the file, but they cannot open it without the password.

If you want to share a password-protected document with someone, send them the file first (through email, cloud storage, or a file transfer service), then send the password separately through a different method. This prevents both the file and password from traveling together.

Be aware that if you password-protect a document and then lose the password, there is no recovery option. Microsoft cannot unlock it for you, and no third-party tool can reliably crack a modern Word password. Store your passwords in a password manager (like Bitwarden, 1Password, or the password manager built into your browser) so you do not lose them.

Frequently Asked Questions

Can someone crack a Word document password?

Modern versions of Word use strong encryption, so cracking a password through brute force (trying thousands of combinations) would take an extremely long time with standard computers. However, very weak passwords can be cracked faster. The best protection is a long, random password with mixed characters. If you forget your password, there is no official recovery method.

Does password protection slow down opening the document?

No. The password prompt appears when ready, and once you enter the correct password, the document opens at normal speed. Encryption and decryption happen in the background and are not noticeable on modern computers.

Can I password-protect only certain pages or sections of a Word document?

Word's built-in password protection encrypts the entire document — you cannot password-protect individual pages or sections. If you need to protect only part of a document, you can split it into separate files, password-protect the sensitive one, and keep the other unprotected. Alternatively, use Restrict Editing to allow changes only in certain sections while locking others.

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

There is no built-in recovery option in Word. Microsoft does not store your password and cannot retrieve it. You will need to recreate the document from a backup or start over. This is why storing passwords in a password manager is important — it prevents this situation.

Does password protection work if I save the document as a PDF?

No. If you save a Word document as a PDF, the Word password protection is lost. PDFs have their own password protection system, which you set through your PDF reader or a conversion tool. The two systems do not carry over from one format to the other.