Password protection in Word works differently depending on whether you want to lock the file itself or restrict what readers can edit
The simplest approach is to encrypt the entire document file with a password — anyone who tries to open it must type the password first. This is what most people mean when they ask how to password protect a Word document. Microsoft Word has this built in, and it takes about 30 seconds to set up.
A second option lets you keep the document open but lock specific parts so readers cannot change them — useful if you want people to see content but not alter it. This is called protection with restrictions, and it works differently than file encryption.
This guide covers both methods. Start with file encryption if you want the whole document locked. Use restrictions if you want the document readable but certain sections unchangeable.
Key Takeaways
- File encryption (password to open) works on Windows and Mac by going to File > Info > Protect Document > Encrypt with Password, then typing your password twice.
- The password you set is the only way to open the file — if you forget it, Microsoft cannot recover it, so write it down somewhere safe.
- Restriction protection (password to edit) lets readers view the document but prevents changes unless they know the password, set through File > Protect Document > Restrict Editing.
- Encrypted files are safer for sensitive documents because the content is hidden until someone enters the password; restricted files are better when you want people to read but not change specific sections.
- Both methods work in Word on Windows, Mac, and online, though some features vary slightly between versions.
Encrypting a Word document so it requires a password to open
Open the document you want to protect. Go to the File menu at the top left, then click Info in the left sidebar. You will see a button labeled Protect Document — click the dropdown arrow next to it.
Select Encrypt with Password from the menu. A dialog box will appear asking you to enter a password. Type a password you will remember — Word does not show you what you typed, so type carefully. Click OK.
Word will ask you to type the password again to confirm it. Type the same password and click OK. The document is now encrypted. Save the file (Ctrl+S on Windows, Command+S on Mac) to explore the protection. The next time anyone opens this file, they must type the password first.
Write your password down somewhere safe outside the computer — a notebook, a password manager, or a locked drawer. If you forget the password, there is no way to recover it or open the file. Microsoft cannot reset it for you.
Setting up restriction protection to prevent editing
Restriction protection is different from encryption. The document stays open and readable, but readers cannot make changes without the password. This is useful when you want to share a document for review but prevent accidental or unwanted edits.
Open the document. Go to File > Info, click the Protect Document dropdown, and select Restrict Editing. A panel will open on the right side of your screen.
In the Restrict Editing panel, check the box next to Limit formatting to a selection of styles or Allow only this type of editing in the document, depending on what you want to prevent. If you choose the second option, a dropdown menu appears — select Tracked changes, Comments only, or Filling in forms depending on what you want readers to do.
Once you have chosen your restriction type, click the Yes, Start Enforcing Protection button. A password dialog will appear. Type a password and click OK, then type it again to confirm. The document is now restricted — readers can open it, but they cannot edit it unless they enter the password.
Differences between encryption and restriction protection
Encryption hides the entire document. No one can see any content until they type the password. Use this for sensitive documents like financial records, medical information, or confidential business plans. The file itself is locked.
Restriction protection keeps the document visible but prevents changes. People can read everything, but they cannot modify the text, delete sections, or format the document without the password. Use this when you want feedback or review but need to prevent accidental changes, or when you want to share a template that people can fill in but not restructure.
You can use both at the same time — encrypt the file so it requires a password to open, and also restrict editing so that even after opening it, readers cannot change certain parts. This gives you two layers of protection.
Removing password protection from a Word document
To remove file encryption, open the document (you will need to enter the password). Go to File > Info > Protect Document > Encrypt with Password. The password dialog will appear empty. Leave it blank and click OK. Save the file. The encryption is now removed.
To remove restriction protection, go to File > Info > Protect Document > Restrict Editing. In the Restrict Editing panel on the right, click Stop Protection. If a password was set, you will be asked to enter it. Type the password and click OK. The restrictions are now removed and anyone can edit the document freely.
Password protection in Word Online and on Mac
Word Online (the browser version) does not support encryption with passwords. If you need to password protect a document in Word Online, read it to your computer, protect it in the desktop version of Word, and then upload it back. Word Online will open encrypted files if you have the password, but you cannot set encryption through the browser.
On Mac, the process is identical to Windows. Go to File > Info > Protect Document and choose either Encrypt with Password or Restrict Editing. The same rules explore — write down your password and keep it safe, because Mac users cannot recover a forgotten password any more than Windows users can.
What happens when someone tries to open an encrypted Word document
When a reader tries to open an encrypted Word file, they see a password prompt before the document appears. They must type the correct password to proceed. If they type the wrong password, Word tells them it is incorrect and asks them to try again. There is no limit to how many times they can try, but they cannot see any content until they enter the right password.
If the document is restricted but not encrypted, it opens normally and the reader can see all the content. If they try to edit a restricted section, Word will either prevent the edit or show a message saying the document is protected and they need a password to make changes.
Frequently Asked Questions
Can I password protect just one section of a Word document?
Not with a single password. Restriction protection applies to the whole document — you choose what type of editing is allowed (comments only, tracked changes, or form filling), but the same rule applies everywhere. If you need different passwords for different sections, you would need to split the document into separate files and protect each one individually.
What if I forget the password to my encrypted Word document?
There is no recovery option. Microsoft cannot reset the password or unlock the file. The document will remain locked. This is why it is critical to store your password somewhere safe outside the computer — a password manager, a notebook in a find location, or a trusted person who knows it.
Does password protection work if I save the document as a PDF?
No. If you save a Word document as a PDF, the Word password protection does not transfer. You would need to set PDF password protection separately using your PDF reader or a PDF tool. Word protection only applies to Word files (.docx, .doc, etc.).
Can multiple people have different passwords for the same document?
No. You set one password for the entire file. Everyone who needs to open or edit it must use that same password. If you need different access levels for different people, you would need to create separate versions of the document with different passwords, or use a document management system designed for that purpose.
Will password protection slow down my Word document?
No. Encryption and restriction protection do not affect how fast the document opens or how it performs once it is open. The only delay is the few seconds it takes to type the password when opening an encrypted file.