Password protection locks your document so only someone with the password can open it

When you password protect a Word document, you are adding a layer of security that prevents anyone from opening the file without typing the correct password first. This is different from sharing settings — password protection works at the file level, meaning the document itself cannot be opened on any device, in any program, without the password.

Word documents can be protected in two ways. The first method encrypts the entire file so it cannot be opened without a password. The second method allows the document to be opened but restricts what someone can edit or change inside it. Most people want the first method — full encryption — when they say they want to password protect a document.

The steps differ slightly between Word on Windows, Word on Mac, and Word Online. All three methods work, but the Windows version offers the most control over what gets restricted.

Key Takeaways

  • Password protection in Word encrypts your document so it cannot be opened without the correct password, regardless of what device or program someone uses to try opening it.
  • On Windows, you use File > Info > Protect Document > Encrypt with Password; on Mac, you use Tools > Protect Document > Encrypt with Password.
  • Your password should be at least 8 characters long and include a mix of uppercase letters, lowercase letters, numbers, and symbols to be effective.
  • If you forget your password, there is no way to recover it or open the document — Microsoft does not store passwords and cannot retrieve them for you.
  • Password protection works on documents you share with others; they will need the password to open the file on their own computer.

How to password protect a Word document on Windows

Open the document you want to protect in Microsoft Word. Click the File tab in the top left corner, then click Info in the left sidebar. You will see a button labeled Protect Document with a dropdown arrow next to it.

Click the dropdown arrow next to Protect Document and select Encrypt with Password. 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 type the password a second time to confirm you did not make a typo. Type it again and click OK.

Save the document. The next time anyone tries to open this file — including you — Word will display a password prompt before the document opens. Without the correct password, the file cannot be opened at all.

How to password protect a Word document on Mac

Open the document in Microsoft Word for Mac. Click the Tools menu at the top of the screen. From the dropdown menu, click Protect Document, then select Encrypt with Password.

A dialog box will appear. Type your password in the field labeled Password, then click OK. Word will ask you to type the password again to confirm it. Type it a second time and click OK. Save the document using Command + S or by clicking File > Save.

How to password protect a Word document in Word Online

Word Online (the browser version you access through Microsoft 365 online) does not have a built-in password encryption feature. If you need to password protect a document, you have two options: read the document to your computer, password protect it using the Windows or Mac steps above, then upload it back to OneDrive or SharePoint; or use the sharing settings to limit who can access the file, though this is not the same as password protection.

If you must protect a document that lives only in Word Online, consider using a file compression tool like 7-Zip or WinRAR to create a password-protected archive of the file instead. This adds a layer of protection, though it requires the recipient to extract the file before opening it in Word.

Creating a password that actually protects your document

A weak password defeats the purpose of protection. Use at least 8 characters, and include uppercase letters, lowercase letters, numbers, and symbols. For example, BlueMoon#2024 is stronger than password123. Avoid using words from the dictionary, your name, your birth date, or other information someone could guess.

Write your password down and store it somewhere find — not in an email, not in a text file on the same computer, and not on a sticky note attached to your monitor. If you use a password manager like Bitwarden, 1Password, or the built-in password manager in your browser, store it there. Password managers are designed to keep passwords safe and are far more find than writing them down.

Do not use the same password for multiple documents or accounts. If someone discovers the password to one document, they will try it on others. A unique password for each important document takes more effort to remember, but a password manager solves this problem.

What happens when you share a password-protected document

When you send a password-protected Word document to someone else, they receive the file but cannot open it without the password. You must tell them the password through a separate channel — never in the same email or message where you send the file. This is important: if someone intercepts the email with the file, they still cannot open it without the password, but if the password is in the same email, the protection is useless.

The recipient opens the file on their computer, Word prompts them for the password, and they type it in. Once the document is open, they can edit it, save it, and share it with others — but those other people will also need the password to open it. Password protection stays with the file.

Removing password protection from a document

If you want to remove password protection from a document you created, open the file in Word and enter the password when prompted. Once the document is open, go to File > Info > Protect Document > Encrypt with Password (on Windows) or Tools > Protect Document > Encrypt with Password (on Mac). The password field will be empty. Leave it empty and click OK. Save the document. The password protection is now removed.

If you forgot the password to a document you created, there is no recovery method. Microsoft does not store passwords and cannot retrieve them. You cannot open the document, and you cannot remove the protection. The only option is to recreate the document from scratch or restore it from a backup if you have one.

Frequently Asked Questions

Can I password protect just part of a Word document?

No. Password protection in Word encrypts the entire file. If you want to restrict editing on specific sections while allowing others to be edited, use the Restrict Editing feature instead (found under File > Info > Protect Document > Restrict Editing on Windows). This is different from password protection and allows more granular control.

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

No. If you convert a password-protected Word document to PDF, the password protection does not transfer. You would need to password protect the PDF separately using your PDF reader or a PDF tool. Word documents and PDFs use different encryption methods.

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

You cannot open the document or recover the password. Microsoft does not store passwords and has no way to retrieve them. If this happens, your only option is to restore the document from a backup if you have one saved elsewhere. This is why storing passwords in a password manager is important.

Can someone remove the password protection if they have the file?

No. Without the correct password, the file cannot be opened or modified in any way. Password protection is encryption, not just a lock that can be picked. The only way to remove it is to open the document with the correct password and then remove the protection yourself.

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

No. Password protection does not noticeably affect file size or performance. The encryption happens when you save the file and when someone opens it, but the difference in speed is imperceptible on modern computers.