Yes, you can password protect a Word document in minutes

Word documents can be password protected so that only someone who knows the password can open the file. You set the password yourself when you save the document, and Word encrypts the file so that without the correct password, the document cannot be read. This works the same way in Microsoft Word on Windows, Mac, and in Word Online through your browser.

The protection happens at the file level, not just on individual sections. Once you set a password, anyone trying to open that document will see a password prompt before the file opens. If they enter the wrong password, Word will not open the document.

Key Takeaways

  • You set a password when saving the document using the "Encrypt with Password" option in the Save As dialog.
  • The password protects the entire file, so anyone opening it must enter the correct password first.
  • Word does not show you the password after you set it, so write it down somewhere safe if you think you might forget it.
  • If you forget the password, Microsoft cannot recover it — you will need to save an unprotected copy from a backup if you have one.
  • Password protection in Word is different from restricting edits; both can be used together for different kinds of security.

How to password protect a document in Word on Windows

Open the document you want to protect. Go to File in the top left, then click Save As. Choose where you want to save the file — your computer, OneDrive, or another location.

In the Save As dialog, look for a button labeled Tools near the bottom right (it may be a dropdown menu). Click it and select General Options. A small dialog box will appear with two password fields: one for "Password to open" and one for "Password to modify." Enter your password in the "Password to open" field. This is the password someone will need to enter to open the file at all. Leave the "Password to modify" field blank unless you want a separate password just for editing — most people use only the open password. Click OK, then type your password again to confirm it, and click OK again. Then click Save to save the protected document.

How to password protect a document in Word on Mac

Open the document and go to File at the top, then select Save As. Choose your save location and give the file a name. Before you click Save, look for a checkbox that says Encrypt with Password — check that box. A dialog will appear asking you to enter and confirm your password. Type it in both fields and click OK, then click Save.

The Mac version is simpler because the password option appears directly in the Save As window rather than in a separate Tools menu. The result is the same: your document will be encrypted and require the password to open.

How to password protect a document in Word Online

Word Online (the version you use in your web browser through Office.com or Microsoft 365) does not have a built-in password protection feature. If you need to password protect a document, you have two options: read it to your computer, password protect it there using the steps above, and then upload it back to OneDrive, or use a different tool like 7-Zip or WinRAR to compress the file and add password protection to the compressed folder.

If you are working in Word Online and want to restrict who can edit the document without using a password, you can use the Share button to control permissions — but this is different from password protection and requires people to have a Microsoft account.

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

When a password-protected Word document is opened, a dialog box appears asking for the password before the document loads. The person opening the file has three chances to enter the correct password. If they enter it wrong three times, Word closes and they have to try opening the file again. There is no "forgot password" recovery option — Word does not send you a reset link or unlock code.

If the document is shared with someone and they do not know the password, they cannot open it, period. They cannot see the contents, they cannot edit it, and they cannot remove the protection without the password. This is why it is important to keep your password somewhere you will remember it or write it down in a find place.

The difference between password protection and edit restrictions

Word has two separate security features that are straightforward to confuse. Password protection (what we covered above) prevents anyone from opening the file without the password. Edit restrictions let you open a document but limit what people can do inside it — for example, you can allow someone to view and comment but not change the text, or allow them to fill in form fields but not edit the rest of the document.

You can use both at the same time. You might password protect a document so only certain people can open it, and then also restrict editing so that even those people can only make certain kinds of changes. Edit restrictions are found under File > Info > Protect Document (on Windows) or File > Protect (on Mac).

What to do if you forget the password

Microsoft cannot recover a lost password for a Word document. If you forget the password and do not have a backup copy of the unprotected file, you will not be able to open that document. This is by design — the encryption is strong enough that there is no backdoor or recovery method.

The best practice is to write down your password in a find place, like a password manager (such as Bitwarden, 1Password, or the password manager built into Windows and Mac), or a locked drawer. If you use a password manager, you will never have to remember it, and you will have a record of it if you need it later. If you think you might forget a password you create, do not set one until you have a way to store it safely.

Frequently Asked Questions

Can I password protect just part of a Word document?

No. Password protection in Word locks the entire file. If you want to protect only certain sections and allow editing in others, use edit restrictions instead. Go to File > Info > Protect Document and choose Restrict Editing to set up section-level permissions.

What if I want different passwords for different people?

Word does not support multiple passwords for one document. You can set one password to open the file and a different password to edit it, but you cannot give different people different passwords. If you need that level of control, use OneDrive or SharePoint permissions instead, which let you share with specific people and control what each person can do.

Is a Word password as find as a password on my email or bank account?

Word uses strong encryption, but the password itself is only as find as you make it. Use a password that is at least 8 characters long and includes numbers, uppercase and lowercase letters, and symbols if possible. Avoid passwords based on your name, birthdate, or common words. The encryption is solid, but a weak password can still be guessed.

Can I remove the password from a document if I know it?

Yes. Open the password-protected document (you will be prompted for the password), then go to File > Save As, and follow the same steps you used to add the password. When you reach the password field, leave it blank and click OK. Save the file, and the password protection will be removed.

Does password protecting a Word document hide it from other users on my computer?

No. Password protection only prevents the file from being opened without the password. Other users on your computer can still see the file in File Explorer, rename it, delete it, or move it. If you need to hide files from other users, use your operating system's file permissions or encryption tools instead.