Word · Protecting a file
Password-protect a Word document and restrict editing
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
- Desktop Word for the full set of controls. The steps follow Word for Windows; Word for Mac sets its passwords from a different dialog, noted in Step 1. Word for the web cannot open a document that is encrypted with a password, so a protected file is a desktop job from then on.
- A password you will still know next month. If you forget the open password, Microsoft cannot retrieve it and the document stays shut. Store it where you store other work passwords, not in the email that carries the file.
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.
- 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.
- 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.
- 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.
- 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.
- Open the pane. Go to Review > Restrict Editing.
- 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).
- 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.
- 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
- 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.
- Stop editing restrictions. Go to Review > Restrict Editing and choose Stop Protection, typing the protection password when asked.
- 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
- The protected copy asks for its password on open, or opens read-only outside the parts you left editable.
- Each password is stored somewhere you can find it again, away from the file it protects.
- An unprotected original sits in a safe place in case a password is ever lost.
When it goes wrong
- The password is forgotten. There is no recovery route for an encrypted Word file. The unprotected copy you saved first is the way back, which is why step 1 of the encryption route is saving it.
- The reader can open the file but not type anywhere. Editing restrictions are on and their passage is not in the Exceptions list. Stop protection, widen the exception, and enforce it again.
- Word for the web refuses the file. That is expected for an encrypted document. Open it in desktop Word instead.
- Protection seems to vanish after saving. Saving in an older format such as .doc can drop newer protection settings. Save as .docx and set the protection again.
Related document tasks
-
Protect one section of a Word document while leaving the rest editable
Protect one section of a Word document while leaving the rest editable: mark the part with continuous section breaks, protect only that section in Restrict Editing, and start enforcement with a password.
-
Password-protect a PDF and set what readers can do
Add an open password to a PDF, or let it open but hold back printing and copying, in Acrobat or from Word.
-
Add a document property and show it in the text with a field in Word
Add a document property in Word and show it in the text with a field: set Title, Manager or Company under File > Info or Advanced Properties, insert it with Quick Parts > Document Property or a property field, and refresh fields after changes.
-
Compress the pictures in a Word document so the file emails easily
A Word document with a dozen photos can weigh 20 MB or more, and email will refuse it — even though the pictures on the page are only a few inches wide.
Sources
- Microsoft Support, Encrypt a document with a password — the File > Info > Protect Document route, confirming the password, and the warning that a forgotten password cannot be retrieved.
- Microsoft Support, Restrict editing in Word — the Restrict Editing pane, the kinds of editing that can be allowed, and starting enforcement with a password.
- Microsoft Support, Allow changes to parts of a protected Word document — selecting the passages that stay editable and granting them to everyone or to named people.