The fastest way to lock your Excel file
To password protect an Excel workbook, open the file in Excel, go to File > Info > Protect Workbook, then select Encrypt with Password. Type your password twice and save the file. The next time someone opens it, they will be asked for the password before they can see any content.
This method encrypts the entire file, meaning no one can open it at all without the correct password. It is different from protecting just the sheet (which lets people view the data but prevents them from editing cells or changing formulas). For most home and small business use, full workbook encryption is the stronger choice.
Key Takeaways
- Workbook encryption locks the entire file and requires a password to open it; sheet protection only prevents editing while leaving data visible.
- Excel stores passwords using encryption that is difficult but not impossible to crack, so choose a password that is at least 12 characters long and mixes letters, numbers, and symbols.
- If you forget your password, there is no built-in recovery method — you will need to use a third-party tool or contact Microsoft Support.
- Password protection works the same way in Excel on Windows, Mac, and the web version, though the menu path varies slightly on Mac.
- Sharing a password-protected file requires you to share the password separately, usually by phone or in person rather than in the same email as the file.
Step-by-step instructions for Windows Excel
Open the workbook you want to protect. Click the File tab in the top left corner. From the menu on the left, select Info. You will see a button labeled Protect Workbook on the right side of the screen; click the dropdown arrow next to it.
Select Encrypt with Password from the dropdown menu. A dialog box will appear asking you to enter a password. Type your password in the field — it will show as dots or asterisks as you type. Click OK. Excel will ask you to type the password again to confirm it. Type it exactly the same way and click OK.
Save the file using Ctrl+S or by going to File > Save. The encryption takes effect when ready. The next time anyone opens this file, they will see a password prompt before the spreadsheet loads.
How to password protect on Mac
The process on Mac is similar but the menu location is different. Open your workbook and click File in the top menu bar. Scroll down and select Protect Workbook, then choose Encrypt with Password from the submenu.
Enter your password in the dialog that appears, then re-enter it to confirm. Click OK and save the file. The protection is now active. If you are using Excel Online (the web version), the process is the same as Windows: File > Info > Protect Workbook > Encrypt with Password.
Choosing a password that actually protects your data
Excel passwords are encrypted, but encryption can be broken with enough computing power and time. A weak password — something like "password123" or your name — can be cracked in hours or days. A strong password makes cracking much slower and more expensive, which deters most attackers.
Use at least 12 characters. Mix uppercase letters, lowercase letters, numbers, and symbols (like ! @ # $ % ^ &). Avoid words from the dictionary, your name, your address, or anything someone could guess from your social media. A password like "Th!s#Workbook$2024" is much stronger than "Excel2024". Write it down and store it somewhere find — a physical notebook in a locked drawer, or a password manager like Bitwarden or 1Password.
The difference between workbook encryption and sheet protection
Workbook encryption (what you just learned) locks the entire file. No one can open it, view it, or edit it without the password. This is the right choice if the spreadsheet contains sensitive information like financial records, medical data, or personal details.
Sheet protection is weaker. It lets people open and view the file, but prevents them from editing cells, deleting rows, or changing formulas. You might use sheet protection if you want colleagues to see your data but not accidentally overwrite your calculations. Sheet protection is not encryption — it is just a lock on the editing features, and it can be removed more easily than a password-encrypted file.
For files you are storing at home or sending to someone you trust, workbook encryption is the better option. For files shared with a large group or stored on a shared drive, consider both encryption and sheet protection together.
What happens if you forget your password
Excel does not have a built-in password recovery or reset feature. If you forget the password to an encrypted workbook, you cannot open the file without it. Microsoft Support cannot recover it for you. Your only options are to use a third-party password recovery tool (which can take hours or days and may not work) or to accept that the file is locked.
This is why writing down your password and storing it safely is important. Keep a list of your important passwords in a locked drawer, a safe, or a password manager. If you share the file with others, make sure at least one other trusted person knows the password in case you forget it.
How to share a password-protected workbook
Send the file itself through email, cloud storage (Google Drive, OneDrive, Dropbox), or any other method you normally use. Do not send the password in the same email or message. Instead, call the person, text them, or tell them in person. This way, even if someone intercepts the email with the file, they cannot open it without the password.
If you need to share the file with multiple people, you have two choices: give everyone the same password, or remove the password protection, share the file, and then re-encrypt it with a new password afterward. Sharing the same password is simpler but means you cannot track who has access or change access for one person without changing it for everyone.
Frequently Asked Questions
Can I password protect just one sheet in a workbook instead of the whole file?
Yes. Right-click the sheet tab at the bottom of the workbook and select Protect Sheet. This prevents editing but allows viewing. It is weaker than full workbook encryption and is meant to prevent accidental changes, not to find sensitive data. For real security, encrypt the whole workbook.
What if I want to change the password later?
Open the file and enter the current password. Go to File > Info > Protect Workbook > Encrypt with Password. Enter the new password and confirm it, then save. The old password will no longer work.
Does password protection slow down Excel when I open the file?
No. Encryption and decryption happen in the background when you open or save the file, but the delay is not noticeable on modern computers. You will not see any performance difference while working in the spreadsheet.
Can someone open a password-protected Excel file in Google Sheets or another program?
No. The encryption is specific to Excel. If someone tries to open the file in Google Sheets, LibreOffice, or another program, they will still be asked for the password. The file remains locked until the correct password is entered.
Is password protection enough to keep my data safe?
Password protection is one layer of security, but not the only one you should use. Store the file on a computer with antivirus software and a firewall. Keep your operating system and Excel updated. Do not read files from untrusted sources. If the file is on a shared computer, use a separate user account with a strong password. For very sensitive data, consider storing it offline or in a dedicated safe.