How to Password Protect a Word Doc (Windows and Mac)

Last updated on November 17th, 2026 at 03:06 pm

In the Word desktop app on Windows, go to File > Info > Protect Document > Encrypt with Password, type a password, select OK, retype it, select OK, and save. On a Mac, use the password to open box under Review > Protect Document. Word then asks for it before showing any text.

Microsoft’s steps to protect a Word document with a password cover Microsoft 365, 2024 and 2021 on both systems, plus 2019 and 2016 on Windows. Word for the web can’t do this.

First, decide what you want to stop

Word has several features with “protect” or “lock” in their names, and only one of them keeps the text private. Pick the row that matches your goal before you start.

Your goalFeature to useCan people without the password read it?
Nobody can open or read the file without the passwordEncrypt with Password (Windows) or Password to open (Mac)No
Anyone can read it, but only you can save changesPassword to modifyYes, read-only
Readers can only comment, track changes or fill in a formRestrict EditingYes
Signal that a file is finishedMark as FinalYes, and anyone can select Edit Anyway
Control who can reach a file stored onlineOneDrive sharing permissionsOnly the people you share with

“Encrypt” here means Word scrambles the contents of the file, so even someone who copies the file to another computer sees nothing useful without the password. The other options leave the text readable. You can combine them, for example a password to open plus Restrict Editing, so people who know the password can read the file but still can’t change it.

Before you add a password

  • Use the desktop app. You need Word installed on a Windows PC or a Mac. Word for the web can’t open documents that are encrypted with a password, so it also isn’t the place to add one.
  • Write the password down somewhere safe first. If you lose or forget it, Word can’t recover it for you, and neither can Microsoft support. A password manager is the easiest place to keep it.
  • Know the rules. Passwords are case-sensitive (“Budget2026” and “budget2026” are different) and can be up to 15 characters long. Within that limit, a longer mix of words, numbers and symbols is harder to guess.
  • Check the file type. If the file name ends in .doc (the older Word 97-2003 format), consider saving it as a .docx with File > Save As first. Older formats generally have weaker protection than the current one.
  • Remember other copies. The password protects only the file you save. Copies already emailed, synced or backed up elsewhere stay open.

Password protect a Word doc on Windows

This method adds a password that is required to open the file. Word calls it encryption.

  1. Open the document in Word. You see the ribbon (the row of tabs such as Home and Insert) across the top.
  2. Select File in the top-left corner. Word switches to a full-page menu.
  3. Select Info in the left column. A page with large buttons appears, including Protect Document.
  4. Select Protect Document. A list of protection options drops down.
  5. Choose Encrypt with Password. The small Encrypt Document box opens, with a warning that a lost password can’t be recovered.
  6. Type your password and select OK. Word opens a Confirm Password box.
  7. Type the same password again and select OK. The box closes, and the Protect Document area on the Info page now says that a password is required to open this document.
Word Info page with Protect Document showing that a password is required to open this document
The Protect Document area turns yellow and says a password is required to open the document. Save the file to apply the protection; Budget-2026 is a fictional example.
  1. Save the file with Ctrl+S. The password takes effect only after you save.
Illustration of the path to password protect a Word doc: File, Info, Protect Document, Encrypt with Password, then enter the password twice
Illustration: the Word for Windows path from File to Encrypt with Password.

If you’re working in a file stored on OneDrive or SharePoint, the steps are the same. AutoSave may save the change for you, but pressing Ctrl+S makes sure.

Password protect a Word doc on a Mac

Word for Mac keeps its password settings in one window that also holds editing and privacy options.

  1. Open the document in Word for Mac.
  2. Select the Review tab, and then select Protect Document. In some versions the button sits inside a Protect group, so you select Protect > Protect Document. If you can’t spot it on the ribbon, open the Tools menu in the menu bar at the top of the screen and choose Protect Document. A Password Protect window opens.
  3. In the Security section, type a password in the box for opening the document. This is the setting that encrypts the file.
Recreated Word for Mac Security section with a masked opening password and an empty modifying-password field
In Word for Mac, enter the opening password in the first Security field. This enlarged recreated detail isolates the two password fields; the lower Protection and Privacy sections are outside the crop.
  1. Optionally, type a different password in the box for modifying the document if you also want to control who can save changes.
  2. Select OK. Word asks you to type each password again.
  3. Retype the password, select OK, and save with Command+S.

The same window has a Protection section, which limits the document to read-only, tracked changes, comments or form filling, and a Privacy option that removes personal information such as the author name when you save. Neither of those stops anyone from opening the file.

Microsoft’s password page lists Word for Mac and shows the File > Info path. If your Mac version has File > Info > Protect Document, that route works the same way as on Windows.

Add a password to modify (Windows)

A password to modify lets anyone read the document but asks for a password before they can save changes to it. It’s handy for a price list or contract that people should see but not alter. It is not encryption, so don’t use it alone for private information.

  1. Select File > Save As, and then select Browse. The classic Save As window opens.
  2. Next to the Save button, select Tools and choose General Options.
  3. Type a password in Password to modify. You can also fill in Password to open here, which does the same job as Encrypt with Password.
Recreated Word General Options password fields with Password to modify highlighted
In General Options, Password to modify controls editing, while Password to open controls opening. This recreated password-field detail uses a fictional Price-List file and leaves the opening password empty.
  1. Select OK, retype each password when asked, and select OK again.
  2. Select Save. If Word asks to replace the existing file, choose Yes.

When someone opens the file later, Word asks for the modify password and offers a Read Only button for people who don’t have it. Contracts often get this treatment, and you can insert a signature line in Word before you lock the layout.

