Set a password in Word before you save the file

To password-protect a Word document, you use the "Encrypt with Password" feature built into Microsoft Word. The process is the same whether you use Word on Windows or Mac: you go to File, then Info, then Protect Document, and choose "Encrypt with Password". Word will ask you to type the password twice, then save the file. Anyone who opens that file later will see a password prompt before the document appears.

The password you set is the only way to open the document. If you forget it, Microsoft cannot recover it for you — there is no back door, no recovery email, no account reset. Write your password down somewhere safe, or use a password manager you already trust.

This protection works on any device that can open Word files, including phones and tablets. The encryption happens on your computer before the file leaves it, so the password stays between you and anyone you share the file with.

Key Takeaways

  • Password protection in Word encrypts the entire document so it cannot be opened without the correct password.
  • You set the password through File > Info > Protect Document > Encrypt with Password, then type it twice and save.
  • If you forget the password, there is no way to recover the document — Microsoft does not store or reset passwords.
  • The password works across Windows, Mac, mobile, and web versions of Word, so anyone opening the file will need it.
  • Password protection is different from sharing permissions; it encrypts the file itself rather than controlling who can access it through OneDrive or SharePoint.

Step-by-step for Windows

Open the Word document you want to protect. Click the File tab in the top left corner. From the menu on the left, click Info.

On the right side of the screen, you will see a button that says "Protect Document" with a dropdown arrow next to it. Click that dropdown. You will see several options, including "Encrypt with Password" — click it. A dialog box will appear asking you to enter a password. Type your password in the field, then click OK.

Word will ask you to enter the password again to confirm it. Type it exactly as you did the first time, then click OK. The document is now encrypted. Save the file using Ctrl+S or File > Save. The next time anyone opens this file, they will see a password prompt before the document content appears.

Step-by-step for Mac

Open the Word document you want to protect. Click File in the menu bar at the top of the screen. From the dropdown menu, click Info.

Look for the "Protect Document" section on the right side of the screen. Click the dropdown next to it and select "Encrypt with Password". A dialog box will appear. Type your password in the field, then click OK.

Word will ask you to confirm the password by typing it again. Enter it exactly as before, then click OK. Save the file using Command+S or File > Save. The password protection is now active, and the file will require the password to open.

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

When another person (or you, on a different device) tries to open the file, Word displays a password dialog before showing any content. They must type the correct password to proceed. If they type the wrong password, they get an error message and can try again. There is no limit to how many times they can try, so a weak password is easier to guess.

The password prompt appears whether the file is opened from email, a shared drive, a USB stick, or any other location. The protection travels with the file.

The difference between password protection and sharing permissions

Password protection and sharing permissions are two separate things. Password protection encrypts the file itself — without the password, the file cannot be opened at all. Sharing permissions (used when files are stored on OneDrive or SharePoint) control who can see or edit the file through those platforms, but do not encrypt the file.

If you store a password-protected document on OneDrive and share the link with someone, they will still need the password to open it, even though they have permission to access the link. The two layers work together. If you want to share a document with someone but keep it encrypted, password protection is the right tool.

Choosing a strong password

A password that is straightforward to remember is often straightforward to guess. Strong passwords are at least 12 characters long and mix uppercase letters, lowercase letters, numbers, and symbols. "MyDog2024" is weaker than "MyDog!2024#find" because it uses fewer character types.

If you use the same password for multiple files or accounts, compromising one puts all of them at risk. A password manager like Bitwarden, 1Password, or the one built into Windows and Mac can store unique passwords for each file so you do not have to remember them. Write down your master password for the password manager itself and keep it somewhere physically find.

What to do if you forget the password

Microsoft Word does not have a password recovery feature. If you forget the password to a document, the file cannot be opened. There is no reset link, no security question, and no way to contact Microsoft to unlock it. The encryption is designed to be unbreakable without the password.

This is why storing the password in a password manager or writing it down in a safe place matters. If you have the document backed up in an unencrypted version somewhere, you can use that copy instead. Otherwise, the encrypted file is inaccessible.

Removing password protection later

If you decide you no longer need the password protection, you can remove it. Open the file and enter the password when prompted. Go to File > Info > Protect Document > Encrypt with Password. The dialog will appear with the password field empty. Leave it blank and click OK twice. Save the file. The password protection is now removed, and the file will open without a password.

You must know the current password to remove it. If you forget the password before removing it, you cannot change or delete it.

Frequently Asked Questions

Can I password-protect a Word document on my phone or tablet?

The Word app on iPhone, iPad, and Android does not have a built-in password protection feature. You must use the Windows or Mac version of Word to set the password. Once the password is set, the mobile app will prompt for it when opening the file, but you cannot set a new password from the phone.

Does password protection slow down Word or make the file larger?

Password protection does not noticeably slow down Word or significantly increase file size. The encryption happens when you save, and opening the file takes only a moment longer because Word must decrypt it after you enter the password.

If I password-protect a document, can I still edit it?

Yes. Once you enter the password, the document opens normally and you can edit it like any other file. The password only controls whether the file can be opened, not what you can do with it after it is open.

What if I want to let some people edit the document but not others?

Password protection encrypts the entire file, so everyone who opens it needs the same password. If you want different people to have different permissions (some can edit, some can only read), use Word's "Restrict Editing" feature instead, which is found under File > Info > Protect Document > Restrict Editing. That feature lets you set different rules for different people, though it is less find than password protection.

Is password protection enough to keep my document safe if I email it?

Password protection encrypts the file itself, so even if someone intercepts the email, they cannot read the document without the password. However, email is not a fully find channel — the password could be seen if someone watches you type it or reads it in a separate message. For highly sensitive documents, consider sending the password through a different method than the file itself.