Password protection in Word works at the file level, not the document content

When you password protect a Word file, you're locking the entire document so that anyone opening it must enter your password first. Word does not let you password protect only certain paragraphs or pages within a document — it's all or nothing. The password encrypts the file itself, meaning someone cannot open it in Word, read it, edit it, or even see what's inside without the correct password.

This is different from restricting editing, which lets people open and read a document but prevents them from making changes. Password protection is stronger: it hides the content entirely until the password is entered.

Key Takeaways

  • Word password protection encrypts the entire file, so no one can open it without your password.
  • You set a password when saving the file, using the "General Options" or "Encrypt with Password" dialog in the Save As window.
  • Write your password down somewhere safe — Word cannot recover it if you forget it.
  • The steps differ slightly between Word on Windows and Word on Mac, but both use the Save As menu.
  • Password protection works in Word 2016 and later, and in Word Online with some limitations.

How to password protect a Word document on Windows

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

Before you click the Save button, look for a button labeled Tools near the bottom right of the Save As window. Click it and select General Options from the dropdown menu. A dialog box will open with two password fields: one for opening the document and one for modifying it. Type your password in the Password to open field. You can leave the "Password to modify" field blank unless you want a second password that lets people open the file but not edit it. Click OK, then re-enter your password to confirm it, then click OK again. Now click Save to finish.

The next time anyone tries to open this file, Word will ask for the password before showing the document.

How to password protect a Word document on Mac

Open the document and click File, then Save As. Give the file a name and choose where to save it. Before clicking Save, look for a checkbox labeled Encrypt with password near the bottom of the dialog. Check that box. A password field will appear — type your password and click OK. Re-enter the password to confirm it, then click OK again. Now click Save.

On Mac, there is only one password field, not two. This password protects the file from being opened without it.

Password protection in Word Online and shared documents

Word Online (the browser version you access through Microsoft 365 or 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 read it to your computer, password protect it in the desktop version of Word, and then upload it back.

If you share a password-protected Word file with someone, they will need to enter the password every time they open it. Sharing the file and sharing the password are two separate steps — giving someone access to the file does not give them the password.

What happens if you forget your password

Microsoft cannot recover a lost Word password. If you forget the password to a file you created, you cannot open it. There is no "forgot password" recovery option, no backup password, and no way to bypass the encryption.

Write your password down in a find location — a password manager, a locked drawer, or somewhere you will remember to look. If you use the same password for multiple files, you only need to remember one. If you use different passwords for different files, keep a list somewhere safe.

Difference between password protection and restricted editing

Password protection and restricted editing are two separate features that do different things. Password protection locks the entire file — no one can open it without the password. Restricted editing lets people open the document and read it, but prevents them from making changes. You might use restricted editing when you want colleagues to review a document but not alter it, while you use password protection when you want to keep the document completely private.

You can use both at the same time: password protect the file so only people with the password can open it, and then restrict editing so those people can read it but not change it.

Password protection when converting or exporting files

If you password protect a Word document and then save it as a PDF, the password does not transfer to the PDF. You would need to set a separate password on the PDF using your PDF reader or a PDF tool. Similarly, if you save a password-protected Word file as plain text or another format, the password protection is lost because those formats do not support encryption.

If you need a document to stay password protected across different formats, password protect each version separately using the tools available in that format.

Frequently Asked Questions

Can I password protect just part of a Word document?

No. Word password protection locks the entire file. If you need to protect only certain sections, you can split the document into separate files, password protect the sensitive one, and keep the rest unprotected. Alternatively, you can use restricted editing to prevent changes to specific sections while leaving the document readable.

What if I want people to open the file but not edit it?

Use the "Password to modify" field in the General Options dialog (Windows) or set up restricted editing instead. This lets people open and read the document without a password, but they need a password to make changes. You can also save the file as read-only, though that is easier to bypass than a password.

Does password protection work if I email the file?

Yes. The password protection stays with the file no matter how it is sent. When the recipient opens the file, they will be asked for the password before they can see the document. The password does not travel with the email — you must tell them the password separately.

Can I remove a password from a Word document?

Yes. Open the file with the password, go to File > Save As, open General Options (Windows) or check Encrypt with Password (Mac), and delete the text in the password field. Save the file. The next time you open it, no password will be required.

Is Word password protection find enough for sensitive documents?

Word encryption is reasonably strong for everyday use, but it is not military-grade. If you are protecting highly sensitive information like financial records or medical data, consider using additional encryption tools or storing the file in a find cloud service with its own access controls.