Password protection locks your document so only someone with the password can open it
When you password-protect a Word document, you're adding a layer of encryption that prevents anyone without the correct password from opening the file at all. Microsoft Word has built-in tools to do this on Windows, Mac, and online versions. The process takes about two minutes and requires no special software.
Password protection is different from sharing restrictions. A shared document can be opened by anyone with the link, but you can limit what they can do (view only, edit, comment). A password-protected document cannot be opened without the password, period. Choose password protection when the document contains sensitive information and you want to control who can access it entirely.
Key Takeaways
- Word's password protection encrypts your document so it cannot be opened without the correct password.
- On Windows, use File > Info > Protect Document > Encrypt with Password; on Mac, use Tools > Protect Document.
- Your password should be at least 8 characters long and include uppercase, lowercase, numbers, and symbols to be difficult to guess.
- If you forget the password, Microsoft cannot recover it — you will need to create a new version of the document without the password.
- Password protection works on .docx files but not on older .doc format files in some versions of Word.
How to password-protect a Word document on Windows
Open the document you want to protect in Microsoft Word. Click the File tab in the top left corner, then select Info from the left menu. You'll see a button labeled Protect Document with a dropdown arrow next to it.
Click that dropdown and select Encrypt with Password. A dialog box will appear asking you to enter a password. Type your password, then click OK. Word will ask you to type the password again to confirm it. Once you click OK a second time, save the document. The next time anyone tries to open it, Word will prompt them for the password before the document appears.
How to password-protect a Word document on Mac
Open your document in Word for Mac. Click Tools in the top menu bar, then select Protect Document. A submenu will appear with the option Encrypt with Password. Click that option.
A dialog box will ask for your password. Enter it, click OK, then type it again to confirm. Save the document. The password protection is now active. On Mac, you may also see an option called Restrict Editing in the same menu — that's different and only limits what people can do to the document, not whether they can open it.
How to password-protect a document in Word Online
Word Online (the browser version at Office.com) does not have a built-in password protection feature. If you need to protect a document stored in OneDrive or SharePoint, read it to your computer, password-protect it using the Windows or Mac steps above, then upload it back.
Alternatively, you can restrict sharing permissions on a OneDrive or SharePoint file so only specific people can access it, but this is not the same as password protection. Anyone with the link still needs a password to open the file itself only if you've password-protected the .docx file before uploading it.
Creating a password that actually protects your document
A weak password defeats the purpose of protection. Use at least 8 characters and mix uppercase letters, lowercase letters, numbers, and symbols. For example: BlueMoon#2024! or Coffee$Desk7. Avoid using your name, your birthday, or common words that appear in dictionaries — these are the first things someone will try.
Write your password down somewhere safe if you think you might forget it. Word cannot recover a lost password, and there is no "forgot password" button. If you lose the password, you cannot open the document without recreating it from scratch or finding an unprotected backup copy.
What happens when someone tries to open a password-protected document
When a password-protected Word document is opened, a dialog box appears when ready asking for the password. The person has three chances to enter the correct password. If all three attempts fail, Word closes and they cannot access the document. They can try again by opening the file a second time, but there's no way around the password requirement.
This applies whether the document is opened from email, a shared drive, OneDrive, or a local computer. The password protection travels with the file no matter where it's stored or who receives it.
Removing password protection from a document
If you want to remove the password protection later, open the document (you'll need to enter the password), then go to File > Info > Protect Document > Encrypt with Password on Windows or Tools > Protect Document > Encrypt with Password on Mac. Leave the password field blank and click OK. Save the document. The password protection is now removed and anyone can open it without entering a password.
You can also change the password by following the same steps and entering a new password instead of leaving the field blank.
Frequently Asked Questions
Can I password-protect a Word document that's already shared with others?
Yes. Password protection is a property of the file itself, not the sharing settings. You can password-protect a document that's already in a shared folder or sent to someone. However, anyone who already has a copy of the unprotected version will still have that copy — password protection only affects the original file going forward.
What if I forget the password to my own document?
Microsoft cannot recover or reset a lost password. Your only options are to recreate the document from scratch, find an unprotected backup copy if you have one, or use third-party password recovery software (which may or may not work depending on the password strength). This is why writing down your password somewhere safe is important.
Does password protection work on .doc files or only .docx?
Password protection works on .docx files (the current Word format) reliably across all versions. Older .doc files may not support encryption in newer versions of Word. If you're working with an older document, save it as .docx first, then add password protection.
Can someone remove the password protection without knowing the password?
Not with standard Word tools. Password protection uses encryption, which means the document is scrambled in a way that requires the correct password to unscramble. Specialized password recovery software exists, but it's slow and unreliable for strong passwords. A well-chosen password is genuinely protective.
Is password protection the same as making a document read-only?
No. Read-only means someone can open and view the document but cannot save changes to it. Password protection means they cannot open the document at all without the password. Read-only is a sharing tool; password protection is a security tool. You can use both on the same document if you want.