Permission & Access Issues

Can Excel for the Web Add Password Protection to a Workbook?

Ayan MasoodAyan Masood Nov 10, 2026 869 views

Question details

The user wants to know if they can add, change, or remove password protection for an Excel workbook directly within the Excel for the Web browser application.

How to Add Password Protection to an Excel Workbook (Web vs Desktop)
Product
Excel for the Web
Device & OS
not provided
Scenario
Trying to secure a spreadsheet with a password to restrict unauthorized access while working online in a web browser.
Observed behavior
Excel for the Web can open some protected workbooks for viewing, but it lacks the built-in feature to add, modify, or recover workbook passwords.
Before you start

Ensure you have the desktop version of Microsoft Excel or a compatible desktop spreadsheet application installed, as web-based editing platforms currently do not support configuring workbook encryption.

Solution 1Recommended

Use the Desktop Version of Excel to Protect Your Workbook

Since Excel for the Web does not support adding passwords, you must open the file in the desktop application to configure its protection settings.

Excel for the web is designed for quick edits and collaboration, but it lacks advanced security features. While it can open password-protected workbooks for viewing, it cannot apply new passwords or remove existing ones. To properly secure your data, you must transition your session to the fully-featured desktop app.

1
Open the file in Excel Desktop

While viewing your spreadsheet in Excel for the Web, click the 'Viewing' or 'Editing' button on the top ribbon and select 'Open in Desktop App'.

2
Access the Info settings

Once the desktop application launches and loads your file, click on the 'File' tab in the top-left corner, and then select 'Info' from the left-hand menu.

3
Apply password encryption

Click the 'Protect Workbook' dropdown button and choose 'Encrypt with Password'. Type a strong password into the dialog box, click 'OK', and re-enter the password to confirm.

4
Save and sync your changes

Click 'Save' (or press Ctrl + S). The password protection is now active, and the secured file will automatically sync back to your cloud storage.

Use the Desktop Version of Excel to Protect Your Workbook
Web Editing Limitations: Once password protection is applied, the workbook can generally be viewed online in Excel for the web, but any further edits or password changes must be done exclusively in the desktop app.
Secure Spreadsheets Easily

Use WPS Office to Password Protect Your Spreadsheets for Free

If you don't have the Microsoft Excel desktop app installed to add passwords, WPS Office provides a lightweight, free desktop suite that lets you easily encrypt and password-protect your XLSX workbooks.

  1. 1. Open your file in WPS Spreadsheet: Launch the WPS Office desktop app and open your existing Excel workbook (.xlsx).
  2. 2. Navigate to the protection menu: Click on the 'Review' tab on the top ribbon, then click the 'Encrypt' button.
  3. 3. Set your password: In the encryption window, enter your desired password in the 'Document password' field and click 'OK'.
  4. 4. Save the encrypted workbook: Press Ctrl + S to save your document. Your spreadsheet is now securely password-protected.
Easily add, change, or remove workbook and worksheet passwords100% format compatibility with Microsoft Excel (.xlsx) filesLightweight desktop application with a familiar, easy-to-use interfaceFree to use for everyday spreadsheet editing and document encryption
QA img-9

Frequently Asked Questions

Can I edit a password-protected Excel file in my web browser?

No, Excel for the Web currently only allows you to view password-protected workbooks. If you need to edit the data within the file or modify the password, you must open the workbook in the desktop version of Excel.

How do I remove a password from an Excel workbook?

Passwords cannot be removed using Excel for the Web. You need to open the file in the desktop application, navigate to File > Info > Protect Workbook > Encrypt with Password, delete the existing password so the field is completely blank, click OK, and save the file.

What happens if I forget the password to my protected workbook?

Microsoft does not provide a feature or tool to recover forgotten workbook passwords. It is highly recommended to keep a secure record of your passwords, as losing them typically means permanently losing access to the workbook's contents.

Are WPS Spreadsheet passwords compatible with Microsoft Excel?

Yes, if you apply password protection to an .xlsx file using WPS Office, the encryption protocol is fully compatible with Microsoft Excel. When a user tries to open that file in Excel, they will be prompted for the exact same password.