Lock a document in Word by using the "Protect Document" feature

Word gives you two main ways to lock a document. The first prevents anyone from editing the file unless they know a password you set. The second lets people view the document but only edit specific sections you choose. Which one you use depends on whether you want to block all changes or allow some people to edit certain parts.

Both methods are built into Word and take less than a minute to set up. The locked document still opens normally — the lock just stops edits from being saved unless someone enters the password or has permission.

Key Takeaways

  • Use "Protect Document" in the Info tab to lock the entire file with a password that prevents all editing.
  • Use "Restrict Editing" to let people view the document but only edit sections you specifically unlock for them.
  • Password-protected documents still open in Word, but changes cannot be saved without the correct password.
  • You can remove protection later using the same password, or by going back to the Info tab if you remember it.

Lock the entire document with a password

This method stops anyone from making any changes to the document unless they enter your password. Open the document you want to lock, then click the File tab at the top left. Click Info in the left menu.

Look for the button labeled Protect Document (it may say "Protect Document" or show a shield icon). Click it and select Encrypt with Password. A box will appear asking you to enter a password. Type a password you will remember — Word does not have a way to recover a forgotten password, so write it down somewhere safe if you tend to forget them.

Click OK. Word will ask you to type the password again to confirm it. Type it exactly the same way (passwords are case-sensitive, so "Password" is different from "password"). Click OK again. The document is now locked. Save the file by pressing Ctrl+S or clicking File and then Save.

The next time someone opens this file, Word will ask for the password before the document appears. If they do not enter the correct password, they cannot open the file at all.

Allow editing only in specific sections

This method is useful when you want people to fill in certain blanks or edit certain paragraphs, but leave the rest of the document untouched. You decide which sections can be edited and which are locked. Click the Review tab at the top of Word. Look for Restrict Editing (in some versions of Word it may be called Protect). Click it.

A panel will open on the right side of your screen. Check the box next to Limit formatting to a selection of styles or Allow only this type of editing in the document — the exact wording depends on your Word version. Select Filling in forms or Comments only from the dropdown, depending on what you want people to do.

Now highlight the sections of the document you want people to be able to edit. With those sections selected, go back to the Restrict Editing panel and check the box that says Everyone (or the equivalent in your version). This unlocks just those sections. Repeat this for each section you want editable. When you are done, click Yes, Start Enforcing Protection at the bottom of the panel. Set a password if you want one — this prevents someone from removing the restrictions without your permission.

Remove the password protection

If you locked the document with a password and want to unlock it later, click File, then Info, then Protect Document, and select Encrypt with Password again. A box will appear with the password field empty. Leave it blank and click OK. The password protection is now removed.

If you used Restrict Editing instead, click the Review tab, find Restrict Editing, and click Stop Protection at the bottom of the panel. If you set a password, Word will ask for it. Enter the password and click OK.

What happens when someone tries to edit a locked document

If the entire document is password-protected, the person opening it will see a dialog box asking for the password before the file even opens. They cannot see any content without entering it correctly.

If you used Restrict Editing to lock only certain sections, the document opens normally. When someone tries to click into a locked section and type, nothing happens — the cursor will not appear in that area. They can edit the unlocked sections freely. At the top of the screen, Word may show a message saying "This document is protected" so they know why they cannot edit certain parts.

Common mistakes to avoid

The biggest mistake is forgetting your password. Word cannot recover it, and you will not be able to open or unlock the document. Write down any password you set and store it somewhere you can find it later.

Another common issue is locking the document but forgetting to save it afterward. The protection does not take effect until you save the file. Always press Ctrl+S or use File > Save right after setting up protection.

If you are using Restrict Editing and want to lock everything except one section, remember to unlock only the sections you want people to edit. Any section you do not specifically unlock will be protected by default.

Frequently Asked Questions

Can I lock a document without a password?

Yes. When you set up password protection, you can leave the password field blank and click OK. The document will be locked, but anyone can unlock it by going to File > Info > Protect Document > Encrypt with Password and leaving the field blank again. This prevents accidental edits but not intentional ones.

What if I forgot the password to my locked document?

Word does not have a built-in password recovery tool. If you set a strong password and truly forgot it, you cannot open or unlock the document through Word itself. You would need to contact Microsoft support or use a third-party password recovery tool, though results vary.

Can I lock a document in an older version of Word?

Yes, but the steps may be slightly different. The Protect Document feature exists in Word 2010 and later. If you are using an older version, look in the Tools menu instead of the Review tab. The basic process is the same.

Does locking a document in Word prevent it from being copied?

No. Password protection prevents editing and saving changes, but someone can still copy text from the document and paste it elsewhere. If you need to prevent copying entirely, you would need to use more advanced security features or convert the file to a PDF with copy restrictions.

Will the lock stay on if I email the document to someone?

Yes. The protection travels with the file. When the person opens the attachment, they will see the password prompt or editing restrictions you set up. The lock remains until someone with the password removes it.