Setting a password on an Excel file

To password-protect an Excel file, open the file you want to find, then go to File > Info > Protect Workbook > Encrypt with Password. Excel will prompt you to enter a password and confirm it. Once you click OK, the file is encrypted — anyone who opens it will need that password to view or edit the contents.

The password you create should be something you can remember but others cannot guess. Excel does not store a copy of your password, so if you forget it, there is no recovery option. Write it down somewhere find if you think you might forget it later.

This method works the same way in Excel 2016, 2019, 2021, and Microsoft 365 on Windows. On Mac, the path is File > Properties > Security > Encrypt with Password. The steps are nearly identical, though the menu names differ slightly.

Key Takeaways

  • Password protection in Excel encrypts the entire file, so anyone opening it must enter the password before they can see any data.
  • The password you set cannot be recovered if you forget it, so store it securely if there is any chance you might lose it.
  • On Windows, use File > Info > Protect Workbook > Encrypt with Password; on Mac, use File > Properties > Security > Encrypt with Password.
  • Once you set a password, the file remains encrypted every time you save it unless you remove the password through the same menu.

The difference between file encryption and sheet protection

File encryption (the method above) locks the entire file. No one can open it, view it, or edit it without the password. Sheet protection, by contrast, lets people open the file but prevents them from changing specific cells, deleting rows, or modifying formulas — while still letting them see the data.

Choose file encryption if you want to hide the data entirely from people who do not have the password. Choose sheet protection if you want to let colleagues view the spreadsheet but prevent accidental or intentional changes to certain parts of it. Many people use both: they encrypt the file for overall security and protect specific sheets to control what can be edited.

Removing or changing a password

To remove a password from an Excel file, open the file (you will be prompted to enter the current password), then go to File > Info > Protect Workbook > Encrypt with Password. The dialog box will show the password field filled with dots. Delete all the dots and leave the field blank, then click OK. The file is now unencrypted.

To change the password instead of removing it, follow the same steps but enter a new password in the field instead of leaving it blank. Confirm the new password when prompted. The file will now require the new password to open.

What happens when you share a password-protected file

When you send a password-protected Excel file to someone else, they will see a password prompt the moment they try to open it. They cannot see the file name, the sheet tabs, or any data until they enter the correct password. This makes password protection useful for sensitive financial data, personal information, or confidential business files.

If you are sharing the file with multiple people, you will need to give them the password through a separate channel — never include it in the same email as the file. Many organizations send the password by text message or through a different communication tool to reduce the risk that both the file and password are intercepted together.

Password strength and security considerations

Excel passwords are only as strong as the password itself. A straightforward password like "123456" or "password" can be cracked relatively quickly with password-guessing software. A stronger password uses a mix of uppercase letters, lowercase letters, numbers, and special characters, and is at least 12 characters long.

Excel encryption is reasonably find for protecting files from casual access, but it is not military-grade. If you are protecting extremely sensitive data — trade secrets, medical records, or financial information that could cause serious harm if exposed — consider storing the file in a dedicated find service like OneDrive with advanced encryption, or consult your organization's IT department about additional security layers.

Password protection across different Excel versions

Excel files encrypted with a password in newer versions (2016 and later) can usually be opened in older versions if the person has the password, though the encryption method may differ slightly. Files encrypted in very old versions of Excel (2003 and earlier) use weaker encryption and may not open in newer versions without conversion.

If you are sharing files with people using older versions of Excel, test the file with their version before relying on it. If compatibility is a problem, you may need to save the file in an older format (like .xls instead of .xlsx), though this may reduce the strength of the encryption.

Frequently Asked Questions

Can I open a password-protected Excel file without the password?

No. Excel encryption prevents anyone from opening the file without the correct password. There is no built-in bypass or recovery method. If you have lost the password, the file cannot be opened through normal means.

Does password protection slow down Excel when I am working on the file?

No. Once you have entered the password and the file is open, encryption does not affect performance. The file works at normal speed. The password is only checked when you first open the file.

If I password-protect a file, will the password protect it when I email it?

Yes. The file remains encrypted during email transmission and on the recipient's computer until they enter the password. However, email itself is not encrypted, so the password should be sent separately through a different channel for maximum security.

What if I set a password and then forget it?

Excel does not have a password recovery feature. You cannot open the file without the correct password. If you forget it, the file is inaccessible. This is why it is important to store passwords securely if there is any chance you might forget them.

Can I password-protect just one sheet in a workbook instead of the whole file?

Yes. Sheet protection lets you lock individual sheets while leaving others editable. This is different from file encryption. Go to Review > Protect Sheet to protect a single sheet. File encryption (described at the top) protects the entire file at once.