Let people read but limit their changes

Restrict Editing doesn’t hide anything. It controls what readers can change after the file is open, such as allowing comments only. On Windows:

  1. Select Review > Restrict Editing (in the Protect group). A pane opens on the right.
  2. Under Editing restrictions, check Allow only this type of editing in the document and choose No changes (Read only), Comments, Tracked changes or Filling in forms.
  3. To leave some parts editable, select that text and check Everyone under Exceptions.
  4. Select Yes, Start Enforcing Protection, then type and confirm a password. The password is optional, but without one anyone can switch the restriction off.

To turn it off, open the same pane, select Stop Protection and enter the password. Microsoft walks through exceptions on its page about how to allow changes to parts of a protected Word document, and a fuller walk-through of read-only options is in this guide to locking a Word document from editing. Keep in mind that a reader can still copy restricted text into a new document.

Mark as Final is even lighter. It shows a banner saying the document is final, and anyone can select Edit Anyway to keep working. Treat it as a label, the same way a CONFIDENTIAL watermark in Word tells readers a file is sensitive without blocking anything.

Share the file through OneDrive instead

If the goal is to send a document to a few people, controlling the link can be easier than handing out a password. In OneDrive on the web, select the file, select Share, open the link settings and choose Specific people. Turn off Allow editing if they should only view it. Microsoft 365 subscribers can also set an expiration date or a password on links set to Anyone. You can remove a link later from Manage access. The options are listed on Microsoft’s page about how to share files and folders in OneDrive, and the Word side of the process is covered in sharing a Word document by link, email or copy.

One catch: if the file in OneDrive is also encrypted with a password, people who open the link in a browser get stuck, because Word for the web can’t open it. They have to open it in the desktop app.

Check that the password works

  1. Save and close the document, and then quit Word.
  2. Open the file again from File Explorer or Finder. A Password box should appear before any text is shown.
Word Password dialog asking for the password to open Budget-2026.docx
When the saved document is reopened, Word asks for the opening password before displaying its text. This recreated prompt uses the fictional Budget-2026 file and a gray user-name bar.
  1. Type the password and select OK. The document opens normally.

Do this test before you delete an unprotected copy or send the file to anyone.

Change or remove the password

You need the current password, because you have to open the file first. There’s no built-in way to remove a password you don’t know.

On Windows:

  1. Open the document and enter the password.
  2. Go to File > Info > Protect Document > Encrypt with Password. The box shows the current password as dots.
  3. To remove it, delete everything in the box. To change it, type a new password over it.
  4. Select OK (confirm the new password if you typed one) and save. Until you save, the old setting stays in place.

On a Mac: open Review > Protect Document, clear or replace the passwords in the Security section, select OK and save.

To remove a password to modify on Windows, return to Save As > Tools > General Options, clear the field and save. For other kinds of locks, such as Protected View or a file someone else has open, see how to unlock a document in Word.

If something goes wrong

There’s no Encrypt with Password option

You’re probably in Word for the web, or on a Mac where the command is under Review or Tools instead of File. In the browser, use the Open in Desktop App command (or download a copy) and add the password in the desktop app.

Word didn’t ask for the password when I reopened the file

The setting wasn’t saved, or you opened a different copy with the same name. Add the password again, save, quit Word completely, and open the file from the same folder.

Word says the password is wrong

Check Caps Lock, and make sure the keyboard is set to the language you used when you created the password, since some keys produce different characters on other layouts. Type it by hand rather than pasting, in case a space was copied too.

Word opens the file but only as read-only

The file has a password to modify, not a password to open, or Restrict Editing is on. Anyone can read it. If the contents must stay private, add a password to open as well.

The document won’t open in a browser

That’s expected for an encrypted file. Word for the web can’t open documents encrypted with a password, so the reader needs the desktop app. A file with only a password to modify opens in the browser in Reading view but can’t be edited there.

The option is grayed out on a work computer

Some organizations protect files with sensitivity labels or rights management instead of document passwords. Ask your IT team which method they expect you to use.

Questions people ask

I forgot the password. Can Microsoft unlock the document?

No. Word can’t recover a lost password. On a work account, IT may be able to help with Microsoft’s DocRecrypt tool, but only if it was set up before the file was encrypted. Otherwise your best option is an older unprotected copy, such as a backup or an email attachment you sent earlier.

Can I password protect just one page or section?

Not with a password to open, which covers the whole file. You can use Restrict Editing with exceptions so only certain parts can be changed, but everyone can still read every page.

Does the password stop someone from deleting the file?

No. Anyone with access to the folder can still copy, move, rename or delete the file. They just can’t read it. To protect a whole folder of documents, Windows has options covered in encrypting a file or folder in Windows 10 and putting a password on a folder in Windows 11.

Will a protected file open on another computer or on a Mac?

Yes, as long as the person has the Word desktop app and the password. The encryption travels with the file, so it doesn’t matter which computer saved it.

Can I add a password from the Word app on my phone?

Plan to do it on a computer. Microsoft’s password instructions cover the Word desktop apps for Windows and Mac, and the Word mobile apps don’t follow the same File > Info path. Once the file is protected, try opening it on your phone before you rely on that.

What if I send a PDF instead?

You can convert the Word document to PDF so the layout can’t be edited as easily, but the PDF is a new, unprotected copy. To lock that copy too, password protect the PDF file separately.

Does the same method work for Excel?

Excel has its own version of this setting for workbooks, with slightly different steps, covered in this guide to requiring a password to open an Excel file.

When the reopen test passes, store the password in your password manager, send it to recipients by phone or text rather than in the same email as the file, and delete any unprotected copies you no longer need.