Password protection in Word works differently depending on which version you use
Microsoft Word lets you set a password so that anyone opening your document has to type it in first. The steps differ between Word on Windows, Word on Mac, and Word Online — and the protection level varies too. A password in Word prevents someone from opening the file at all, which is stronger than some other protection options Word offers (like preventing edits while allowing viewing).
The most common route is using the "Encrypt with Password" feature, which scrambles your document so it cannot be read without the correct password. This works the same way across Windows and Mac versions of Word 2016 and later.
Key Takeaways
- Word's password protection prevents anyone from opening your document without typing the correct password first.
- On Windows and Mac, go to File > Info > Protect Document > Encrypt with Password, then type your password twice.
- Word Online does not have a built-in password feature, but you can password-protect the file through your cloud storage (OneDrive or SharePoint) instead.
- Once you set a password, write it down somewhere safe — if you forget it, Microsoft cannot recover it for you.
- Password protection encrypts the file itself, so the password applies no matter where the file is stored or shared.
How to password protect on Windows
Open your Word document and go to the File menu in the top left. Click Info in the left sidebar. You will see a button labeled Protect Document with a dropdown arrow next to it — click that arrow and select Encrypt with Password.
A dialog box will appear asking you to enter a password. Type your password in the field, then click OK. Word will ask you to type the password again to confirm it. Once you confirm, click OK again. Save your document — the password is now active.
The next time anyone (including you) opens this file, Word will prompt for the password before the document appears. If the wrong password is entered, the file will not open.
How to password protect on Mac
The process on Mac is nearly identical. Open your document and click File in the menu bar at the top. Select Info, then look for Protect Document and click the dropdown arrow next to it. Choose Encrypt with Password.
Enter your password in the dialog that appears, click OK, then type the password again when prompted. Click OK once more and save your document. The password protection is now in place.
Password protecting in Word Online
Word Online (the browser version you access through Office.com or your OneDrive) does not have a built-in password feature within the application itself. However, you can protect the file through your cloud storage instead. If your document is stored on OneDrive, you can set sharing permissions to limit who can access it, but that is different from a password.
For actual password protection of a file in Word Online, download the document to your computer, password-protect it using the Windows or Mac steps above, then upload it back to OneDrive. Alternatively, some organizations using SharePoint can set document-level passwords through SharePoint settings, but this requires administrator access.
What to do if you forget your password
Microsoft does not have a way to recover a forgotten password for an encrypted Word document. If you lose the password, the file cannot be opened. This is by design — the encryption is meant to be unbreakable without the correct password.
If you have a backup copy of the document without password protection, use that instead. Otherwise, the document is inaccessible. This is why it is important to store your password somewhere secure — a password manager, a locked drawer, or another method that works for you.
The difference between password protection and other Word security features
Word offers several ways to restrict what people can do with a document, and they work differently. Encrypt with Password prevents the document from being opened at all without the password. Restrict Editing (also under Protect Document) lets people open the document but prevents them from making changes — they can read it but not edit it. Mark as Final suggests the document is complete but does not actually prevent editing.
If you want to share a document with someone and let them read it but not change it, Restrict Editing is the right choice. If you want to prevent anyone from even seeing the contents without a password, use Encrypt with Password. Choose based on what you actually need to prevent.
Password strength and security considerations
A strong password for your Word document should be at least 8 characters long and include a mix of uppercase letters, lowercase letters, numbers, and symbols. Something like "BlueMoon#2024" is stronger than "password" or "12345678". Word does not enforce password strength — it will accept a simple password — but a stronger one is harder to guess.
Keep in mind that password protection encrypts the file, but it does not hide the fact that the file exists or its filename. If someone has access to your computer or cloud storage, they can see the file is there; they just cannot open it without the password. If you need to hide that a file exists at all, password protection alone is not enough — you would need to store it in a hidden folder or use additional security measures.
Frequently Asked Questions
Can I password protect just part of a Word document?
No. Password protection in Word applies to the entire document — you cannot lock only certain sections. If you need to restrict editing on specific parts while allowing changes elsewhere, use Restrict Editing and set permissions for particular sections instead.
What happens if someone tries to open my password-protected document?
They will see a password prompt before the document opens. If they enter the wrong password, Word will tell them the password is incorrect and the document will not open. They can try again, but there is no limit on attempts — someone could theoretically keep guessing.
Does password protection work if I email the document to someone?
Yes. The password is built into the file itself, not dependent on where it is stored or how it is shared. Whether you email it, upload it to cloud storage, or hand someone a USB drive, the password protection travels with the file.
Can I remove a password I set on a Word document?
Yes, if you know the password. Open the document, enter the password when prompted, then go to File > Info > Protect Document > Encrypt with Password. Leave the password field blank and click OK. Save the document, and the password protection is removed.
Is Word password protection the same as file encryption?
Word's "Encrypt with Password" feature uses encryption to scramble your document, so the terms are related but not identical. The encryption is the method; the password is what controls access to it. The result is that your document is encrypted and password-protected at the same time.