Password protection in Word works two ways: you can require a password to open the file, or require one to edit it while allowing others to read it

Microsoft Word lets you lock a document so that anyone opening it needs a password, or so that people can read it but need a password to make changes. The first option — password to open — encrypts the entire file. The second option — password to edit — leaves the document readable but prevents changes without the password. Which one you choose depends on whether you want to keep the document itself secret, or just prevent accidental or unwanted edits.

Both methods are built into Word itself. You do not need extra software, and the protection stays with the file when you send it to someone else. The steps differ slightly depending on whether you use Word on Windows, Mac, or the web version.

Key Takeaways

  • A password to open the file encrypts the entire document; a password to edit allows reading but blocks changes without the password.
  • On Windows, use File > Info > Protect Document > Encrypt with Password for opening protection, or File > Info > Protect Document > Restrict Editing for edit-only protection.
  • On Mac, use File > Properties > Security for opening protection, or Tools > Protect Document > Restrict Editing for edit-only protection.
  • Word on the web does not have built-in password protection; you must download the file to your computer first.
  • If you forget the password, Microsoft cannot recover it — there is no back door to unlock an encrypted Word document.

Password to open the file (Windows)

This method encrypts the document so that anyone trying to open it sees a password prompt before they can read anything. Open your document in Word, then go to File > Info. Look for the button labeled "Protect Document" — it may show a dropdown menu. Click "Encrypt with Password."

A dialog box will appear asking you to enter a password. Type it in, then click OK. Word will ask you to type it again to confirm. Once you do, Word saves the document with encryption turned on. The next time anyone opens that file, they will see a password prompt before the document appears.

Write down the password somewhere safe — not in the document itself, and not in an email with the document. If you forget it, you cannot recover the file. Microsoft does not have a master key or a way to bypass the encryption.

Password to open the file (Mac)

On Mac, the process is slightly different. Open your document, then go to File > Properties. Look for the "Security" section. You should see a checkbox labeled "Encrypt document password" or similar wording depending on your Word version. Check that box.

A dialog will prompt you to enter a password. Type it in, confirm it, and click OK. Save the document. The next time the file is opened, a password prompt will appear.

Password to edit only (Windows and Mac)

This option lets people open and read the document without a password, but they need a password to make changes. It is useful when you want to share a document for review but prevent accidental edits or unwanted modifications.

On Windows, go to File > Info > Protect Document > Restrict Editing. On Mac, go to Tools > Protect Document > Restrict Editing. A panel will open on the right side of the screen showing editing restriction options. Look for the section that says "Editing restrictions" or "Restrict formatting and editing." Check the box next to "Allow only this type of editing in the document," then choose "Tracked changes" or "Comments only" from the dropdown, depending on what you want people to be able to do.

Below that, click the "Yes, Start Enforcing Protection" button. Word will ask you to enter a password. Type it in, confirm it, and save the document. Now anyone who opens it can read it, but if they try to edit it, they will see a message saying the document is protected and asking for a password.

Password protection on Word for the web

Word Online (the web version you access through Office.com or Microsoft 365) does not have a built-in password protection feature. If you need to password-protect a document, you must download it to your computer first, add the password protection there using the steps above, and then upload it back if needed.

Alternatively, you can control who can access the file through OneDrive or SharePoint permissions — you can set a document to "view only" or require sign-in to open it — but that is different from password protection and relies on Microsoft's cloud storage rather than encryption within the file itself.

What password protection does and does not do

Password protection encrypts the file so that someone cannot open it without the password. However, it does not hide the file from view on a computer — someone can still see the filename and know the document exists. It also does not prevent someone from copying the file to another location or sending it elsewhere. It only prevents them from reading or editing the contents without the password.

If you send a password-protected document to someone via email, the password should be sent separately — never in the same email as the file. If someone intercepts the email, having both the file and password together defeats the protection.

Removing or changing a password

To remove password protection, open the document (you will need to enter the password), then go back to File > Info > Protect Document. If you used "Encrypt with Password," click it again and delete the password from the dialog box, leaving it blank. Click OK and save the document. The protection is now removed.

To change a password, open the document with the current password, go to File > Info > Protect Document > Encrypt with Password, and enter the new password. Save the document. The old password will no longer work.

If you used "Restrict Editing" instead, go to Tools > Protect Document > Restrict Editing, click "Stop Protection," and enter the current password. The restriction is removed.

Frequently Asked Questions

What happens if I forget the password?

Microsoft cannot recover or reset a password on an encrypted Word document. There is no back door. If you forget the password, the file is locked permanently. This is by design — it means the encryption is strong. Keep passwords written down somewhere secure, like a password manager.

Can someone break a Word document password?

Word passwords can be cracked with specialized software, especially older versions of Word. The protection is meant to prevent casual access, not to withstand a determined attack. If you need strong security for highly sensitive documents, consider using file encryption software like BitLocker (Windows) or FileVault (Mac) instead.

Does password protection work if I save the file as PDF?

No. If you convert a Word document to PDF, the Word password protection does not transfer. PDFs have their own password protection system. You would need to add password protection to the PDF separately using a PDF editor.

Can I password-protect just part of a Word document?

Not with Word's built-in tools. Password protection applies to the entire document. If you need to protect only certain sections, you can use the "Restrict Editing" feature to allow only tracked changes or comments, which limits what people can do but does not protect specific paragraphs.

Is password protection enough to keep my document secure?

Password protection prevents someone from opening or editing a file without the password, but it does not hide the file itself or prevent someone from copying it. For documents on a shared computer, also use file-level permissions. For documents in the cloud, use OneDrive or SharePoint sharing settings to control who can access the file at all.