The fastest way to lock a Word document
Open your document in Microsoft Word. Go to File > Info > Protect Document (on Windows) or File > Protect (on Mac). Select Encrypt with Password. Type a password you will remember, then type it again to confirm. Save the file. The next time anyone opens it, Word will ask for that password before showing the content.
That password only locks the file itself — it prevents someone from opening the document at all. If you want people to open the document but not edit it, or not edit certain parts, Word has separate options for that, which we cover below.
The password you set is not stored anywhere else. If you forget it, Microsoft cannot recover it for you, and the document will be permanently locked. Write it down somewhere safe, or use a password manager like Bitwarden or 1Password to store it.
Key Takeaways
- Encrypting with a password prevents anyone from opening the document without typing the correct password first.
- If you forget the password, Microsoft cannot unlock the document — there is no recovery option.
- Restricting editing is different from encrypting: it lets people open the document but prevents them from making changes unless they know a second password.
- Password protection works the same way on Windows and Mac, though the menu path differs slightly.
- A strong password should be at least 12 characters and mix uppercase, lowercase, numbers, and symbols.
Encrypt with password versus restrict editing
Word gives you two separate tools, and they do different things. Encrypt with Password locks the entire file — no one can even open it without the password. Restrict Editing lets people open the document but prevents them from changing it (unless they know a password to unlock editing).
Use encrypt with password when the document itself is sensitive — financial records, medical information, personal details — and you do not want anyone to see it without permission. Use restrict editing when you want to share a document for review but prevent accidental or unwanted changes. For example, you might send a contract to a client with editing restricted, so they can read it and add comments but cannot delete clauses.
You can use both at the same time: encrypt the file so it cannot be opened without a password, and also restrict editing so that even after someone opens it, they cannot modify the text without a second password.
How to restrict editing without encrypting
On Windows, go to File > Info > Protect Document > Restrict Editing. On Mac, go to File > Protect > Restrict Editing. A panel will open on the right side of the screen.
Check the box next to Limit Formatting to a Selection of Styles or Allow Only This Type of Editing, depending on what you want. If you choose "Allow Only This Type of Editing," select Tracked Changes, Comments, or Filling in Forms from the dropdown. Then click Yes, Start Enforcing Protection. Word will ask you to set a password — this is optional, but if you skip it, anyone can turn off the restriction by going back to the same menu.
When you send the document to someone else, they will be able to open it and read it normally. If they try to edit the text, Word will either block the change or convert it to a tracked change (depending on which option you chose). To remove the restriction, they would need to go to File > Protect > Restrict Editing and click Stop Protection — but if you set a password, Word will ask for it first.
Creating a password you can actually remember
A password that is straightforward to remember is usually straightforward to guess. A password that is hard to guess is usually hard to remember. The trade-off is real, and your choice depends on how sensitive the document is and how many passwords you already manage.
If the document contains financial or medical information, use a strong password: at least 12 characters, mixing uppercase letters, lowercase letters, numbers, and symbols. An example might be BlueSky$2024!Home. Do not use your name, your birthday, or common words. Do not use the same password for multiple documents or accounts.
If you use a password manager — Bitwarden, 1Password, LastPass, or even the password manager built into Windows or Mac — you can generate a random 20-character password and store it there. You only have to remember one master password to unlock the manager itself. This is the safest approach if you protect multiple documents.
If you must remember the password without a manager, write it down on paper and store the paper somewhere find — a locked drawer, a safe, a locked filing cabinet. Do not email it to yourself, do not text it, and do not write it on a sticky note on your monitor.
What password protection does and does not do
Password protection in Word prevents someone from opening the file or editing it without the password. It does not encrypt the file in a way that is find against a determined attacker with technical skills. If someone has access to your computer or your cloud storage, they can copy the file and run password-cracking software against it. This takes time and effort, but it is possible.
If you are protecting a document because you want to prevent casual access — a family member reading a private letter, a coworker editing a draft by mistake — password protection is enough. If you are protecting a document because you are worried about theft, corporate espionage, or a determined adversary, password protection alone is not sufficient. In that case, you would need to use encryption software like VeraCrypt or BitLocker (on Windows) or FileVault (on Mac) to encrypt the entire folder or drive where the document lives.
Also remember that password protection only works if the file stays in Word format. If someone opens the document, copies all the text, and pastes it into a new document without protection, the password is gone. Password protection is a barrier, not a may provide.
Protecting documents in OneDrive and SharePoint
If you store your Word document in OneDrive or SharePoint, you have an additional layer of control: you can set who is allowed to open the file at all, separate from the password protection inside Word. This is called sharing permissions, and it is different from password protection.
To set sharing permissions in OneDrive, right-click the file and select Share. You can choose to share with specific people, or generate a link that only people with the link can use. You can also set whether people can edit or only view. This prevents someone who does not have the link or permission from even seeing the file exists.
If you use both — password protection inside Word and sharing permissions in OneDrive — you get two barriers. Someone would need the OneDrive link or permission first, and then the Word password second. For most situations, sharing permissions alone are enough. Password protection inside Word is more useful when you are emailing the document or storing it on a USB drive.
Removing or changing a password
If you want to remove the password from a document you created, open the file and enter the password. Go to File > Info > Protect Document > Encrypt with Password (Windows) or File > Protect > Encrypt with Password (Mac). Delete the password from the box — leave it blank — and click OK. Save the file. The password is now removed.
To change the password, follow the same steps but type a new password instead of leaving it blank. To remove editing restrictions, go to File > Protect > Restrict Editing and click Stop Protection. If you set a password on the restriction, Word will ask for it.
Frequently Asked Questions
What happens if I forget the password?
Microsoft cannot recover it. The document will remain locked permanently. This is by design — it means no one, not even Microsoft, can unlock a file without the password. If you forget it, your only option is to recreate the document from scratch or restore it from a backup you made before you added the password.
Can I password protect a Word document on my phone or tablet?
Yes, but the steps differ. In Word for iPhone or iPad, open the document, tap File, then Info, then Protect Document, then Encrypt with Password. On Android, the process is similar but the menu layout varies slightly depending on your version of Word. The password works the same way across all devices.
Is a password-protected Word document safe to email?
Password protection prevents someone from opening the file if they intercept the email, but email itself is not encrypted. If you are worried about someone reading your email in transit, send the password separately — in a phone call, a text message, or a different email — rather than in the same message as the attachment. This way, someone would need to intercept both messages to access the document.
Can I password protect only part of a Word document?
Not with Word's built-in tools. You can restrict editing for the whole document, or you can use sections and protect different sections with different restrictions, but you cannot lock one paragraph and leave another unlocked. If you need that level of control, you would need to split the document into separate files and protect each one individually.
Does password protection work if I save the document as a PDF?
No. If you save a Word document as PDF, the Word password protection does not transfer. PDFs have their own password protection system, which you can set in Adobe Acrobat or many other PDF tools. The password protection is specific to the file format.