How to password protect a Word document or Excel file (so it needs a password to open)
You want a Word document or an Excel workbook that nobody can open without a password. Word and Excel can do this themselves with Encrypt with Password, which really encrypts the file. Several other "protect" options look similar but only limit editing. Here are Microsoft's current steps, what each option does, and what to watch out for.
Password protect a Word document
- Open the document and go to File → Info → Protect Document → Encrypt with Password.
- Type a password and select OK, then type it again and select OK.
- Save the file. Microsoft says this makes sure the password takes effect.
Microsoft gives these steps for Word for Microsoft 365, Word 2024, 2021, 2019 and 2016. They're the same on Windows 11 and Windows 10; what matters is the Word version. On a Mac, use Review → Protect → Protect Document and set a password to open under Security.
Password protect an Excel file to open
- Select File → Info.
- Select the Protect Workbook box and choose Encrypt with Password.
- Enter a password in the Password box and select OK.
- Enter it again in the Reenter Password box, select OK, and save the workbook.
Microsoft says Excel places no restrictions on password length, characters or numbers, and passwords are case-sensitive. One exception: passwords in Excel for Mac and Word for Mac are limited to 15 characters, and a file protected on Windows with a longer password can't be opened there. Close and reopen the file to check that it asks for the password.
In a browser: Microsoft says Word for the web can't password-encrypt a document or edit one that's encrypted, and that passwords can't be added, changed, removed or recovered in Excel for the web. Use Open in Word or Open in Excel to do it in the desktop app.
What each option can and can't do
| Option | Where | What it does | Stops people reading the file? |
|---|---|---|---|
| Encrypt with Password | File → Info → Protect Document or Protect Workbook | Encrypts the file; it needs the password to open | Yes |
| Protect Sheet (Excel) | Review → Protect Sheet | Stops changes to locked cells. Microsoft: "Worksheet level protection isn't intended as a security feature." | No |
| Protect Workbook (Excel) | Review → Protect Workbook | Locks the structure: stops adding, moving, deleting, hiding or renaming sheets and viewing hidden ones | No |
| Restrict Editing (Word) | Review → Protect → Restrict Editing | Makes the document read-only except parts you allow; its password lets people remove the protection | No |
| Mark as Final | File → Info → Protect → Mark as Final | Makes the file read-only. Microsoft: "not a security feature"; anyone can remove it | No |
| Clavis Encrypt | The Clavis Encrypt app | Encrypts any file, Office or not, and hides its real name | Yes |
Microsoft's Excel overview also warns: "You should not assume that just because you protect a workbook or worksheet with a password that it is secure."
Can I password protect one Excel sheet from viewing?
Not on its own: the password to open covers the whole file. You can hide the sheet and then protect the workbook structure with a password, which Microsoft says stops others from viewing hidden worksheets in Excel. But that's protection against changes, not encryption, and the warning above applies. To keep one sheet private, move it into a separate workbook and encrypt that file with a password.
What encryption Word and Excel use
Microsoft's help pages don't name the algorithm, but its file-format specification for Office encryption (MS-OFFCRYPTO) describes it. Today's .docx and .xlsx files use what it calls ECMA-376 document encryption, based on AES. Microsoft's IT documentation for Office 2016 gives the defaults as AES with a 256-bit key in CBC mode; it doesn't say whether newer versions changed them.
Older formats are a different story. When the older binary .doc and .xls formats are encrypted, the specification says RC4 encryption or XOR obfuscation is used. It calls one RC4 method "insecure" and the other "easily reversible", and recommends neither for sensitive material. So save as .docx or .xlsx before you add a password.
How to remove the password
You need the current password. In Word, open the document and enter its password, go to File → Info → Protect Document → Encrypt with Password, clear the Password box and select OK. In Excel, it's File → Info → Protect Workbook → Encrypt with Password; clear the asterisks and select OK. Then save.
What can go wrong
- A forgotten password locks you out. Microsoft says Word "won't be able to recover it for you" and that Microsoft "cannot retrieve forgotten passwords". At work, IT may be able to help only if it set up Microsoft's DocRecrypt tool before you created the password.
- Sharing the password. Send it separately from the file, by a call or a text, never in the same email. Microsoft warns that passwords can fall into the wrong hands when you share them.
- The file name still shows.
Salaries 2026.xlsxtells anyone who sees the folder or email what it is. - Earlier copies aren't protected. Copies you emailed, backed up or synced before adding the password stay readable.
- Old formats. A
.docor.xlsfile gets the weak older encryption described above.
Where Clavis Encrypt fits
Office's own encryption is the right tool when someone needs to open the file in Word or Excel. Clavis Encrypt helps with the rest: files that aren't Office documents (PDFs, scans, photos, ZIPs), files you keep on your own PC, and files whose names give too much away. It encrypts the whole file with AES-256-GCM, with a key derived from your password by Argon2id, gives the encrypted file a random name with the real one stored inside, checks for tampering when you decrypt, and gives you a recovery key in case you forget your password. Choose a file (or several) and press Encrypt; that's free on Windows 10 and 11 and Linux. Encrypting whole folders in one step is Pro ($19 once). Clavis replaces the original with the encrypted file. To edit it, decrypt it again, or with Pro use Open: the file opens in Word or Excel from a temporary working copy and is locked again when you're done. To send a locked copy to someone without Clavis, see encrypting files before emailing them. Clavis is closed source and hasn't been independently audited; its file format is public, with an open-source decryptor.
Questions
How do I password protect an Excel file so it needs a password to open?
Select File, then Info, select the Protect Workbook box and choose Encrypt with Password. Enter the password, confirm it and save. Protect Sheet and the Review tab's Protect Workbook don't do this; they only limit changes.
How do I password protect a Word document in Windows 11?
In Word, go to File, then Info, then Protect Document, then Encrypt with Password. Type the password twice and save the file. The steps depend on your Word version, not on Windows 11 or 10.
Can I password protect one Excel sheet from viewing?
Not separately. You can hide the sheet and protect the workbook structure, but Microsoft says not to assume that's secure. Move the sheet into its own workbook and encrypt that file instead.
Is Protect Sheet the same as encrypting the file?
No. Microsoft says worksheet protection isn't intended as a security feature: it only stops changes to locked cells. Anyone can still open and read the workbook.
I forgot the password to my Word or Excel file. Can Microsoft unlock it?
No. Microsoft says it can't retrieve forgotten passwords. In an organization, IT can help only if it set up the DocRecrypt tool before the password was created.
How do I remove the password from a Word or Excel file?
Open the file with its password, go to File, Info, Protect Document (or Protect Workbook), Encrypt with Password, clear the password box, select OK and save.
Can I add a password in Word or Excel for the web?
No. Microsoft says Word for the web can't password-encrypt documents, and Excel for the web can't add, change or remove passwords. Open the file in the desktop app.
Sources
- Microsoft Support: Protect a Word document with a password (Encrypt with Password, save to apply, Mac steps, Word for the web, no recovery, DocRecrypt)
- Microsoft Support: Remove a password from a document (Word)
- Microsoft Support: Protect an Excel file (Encrypt with Password, no length restrictions, case-sensitive, Microsoft can't retrieve forgotten passwords, sharing warning)
- Microsoft Support: Upgrade Power Pivot data models (removing an Excel open password: clear the asterisks)
- Microsoft Support: Change or remove workbook passwords (15-character limit in Excel and Word for Mac)
- Microsoft Support: Protection and security in Excel (file, workbook and worksheet levels; protected doesn't mean secure)
- Microsoft Support: Protect a worksheet (not intended as a security feature)
- Microsoft Support: Protect a workbook (structure protection, hidden worksheets, Excel for the web)
- Microsoft Support: Allow changes to parts of a protected Word document (Restrict Editing)
- Microsoft Support: Help prevent changes to a final version of a file (Mark as Final is not a security feature)
- Microsoft Learn: Cryptography and encryption in Office 2016 (defaults for Open XML files: AES, 256-bit key, CBC; .doc and .xls use RC4, not recommended)
- Microsoft Learn, MS-OFFCRYPTO 1.3.3: Encryption (XOR obfuscation, RC4, CryptoAPI and ECMA-376 encryption; AES)
- Microsoft Learn, MS-OFFCRYPTO Appendix A: Product behavior (AES as the default encryption algorithm)
- Microsoft Learn, MS-OFFCRYPTO 1.5.3: Encryption (binary file types use RC4 or XOR obfuscation)
- Microsoft Learn, MS-OFFCRYPTO 4.1.3.2: Office binary document RC4 CryptoAPI encryption (considered insecure)
- Microsoft Learn, MS-OFFCRYPTO 4.1.3.3: Office binary document RC4 encryption (considered easily reversible)
Last checked against Microsoft's documentation on November 11, 2026. Menus can change between Office versions; what your own Word or Excel shows is the final word.
Related: password-protecting a PDF on Windows, password-protecting a ZIP file on Windows 11 and password-protecting a folder on Windows.