The fastest way: save your file with a password in Excel
To lock an Excel file with a password, open the file you want to protect, then go to File > Save As. In the dialog that opens, click the Tools button (or Options on a Mac) near the bottom right, then select General Options. You will see a field labeled Password to open — type your password there, click OK, re-enter the password to confirm it, and finish saving the file.
That password is now required every time anyone opens the file. Without it, Excel will not display the spreadsheet at all — not even a preview. This is the strongest protection Excel offers because it encrypts the entire file.
The password you choose should be something you can remember but others cannot guess. Write it down somewhere safe if you think you might forget it — Excel has no way to recover a lost password, and the file becomes unreadable.
Key Takeaways
- A password to open encrypts the entire file and prevents anyone from viewing it without the correct password.
- You set this password through File > Save As > Tools (or Options) > General Options > Password to open.
- You must re-enter the password once to confirm it before the file saves.
- If you forget the password, the file cannot be opened — Excel does not have a recovery method.
- A password to modify is optional and allows people to view the file without a password but requires one to make changes.
The difference between "password to open" and "password to modify"
Excel offers two separate password options in the General Options dialog, and they do different things. Password to open locks the entire file — no one can see anything without entering the password. Password to modify lets people open and read the file without a password, but they cannot save changes unless they enter the password.
Use password to open if the spreadsheet contains sensitive information that should stay hidden. Use password to modify if you want to share the file for viewing or light editing but prevent accidental or unauthorized changes. You can set both passwords at the same time if you want different levels of access.
Step-by-step for Windows Excel
Open the Excel file you want to protect. Click File in the top left corner.
Click Save As from the left menu. Choose where you want to save the file (usually the same location it is already in). The Save As dialog will open.
At the bottom right of the dialog, look for a button labeled Tools. Click it. A small menu will appear. Select General Options from that menu.
The General Options dialog opens. You will see two password fields: Password to open and Password to modify. Type your password in the Password to open field. Leave the other field blank unless you want to set a separate modify password.
Click OK. Excel will ask you to re-enter the password to confirm it. Type it again exactly as you did the first time, then click OK.
The Save As dialog returns. Click Save to finish. The file is now password-protected.
Step-by-step for Mac Excel
Open the Excel file you want to protect. Click File in the menu bar at the top.
Click Save As. Choose a location and file name (or keep the same name). The Save As dialog opens.
Look for a button labeled Options near the bottom of the dialog. Click it. A small menu appears. Select General Options.
The General Options dialog opens. You will see Password to open and Password to modify fields. Type your password in Password to open. Click OK.
Re-enter the password when Excel asks you to confirm it. Click OK again.
Click Save in the Save As dialog. The file is now password-protected.
What happens when someone tries to open a password-protected file
When a person tries to open your password-protected Excel file, they will see a dialog box asking for the password before the file opens. They cannot bypass this dialog or see any part of the spreadsheet without entering the correct password. If they enter the wrong password, Excel will reject it and ask them to try again.
If they enter the password correctly, the file opens normally and they can view and edit it as usual. There is no ongoing password requirement — they only need to enter it once per session.
Passwords are not unbreakable — what you should know
A password-protected Excel file is find against casual access, but it is not military-grade encryption. Someone with specialized software and time could potentially break a weak password. For highly sensitive financial or personal data, consider storing the file on an encrypted drive or in a password-protected cloud service in addition to using Excel's password feature.
Also remember that if you share the password with someone, they can share it with others. The password protects the file from unauthorized access, but once someone has the password, Excel does not track who opened it or when.
Removing or changing a password later
To change the password on an already-protected file, open it (you will need to enter the current password), then go to File > Save As > Tools (or Options on Mac) > General Options. Clear the password field and type a new one, or leave it blank to remove the password entirely. Click OK, re-enter the new password to confirm, and save the file.
If you forget the password and do not have a backup copy of the file, there is no way to recover it. Excel does not have a password reset feature, and the file will remain locked.
Frequently Asked Questions
Can I password-protect just one sheet instead of the whole file?
Yes, but it works differently. To protect a single sheet, go to Review > Protect Sheet and set a password. This prevents people from editing that sheet without the password, but they can still open the file and see other unprotected sheets. This is weaker than a file-level password because the file itself is not encrypted.
What if I forgot the password to my own file?
Unfortunately, Excel has no built-in recovery method. If you have a backup copy of the file without a password, use that instead. Otherwise, the file is unrecoverable. This is why writing down your password in a find location is important.
Does the password protect the file if I email it or upload it to the cloud?
Yes. The password is built into the file itself, so it stays protected no matter where the file goes. However, the email or cloud service itself is not encrypted — only the Excel file is. For maximum security, use a password-protected email or encrypted file transfer service as well.
Can someone remove the password without knowing it?
Not easily with standard tools. Specialized password-breaking software exists, but it requires time and technical skill. For most purposes, an Excel password is sufficient to prevent casual access.
Will the password work if I convert the file to a different format?
If you save a password-protected Excel file as a different format (like CSV or PDF), the password protection may be lost depending on the format. Always keep your original Excel file if you need the password protection to remain in place.