How to Password Protect an Excel File: Complete Guide for Every Platform
Step-by-step guide to password protecting Excel files on Windows, Mac, Google Sheets, and LibreOffice. Learn about AES-256 encryption and how to share passwords safely.

How to Password Protect an Excel File: Complete Guide for Every Platform
Spreadsheets hold some of the most sensitive information in any organization. Payroll figures, client contact lists, quarterly forecasts, tax calculations, HR records. If any of these fall into the wrong hands, the consequences can be severe.
The good news: Microsoft Excel has built-in encryption that uses AES-256, the same standard banks and governments rely on. The bad news: most people either skip it entirely or have no idea how to share the password safely afterward.
This guide walks you through every method, platform by platform, and then tackles the part everyone forgets: getting the password to the right person without exposing it.
Why You Should Password Protect Excel Files
Before diving into the steps, consider what is typically stored in spreadsheets:
- Financial data: budgets, invoices, revenue projections
- HR records: salaries, social security numbers, performance reviews
- Client lists: contact details, contract terms, pricing
- Personal information: tax returns, medical expenses, loan applications
An unprotected Excel file attached to an email is essentially a postcard. Anyone who intercepts it, or anyone with access to the recipient's inbox, can open it instantly.
Method 1: Excel on Windows (Desktop)
This is the most robust option. Excel for Windows supports AES-256 encryption, which is virtually unbreakable with a strong password.
Steps:
- Open your Excel file
- Click File in the top menu
- Select Info
- Click Protect Workbook
- Choose Encrypt with Password
- Enter a strong password and click OK
- Re-enter the password to confirm
- Save the file
From this point on, anyone who opens the file will be prompted for the password. Without it, the contents are completely inaccessible.
Tips for a strong password:
| Weak | Strong |
|---|---|
| company2026 | Tr!8kQ#mP2x&vL |
| password123 | 9Fj$wKn!4Rb@eZ |
| budget | mY_Budg3t!F1le#2026 |
Use at least 12 characters with a mix of uppercase, lowercase, numbers, and symbols.
Method 2: Excel on Mac
The process on Mac is slightly different from Windows.
Steps:
- Open your Excel file
- Click Review in the top menu
- Click Protect Workbook (or go to File > Passwords)
- Enter a password under Password to open
- Optionally enter a separate Password to modify
- Click OK and confirm
- Save the file
Mac versions of Excel also support AES-256 encryption, so the protection level is identical to Windows.
Method 3: Google Sheets (Workaround)
Here is the unfortunate truth: Google Sheets does not support password protection. There is no way to set a password on a Google Sheets file.
What you can do instead:
- Restrict sharing: Click Share and limit access to specific email addresses
- Set view-only permissions: Prevent editing by choosing "Viewer" access
- Disable downloading: In sharing settings, uncheck "Viewers and commenters can download, print, and copy"
- Use link expiration: Share via Google Workspace features with time-limited access
These are access controls, not encryption. Google can still read the file, and anyone with access can take screenshots. If you need true password protection, download the file as .xlsx and encrypt it using Excel or LibreOffice.
Method 4: LibreOffice Calc
LibreOffice is a free, open-source alternative that also supports file encryption.
Steps:
- Open or create your spreadsheet in LibreOffice Calc
- Click File > Save As
- Check the box labeled Encrypt with GPG Key or Save with Password
- Enter a password and confirm
- Click Save
LibreOffice uses AES-256 encryption when saving in .xlsx format, making it fully compatible with Microsoft Excel. If you save in .ods format, it uses Blowfish encryption by default.
Excel Online: The Limitation You Need to Know
Excel Online (the browser version) cannot encrypt files. You can open and edit password-protected files if you know the password, but you cannot set or change a password through the web interface.
If you need to add encryption, you must:
- Download the file
- Open it in the desktop version of Excel or LibreOffice
- Apply the password
- Re-upload the file
This is an important consideration for teams that rely solely on Microsoft 365 in the browser.
Understanding the Three Types of Excel Protection
Excel offers different levels of protection. They are not the same thing.
| Protection Type | What It Does | Security Level |
|---|---|---|
| Open Password | Encrypts the entire file with AES-256 | Very High |
| Modify Password | Allows viewing but blocks editing without password | Low |
| Sheet Protection | Prevents changes to specific cells or sheets | Very Low |
Important: Sheet protection and modify passwords are not encryption. They can be bypassed with freely available tools in seconds. Only the open password provides real security through AES-256 encryption.
If you need to prevent unauthorized access to the data itself, always use the open password (Encrypt with Password).
The Forgotten Step: How to Share the Password Safely
You have encrypted your file. Now you need to send it to a colleague, client, or accountant. This is where most people make a critical mistake.
What NOT to do:
- Send the file and the password in the same email
- Put the password in the email subject line
- Text the password through iMessage or Messenger in the same thread where you shared the file
- Write the password in a shared document
If someone gains access to your email, they get both the file and the password. The encryption becomes meaningless.
A better approach:
Send the file and the password through different channels. For example, email the file and share the password through a separate, secure method.
LOCK.PUB lets you create a password-protected, self-expiring link that contains your Excel file password. You set it up in seconds:
- Go to lock.pub and create a secret memo
- Type the Excel password into the memo
- Set an expiration (e.g., 24 hours or after first view)
- Share the LOCK.PUB link with your recipient
The recipient opens the link, enters the access code, sees the password, and the memo expires automatically. No trace left in email, no screenshot-friendly chat bubble, no permanent record.
Quick Reference: Platform Comparison
| Feature | Excel Windows | Excel Mac | Google Sheets | LibreOffice | Excel Online |
|---|---|---|---|---|---|
| AES-256 Encryption | Yes | Yes | No | Yes (.xlsx) | No |
| Open Password | Yes | Yes | No | Yes | No |
| Modify Password | Yes | Yes | No | Yes | No |
| Sheet Protection | Yes | Yes | Yes | Yes | Yes |
| Free | No | No | Yes | Yes | Yes |
Final Thoughts
Password protecting an Excel file takes less than a minute. The encryption behind it, AES-256, is military grade. But encryption is only as strong as your password delivery method.
Encrypt the file. Use a strong password. And share that password through a secure, temporary channel like LOCK.PUB so it does not end up sitting in someone's inbox forever.
Your spreadsheet data deserves the same level of care you put into creating it.
Keywords
You might also like
Best Password Managers Compared — 2026 Guide
Compare the best password manager approaches: browser built-in, 1Password, Bitwarden, LastPass, and more. Pros, cons, pricing, and what to look for when choosing one.
How to Share Your Wi-Fi Password Safely
Learn the safest ways to share Wi-Fi passwords at home, in the office, and at public venues. Compare QR codes, guest networks, password-protected links, and more.
Secret Image Sharing Guide: How to Send Photos Safely with Password Protection
Learn how to securely share sensitive photos, screenshots, and document images with password protection using LOCK.PUB's secret image feature.
Create your password-protected link now
Create password-protected links, secret memos, and encrypted chats for free.
Get Started Free