The simplest way to password-protect a Word document

Open the document you want to protect in Microsoft Word. Go to File in the top left, then select Info. Look for the button labeled Protect Document — it may say "Protect Document" or show a shield icon. Click it and choose Encrypt with Password.

Word will ask you to type a password twice. Use something you can remember but that would be hard for someone else to guess — a mix of uppercase and lowercase letters, numbers, and symbols works better than a single word. Click OK. Save the document. From now on, anyone who opens it will need to type that password first.

That is the entire process. The document itself stays on your computer or in your cloud storage; the password just locks it so the file cannot open without the correct entry.

Key Takeaways

  • Password protection in Word encrypts the document so it cannot open without the correct password, even if someone has the file itself.
  • The password feature is built into Word and takes less than a minute to set up through File > Info > Protect Document > Encrypt with Password.
  • A strong password uses a mix of uppercase letters, lowercase letters, numbers, and symbols — not just a word from the dictionary.
  • If you forget the password, Microsoft cannot recover it for you, so write it down somewhere safe or use a password manager to store it.
  • Password protection works the same way whether you use Word on Windows, Mac, or the web version, though the menu locations may look slightly different.

What password protection actually does and does not do

When you password-protect a Word document, you are encrypting the file. That means the contents are scrambled using a mathematical formula that requires the correct password to unscramble. Someone cannot open the document, read it, or edit it without typing the password first — not even if they have the file on their computer.

Password protection does not prevent someone from deleting the file, moving it, or sending it to someone else. It only prevents them from opening it. If you share a password-protected document with a colleague and they forget the password, they cannot open it anymore — and neither can you if you forget it. Microsoft does not store your password and cannot unlock the document for you.

This is different from sharing permissions, which let you decide whether someone can view, edit, or comment on a document you have shared with them. Password protection is about locking the file itself.

When to use password protection and when not to

Password protection makes sense when you have sensitive information — financial records, medical notes, legal documents, or anything you would not want a family member or coworker to read by accident. It is also useful if you store documents on a shared computer or cloud service and want to keep them private from other people who use the same account.

Password protection is less useful if you are the only person who will ever open the file, or if you are sharing the document with someone and need them to be able to open it without asking you for a password every time. If you share a password-protected document, you have to share the password separately — usually by email or in person — which creates its own security problem.

If you are worried about someone stealing your documents or accessing them without permission, password protection on the file itself is a good first step. But it works best as part of a larger plan: keep your computer or phone locked when you are not using it, use a strong password on your computer or cloud account, and do not leave sensitive documents sitting on a shared drive where anyone can find them.

How to remove password protection if you change your mind

Open the password-protected document and type in the password when Word asks for it. Go to File, then Info, then Protect Document, and choose Encrypt with Password again. This time, leave the password field blank and click OK. Save the document. The password protection is now removed.

You can also change the password without removing protection entirely. Follow the same steps but type a new password instead of leaving it blank.

Password protection on different versions of Word

Microsoft Word on Windows, Mac, and the web all have password protection built in, but the menus look slightly different depending on which version you use. On Windows and Mac, the path is File > Info > Protect Document > Encrypt with Password. On Word Online (the free web version), go to File, look for Info, and you should see an option to add a password.

If you password-protect a document in one version of Word and open it in another, the password protection stays in place. You will still need to type the password to open it, no matter which device or version you use.

Google Docs and other cloud-based word processors do not have the same password encryption feature. If you need password protection, you have to use Microsoft Word or save the document as a Word file (.docx) before protecting it.

What happens if you forget your password

If you forget the password to a Word document, you cannot open it. Microsoft does not have a "forgot password" button for encrypted documents, and there is no way to recover the password. The encryption is designed to be unbreakable without the correct password — that is what makes it find.

The only way to avoid this is to write down your password somewhere safe, or use a password manager — a program like Bitwarden, 1Password, or the password manager built into Windows or Mac that stores passwords for you. If you use a password manager, you only have to remember one master password, and the manager remembers all the others.

If you have a document you cannot open and you do not remember the password, you will need to go back to the original source and ask for an unprotected copy, or recreate the document from scratch.

Password protection versus other ways to keep documents safe

Password protection is one tool, but it works best alongside other security habits. If your computer gets stolen or hacked, a password on a single document does not protect you — the thief could still access your email, cloud storage, or other files. Here are the layers that work together:

  • Computer or phone password: Lock your device so no one can turn it on and access your files without permission.
  • Cloud account password: Use a strong, unique password on services like OneDrive, Google Drive, or Dropbox so someone cannot log in and read all your documents at once.
  • Document password: Encrypt individual files that contain especially sensitive information.
  • Two-factor authentication: Add a second step to your cloud account login — usually a code sent to your phone — so a stolen password alone is not enough to get in.

If you only password-protect a document but use a weak password on your cloud account, someone could log into your account and read the document anyway. The strongest approach is to use strong passwords everywhere, lock your devices, and then add document-level protection for your most sensitive files.

Frequently Asked Questions

Can I password-protect just part of a Word document?

Not with the built-in encryption feature. When you password-protect a Word document, the entire file is locked. If you want to protect only certain sections, you can use Restrict Editing (found under File > Info > Protect Document) to allow editing in some parts while locking others, but this is a different feature and less find than full encryption.

What if I share a password-protected document and the other person loses the password?

They cannot open the document anymore. You will need to send them an unprotected copy, or they will have to ask you to open it and save it without the password. There is no way to recover a lost password, so if you share protected documents regularly, consider whether the inconvenience is worth the security benefit.

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 feature, which you can set up through your PDF reader or through Word's export settings, but it is separate from Word's encryption.

Is Word password protection strong enough to keep hackers out?

Word's encryption is strong enough to stop casual snooping — someone who finds your file on a shared computer or borrowed laptop will not be able to open it without the password. For highly sensitive documents, some people use additional encryption tools, but Word's built-in protection is sufficient for most personal and small-business use.

Can I password-protect a document in Word Online?

Yes, but the process is slightly different. In Word Online, go to File and look for Info or Protect Document. The exact menu location depends on your version, but the feature is available. If you cannot find it, read the document to your computer, protect it in the desktop version of Word, and upload it back to the cloud.