[2026] How to Password Protect Excel File on Windows & Mac?

Updated 2026-02-10 20:28:07

5 min read

Excel files often store highly sensitive information, including financial records, business data, personal details, and confidential reports. Leaving these files unprotected can lead to unauthorized access, accidental edits, or data leaks.

If you are searching for how to password-protect an Excel file, Microsoft Excel provides built-in security features that work on both Windows and Mac. This guide explains how Excel password protection works, when to use it, and how to apply it correctly, step by step.

Can You Password-Protect an Excel File?

Yes, you can password-protect an Excel file using Microsoft Excel's built-in security options. Excel allows users to secure files without installing any third-party software, making it a reliable solution for everyday data protection.

Excel provides two main types of password protection, each serving a different purpose:

  • Password to open: Prevents anyone from opening the Excel file unless they enter the correct password.
  • Password to modify or edit: Allows users to open the file but restricts editing unless an additional password is entered.

These options give users flexibility depending on whether they want to fully block access or simply control who can make changes. Understanding how to protect an Excel sheet with a password helps ensure that sensitive spreadsheets remain secure while still being shareable when needed.

Why You Should Protect an Excel File with a Password?

Adding a password to an Excel file is not just about security; it is also about control and accountability. Once an Excel file is shared or stored digitally, it can easily be copied, modified, or misused if left unprotected. Here are the main reasons why password protection matters:

  • Prevents unauthorized users from opening confidential spreadsheets
  • Protects sensitive financial, HR, or customer data
  • Stops accidental edits or deletions in shared workbooks
  • Ensures only approved users can modify formulas or structures
  • Adds protection when files are emailed or uploaded to cloud storage
  • Reduces the risk of data leaks on shared or public computers

Learning how to password-protect an Excel workbook or password-protect an Excel sheet from viewing is especially important for businesses, freelancers, and students who frequently share spreadsheets across devices or teams.

How to Password Protect an Excel File on Windows?

Windows users can apply password protection directly in Microsoft Excel using a simple built-in process. This method works in Excel 2016, 2019, 2021, and Microsoft 365.

Steps to Password-Protect an Excel File on Windows:

When you need to make the whole file password-protected so that no unauthorized user can open it, you can follow the steps below:

  • Open the Excel file you want to protect and click “File” in the top-left corner. Select Info from the left menu, and proceed with password protection.

  • Click “Protect Workbook” and select the desired password protection. In this case, you will choose “Encrypt with Password” to prevent unauthorized users from opening the document.

    password protect an excel file on windows
  • Enter a strong password and click “OK," then re-enter the password to confirm and save the file to apply the protection.

After saving, Excel will require the password every time someone attempts to open the file. This method ensures full access protection.

If you want others to view the file, but prevent content changes, the process is slightly different from adding password protection to the whole file. Here’s how to do.

  • When you are done creating your Excel file, click "File" and select "Save As", then click "Tools" and choose "General Options" inside the File Explorer Menu.

    password to modify an excel document on windows
  • Now add your Password against the “Password to Modify” option and click “OK” to save.

These options are useful when collaboration is needed, but data integrity must be preserved. Proper password protection of Excel file settings helps avoid accidental changes while maintaining accessibility.

How to Password Protect an Excel File on Mac?

Mac users can also secure Excel files using the built-in password protection features available in Excel for macOS. While the interface differs slightly from Windows, the protection level is the same.

Steps to Password-Protect an Excel File on Mac:

The process to password-protect your Excel file on a Mac is slightly different from Windows, and here is a detailed breakdown of the steps you need to follow:

  • Open the Excel file in Microsoft Excel for Mac and click “File” in the top menu and select “Passwords.

  • Enter a password in the “Password to open” field and click "OK," then re-enter the password to confirm.

    protect an excel file with a password on mac
  • Click “OK” and save the file.

Once saved, the file will prompt for a password whenever someone tries to open it.

If you want to allow viewing but restrict editing, you can enter a password under “Password to modify.” Then save the file after confirming the password.

This setup is ideal for shared spreadsheets that should not be altered. Understanding how to protect an Excel file with a password on a Mac ensures consistent data security across Apple devices.

⚡ How to Recover a Lost/Unsaved/Deleted Excel File?

Despite using passwords and safeguards, Excel files can still be lost due to system crashes, accidental deletion, or unsaved changes. In such cases, 4DDiG Data Recovery Free provides an effective solution for both Windows and Mac users. It can recover deleted, lost, or unsaved Excel files from internal drives, external storage, USB devices, and more.

Free Download

100% Secure

Free Download

100% Secure

Buy Now

100% Secure

Buy Now

100% Secure

Steps to Recover Excel Files Using 4DDiG Data Recovery:

  • Download and install 4DDiG Data Recovery on your computer. Launch the software and select the drive where the Excel file was stored.

    click the hard drive tab
  • Shortlist the results by using the "Search" and "Filter" options from the top, or you can directly click the “Unsaved File” tab under the tree.

    click the unsaved file tab
  • Select the file to have a quick preview and click “Recover”.

    preview and recover the file
  • Select a location where you want to store the recovered file, then click “Save Now”.

    save the recovered file

How to Remove Password Protection from Excel?

Sometimes you may need to remove password protection after a file is no longer sensitive. Excel allows password removal if you know the existing password.

Remove Password Protection from Excel on Windows:

Removing password protection means that your Excel documents can be opened by anyone, and here is how to do that.

  • Open the protected Excel file and enter the correct password to gain access to its contents.

  • Click “File” from the top and go to the "Info" tab, then click the "Protect Workbook” option.

    remove password protection from excel on windows
  • Select the “Encrypt with Password” option, and Excel will display the Password window.

  • Delete the password from the field and click “OK” to remove the password. Finally, save the file to remove the encryption from it.

Remove Password Protection from Excel on Mac:

Just like adding the password, removing it is also different when you are using Excel software on a Mac. Here is how to remove your Excel file password protection on Mac:

  • Open the Excel file and enter the password to unlock it.

  • Click the "File” tab from the top menu and go to “Passwords”.

    remove password protection from excel on mac
  • Clear the password fields and click "OK," then save the file to remove protection.

These steps make the file accessible again without restrictions. Knowing how to make an Excel file password-protected also means knowing how to remove that protection when it is no longer needed.

Tips for Creating Strong and Secure Excel Passwords

Using a strong password is just as important as enabling password protection. Weak passwords reduce the effectiveness of Excel's encryption. Here are the best practices for secure Excel passwords:

  • Use at least 12 characters
  • Combine uppercase and lowercase letters
  • Include numbers and special characters
  • Avoid personal information or common words
  • Do not reuse passwords from other accounts
  • Store passwords securely using a password manager

Strong passwords help ensure that Excel file encryption remains effective against unauthorized access.

Conclusion

Learning how to password protect an Excel file is essential for safeguarding sensitive data on both Windows and Mac. Excel’s built-in security options allow users to control access, prevent unauthorized edits, and maintain data integrity.

However, data loss can still occur unexpectedly. Using 4DDiG Free provides an added safety net, ensuring that important Excel files can be recovered even if they are deleted, lost, or corrupted.

Free Download

100% Secure

Free Download

100% Secure

Buy Now

100% Secure

Buy Now

100% Secure

FAQs About Password Protecting Excel Files

Q1: How do you restrict access to an Excel file?

Use the Encrypt with Password option to block access entirely.

Use Protect Sheet or Protect Workbook Structure to restrict changes.

Ensure the file is not read-only and that you are using a supported Excel version.

Enter the correct password when prompted during file opening.