sodcalculator

10 Tech How-To

Set a Password on a Word Document

Guide 10-43983 · Updated · Step by step

This guide shows you how to lock a Microsoft Word document with a password so that only people who know it can open or modify the file. You’ll need Microsoft Word installed (Microsoft 365, Word 2021, 2019, or 2016 all work) and the document you want to protect saved on your computer.

What You’ll Need

  • Microsoft Word (desktop version for Windows or Mac)
  • The document you want to protect, saved in the modern .docx format (older .doc files also work but the steps may differ slightly)
  • A password you can remember – there is no recovery method if you forget it

Step-by-Step

  1. Open the document in Microsoft Word. Make sure you have finished all your edits, because you’ll need to save the file again after setting the password.
  2. Click the File tab in the top-left corner of the window. This opens the backstage view.
  3. In the left sidebar, click Info. You’ll see a section called Protect Document (on Windows) or Protect Document (on Mac).
  4. Click the Protect Document button (it may appear as a lock icon or a dropdown arrow). From the menu, choose Encrypt with Password.
  5. A dialog box will appear asking for a password. Type the password you want to use. Important: passwords are case-sensitive, so “Secret123” is different from “secret123”.
  6. Click OK. Word will immediately ask you to retype the password to confirm. Enter the same password again and click OK.
  7. Now go back to the document. You’ll see a message in the Info panel that says “A password is required to open this document.”
  8. Click File again, then Save (or press Ctrl+S on Windows / Cmd+S on Mac) to save the password-protected file. If you close without saving, the password won’t be applied.
  9. To test it, close the document completely and reopen it. Word will ask for the password before showing any content.

That’s it. The password now protects the entire document – nobody can open it without entering the correct password.

Common Mistakes

  • Forgetting the password – there is no built-in way to recover or reset it. Microsoft cannot retrieve it for you. Write it down somewhere safe.
  • Not saving after setting the password – if you close Word without saving, the password is not applied. Always save after step 8.
  • Using the same password for both open and modify – Word offers two separate protections: one to open the file and one to restrict editing. The steps above set the open password. If you also set a modify password, make sure you remember which is which.
  • Confusing password with digital signature – the “Protect Document” menu also has options like “Mark as Final” or “Restrict Editing”. Those do not require a password to open; they only limit changes.
  • Typing the password in the wrong field – when you choose “Encrypt with Password”, only the password field matters. Don’t accidentally set a modify password instead.

Tips

  • Use a strong password: at least 8 characters, mixing uppercase, lowercase, numbers, and symbols. But make sure you can remember it.
  • If you only want to prevent others from editing (but allow them to read), use Restrict Editing instead of a password. That lets you set a password for edits, but the file can still be opened without one.
  • Keep a backup copy of the unprotected document if you think you might forget the password. Store it in a safe place.
  • On Windows, you can also right-click the file in File Explorer, choose Properties, then Advanced, and check “Encrypt contents to secure data”. That’s a different, stronger encryption tied to your Windows account, but it’s not the same as a Word password.
  • If you share the file online (OneDrive, email), the password travels with the file. Anyone who has the password can open it, so share the password separately if needed.

Troubleshooting

I set the password but it doesn’t ask when I reopen the file.
You likely didn’t save after setting the password. Go back to File > Info, check if it says “A password is required to open this document”. If yes, save again. If not, repeat the steps and save.

I forgot the password – can I recover it?
No. Word does not provide a recovery method. You can try third-party tools, but they are not reliable and may not work with modern encryption. The only way is to use a backup copy of the file that was saved before you set the password.

The password works on my computer but not on another.
Make sure the other person is using a recent version of Word. Very old versions (pre-2007) cannot open files encrypted with the modern AES encryption. Ask them to update Word or save the file in the older .doc format (though that uses weaker encryption).

I get an error saying “The file is corrupt” when I try to open it.
This can happen if the file was saved with a password and then edited by a program that doesn’t support encryption. Try opening the file in Word on your original computer; if that fails, use the backup copy.

I want to remove the password later.
Open the document, enter the password, go to File > Info > Protect Document > Encrypt with Password, delete the existing password (leave the field blank), click OK, and save the file. That removes the protection.

Does this work on Word for the web (free online version)?
No. The free online version of Word does not support password protection. You need the desktop version. You can, however, open a password-protected document in the web version if you know the password – it will prompt you for it.

Frequently Asked Questions

Can I set a password that only prevents editing, not opening?
Yes. Go to File > Info > Protect Document > Restrict Editing. In the panel that appears, check “Allow only this type of editing in the document” and choose “No changes (Read only)”. Then click “Yes, Start Enforcing Protection” and set a password. Users can open the file without a password, but they cannot edit unless they enter the password.

Is the password encryption strong enough for sensitive data?
Word uses AES-256 encryption by default in modern versions, which is considered strong. However, if you need to protect highly sensitive data, consider using a dedicated encryption tool like BitLocker (Windows) or FileVault (Mac).

Can I use the same password for multiple documents?
Yes, but it’s not recommended. If someone guesses it, all your documents are exposed. Use a unique password for each sensitive document.

What happens if I send the password-protected file via email?
The file remains encrypted. The recipient will need the password to open it. Send the password separately (e.g., via text message) to avoid it being in the same email.

Does the password protect against ransomware or malware?
No. The password only prevents someone from opening the file in Word. Malware can still encrypt or delete the file itself. Always keep backups.

Can I set a password on a Word document using my phone?
The Word mobile apps (iOS/Android) do not have a direct option to set a password. You can open a password-protected file on mobile, but to set one you need the desktop version.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →