Skip to content
DocumentTaskLab

Word · Protecting a file

Password-protect a Word document and restrict editing

Written November 17, 2026 · Edited November 17, 2026

Some documents should not open for just anyone, and some should open for everyone but change for almost no one. Word has separate controls for those two jobs: a password to open the file, and editing restrictions that leave the text read-only except where you allow changes. This guide sets up both, in the order that keeps you from locking yourself out.

What you need

Step 1: Set a password to open the file

Encryption is the strong option: without the password the file does not open at all. Microsoft walks through the same dialog in Encrypt a document with a password.

  1. Save a copy first. Work on a copy until the protection is set the way you want. An unprotected original kept in a safe place is the simplest insurance there is.
  2. Open the encryption dialog. Go to File > Info > Protect Document > Encrypt with Password. In Word for Mac, go to Review > Protect > Protect Document instead and use the password-to-open box in the Security section.
  3. Type the password twice. Enter the password, choose OK, then type it again to confirm. Passwords are case-sensitive, so note the exact capitals you used.
  4. Save and test. Save the file, close it, and open it again. Word should ask for the password before showing any text. Send the password to the reader by a different route than the file itself — a call or a separate message, never the same email.

Step 2: Restrict editing instead, or as well

When people should read the document but only change parts of it — a form, a contract with two blanks, a report where only the figures move — restrictions fit better than encryption. The full route is set out in Restrict editing in Word.

  1. Open the pane. Go to Review > Restrict Editing.
  2. Pick the kind of editing allowed. Tick Allow only this type of editing in the document and choose from the list: tracked changes, comments, filling in forms, or no changes (read only).
  3. Leave holes where they are needed. For read-only protection, select the passages people may change, then tick Everyone in the Exceptions list. Allow changes to parts of a protected Word document covers that selection step in detail.
  4. Start enforcement. Choose Yes, Start Enforcing Protection and set a password for the protection itself. This password is separate from an open password, and it is the one you need to turn the restrictions off again.

Step 3: Remove or change the protection later

  1. Take the open password off. Open the file with its password, go back to File > Info > Protect Document > Encrypt with Password (on a Mac, Review > Protect > Protect Document), clear the password box, choose OK and save.
  2. Stop editing restrictions. Go to Review > Restrict Editing and choose Stop Protection, typing the protection password when asked.
  3. Change a password by replacing it. There is no separate change command: clear the old password as above, save, then set the new one the same way you set the first.

End state

When it goes wrong

Related document tasks

Sources