Password protection in Word works differently depending on your version and what you want to protect

You can password-protect a Word document in two ways: require a password to open the file at all, or require a password to edit it while allowing others to read it. Microsoft Word on Windows, Mac, and the web all support this, though the steps vary slightly. The method you choose depends on whether you want to lock people out entirely or just prevent accidental changes.

Password protection in Word is built into the program itself — you do not need extra software. The passwords are encrypted, meaning Word scrambles them so that even Microsoft cannot see what you typed. This is different from sharing settings in OneDrive or Google Drive, which control who can access a file but do not require a password.

Key Takeaways

  • Word lets you set an "open password" (blocks everyone from opening the file) or a "write password" (lets people read but not edit without the password).
  • On Windows, go to File > Info > Protect Document > Encrypt with Password; on Mac, use File > Properties > Security.
  • On Word Online, you cannot set passwords directly — you must download the file, protect it in the desktop version, then upload it back.
  • If you forget the password, there is no recovery method; Microsoft cannot unlock the file for you.
  • Password protection encrypts the file but does not hide its contents from someone who has the password.

How to password protect on Windows

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

A dialog box will appear asking you to enter a password. Type your password, then click OK. Word will ask you to type it again to confirm. Once you click OK a second time, the file is protected. The next time anyone opens this file — including you — Word will prompt for the password before the document appears.

If you want to allow people to read the document but prevent them from editing it without a password, use a different method: File > Info > Protect Document > Restrict Editing. This opens a panel on the right side where you can choose "Editing restrictions" and set a password. People can open and read the file, but they cannot make changes unless they enter the password you set.

How to password protect on Mac

Open your document in Word for Mac. Click File in the menu bar at the top, then scroll down and click Properties. A dialog box will open with several tabs. Click the Security tab.

You will see two password fields: one for opening the document and one for modifying it. If you want to require a password to open the file, type a password in the "Password to open" field. If you want to allow reading but require a password to edit, use the "Password to modify" field instead. You can set both passwords on the same document if you want different levels of protection. Click OK when you are done, and Word will ask you to confirm each password you entered.

How to password protect on Word Online

Word Online (the browser version at Office.com) does not have a built-in password protection feature. If you need to password-protect a document stored in OneDrive or SharePoint, you must download it to your computer first, protect it using the desktop version of Word, then upload it back to the cloud.

To do this: open the file in Word Online, click File, then Download a Copy. Save the file to your computer. Open it in the desktop version of Word (Windows or Mac), follow the steps above to add password protection, save the file, then upload it back to OneDrive or SharePoint by dragging it into the folder or using the Upload button.

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

When a person tries to open a file you have protected with an open password, Word displays a dialog box asking for the password before showing any content. They cannot see the document title, preview, or any text until they enter the correct password. If they enter the wrong password, Word tells them it is incorrect and lets them try again.

If you set a write password instead, the document opens normally and the person can read it. When they try to make changes — typing, deleting, formatting — Word displays a dialog asking for the password. If they do not enter it, they can still read the document but cannot save any changes they make.

Important limits of Word password protection

Word passwords protect against casual access and accidental changes, but they are not military-grade security. Someone with advanced technical skills and specialized software could potentially break a Word password, especially on older versions of Word. If you are protecting highly sensitive information like financial records or trade secrets, password protection alone may not be enough — consider additional security measures like storing the file on an encrypted drive or using a dedicated password manager.

Password protection also does not hide the document's contents from someone who has the password. Once they enter it, they can read, copy, and share everything in the file. If you need to share a document with someone but want to keep certain sections hidden, you will need to edit the document itself to remove those sections before sharing.

How to remove password protection

To remove a password you set, open the file in Word and enter the password when prompted. Then follow the same steps you used to add the password: on Windows, go to File > Info > Protect Document > Encrypt with Password, and delete the password from the dialog box (leave it blank), then click OK. On Mac, go to File > Properties > Security and delete the passwords from both fields, then click OK.

If you forget the password, there is no way to recover it. Word does not store passwords on Microsoft's servers, and Microsoft support cannot unlock the file for you. Your only option is to recreate the document from a backup or from memory.

Frequently Asked Questions

Can I password protect just part of a Word document?

No, Word protects the entire file or nothing. However, you can use Restrict Editing (Windows: File > Info > Protect Document > Restrict Editing) to allow editing in specific sections while locking others. This requires setting up sections in advance and is more complex than a simple password.

What if I set a password and then forgot it?

There is no recovery method. Microsoft does not store your passwords and cannot unlock the file. If you have a backup copy without the password, use that instead. Otherwise, the file is inaccessible.

Does password protecting a Word document hide it from my cloud storage provider?

No. If the file is stored on OneDrive, Google Drive, or another cloud service, the provider can still see the file exists and its size. Password protection only encrypts the contents of the file itself, not the file's metadata or its presence in your account.

Can I password protect a document that is already shared with others?

Yes, but they will need the password to open it after you add protection. If the document is shared via OneDrive or SharePoint, adding a password does not change the sharing settings — it only adds an extra layer requiring the password at the moment of opening.

Is Word password protection the same as file encryption?

Word password protection uses encryption to scramble the file contents, but it is not the same as full-disk encryption or encrypting a folder. It protects only that specific file. If you want to encrypt an entire folder or drive, you need to use your operating system's encryption tools (BitLocker on Windows, FileVault on Mac).