Skip to content

How to Password-Protect Word, Excel, and PowerPoint Files

By · October 23, 2026 · Updated October 23, 2026

Want to keep a private document, spreadsheet, or presentation from being opened by someone else? Desktop Microsoft Office includes password-to-open encryption for supported Word, Excel, and PowerPoint files. This guide shows how to protect documents and explains the important difference between encryption, editing restrictions, and sharing permissions.

Before you start

Use an up-to-date desktop version of Word, Excel, or PowerPoint. Keep a secure copy of your password. Microsoft generally cannot retrieve a forgotten password for an encrypted Office file. Test the protected file before deleting an unprotected original.

1. Password-protect a Microsoft Word document

Open the document in Word for Windows. Select File → Info → Protect Document → Encrypt with Password. Type a strong password, confirm it, then save the file. Close and reopen the file to verify it asks for the password.

Instructional diagram — Encrypt a Word file on Windows
1. Open File → Info
2. Choose Protect Document
3. Click Encrypt with Password
4. Enter and confirm password
5. Save, close and test
Illustrative workflow, not a screenshot; menu names can differ by Office version.

2. Password-protect an Excel workbook

In Excel for Windows, go to File → Info → Protect Workbook → Encrypt with Password. Enter and confirm the password, save, and test by reopening. Do not confuse this with Protect Sheet, which is designed primarily to limit editing and is not a substitute for file encryption.

Instructional diagram — Encrypt an Excel workbook
1. Select File → Info
2. Open Protect Workbook
3. Choose Encrypt with Password
4. Save and verify on reopen
Illustrative workflow, not a screenshot; menu names can differ by Office version.

3. Password-protect a PowerPoint presentation

In PowerPoint for Windows, select File → Info → Protect Presentation → Encrypt with Password. Type the password, confirm it, save, and reopen the presentation to verify that password entry is required.

Instructional diagram — Encrypt a PowerPoint presentation
1. File → Info
2. Protect Presentation
3. Encrypt with Password
4. Save and reopen to verify
Illustrative workflow, not a screenshot; menu names can differ by Office version.

4. What changes on macOS?

On the Mac desktop apps, password features appear in different places, commonly File → Passwords or Review → Protect, depending on the app and version. Locate the password required to open option rather than a password that only limits editing. Test the file on a copy before relying on protection.

5. Can I password-protect Office files in a browser?

Word, Excel, and PowerPoint for the web generally don’t offer the same password-to-open encryption workflow as the desktop apps. For a cloud document, use the desktop application when you need an encrypted Office file; alternatively, control who can view and edit the document through OneDrive sharing permissions. Access restrictions on a shared link are not identical to encrypting a file with a password.

6. Pick a strong password and store it securely

Use a long unique password or passphrase and store it in a trusted password manager. Never put the password in the same email as the attached document when confidentiality matters. Protect access to your device and Microsoft 365 account with multifactor authentication.

7. Remove or change the file password

First open the file using its existing password. Return to the app’s Encrypt with Password command and remove or change the password as supported, then save. Reopen to verify the change. Never remove the last known-good protected copy until the updated file is tested.

8. Common problems and solutions

The Encrypt with Password option is missing: confirm that you’re using the desktop app and a supported file type. Forgot the password: check your password manager or authorized backup; Microsoft may not be able to recover it. A colleague can still edit a shared file: review OneDrive permissions, because sharing controls and document encryption solve different problems.

Important security distinction

Feature What it does
Encrypt with Password Requires a password to open supported Office files
Protect Sheet / Restrict Editing Limits edits, not equivalent to strong file encryption
OneDrive permissions Controls who can access a cloud-hosted file

Related tutorials

Explore more Microsoft 365 tutorials on ElMajdal.net and our guide to recovering deleted emails in Outlook.

Microsoft references

Protect a Word document with a password · Protect an Excel file