How to Encrypt an Excel File: Password Protection and Beyond

Encrypting an Excel file means wrapping its contents in a layer of protection so that only someone with the correct password — or the right decryption key — can open or modify it. Whether you're protecting financial data, personal records, or confidential business information, knowing how Excel encryption actually works helps you apply it correctly rather than just hoping it does the job.

What Excel Encryption Actually Does

When you encrypt an Excel file, the software uses an algorithm to scramble the file's data. Without the correct password, the file is unreadable — even if someone gains access to the raw file on disk or in cloud storage.

Modern versions of Excel (2013 and later) use AES-256 encryption, which is the same standard used in banking and government systems. This is meaningfully strong protection. Older Excel formats — particularly the legacy .xls format — used weaker encryption methods that can be cracked with readily available tools. This distinction matters if you're working with older files or sharing across systems that might default to legacy formats.

The two most common protection types in Excel are:

  • File-open password (encryption): The entire file is encrypted. Without the password, no one can open or read it.
  • Sheet/workbook structure protection: Prevents editing of specific sheets or the workbook's structure, but does not encrypt the file. The data is still readable by anyone who opens it.

These are not the same thing. File-open encryption is the one that actually keeps data private.

How to Encrypt an Excel File (Step by Step)

In Microsoft Excel (Windows and Mac)

  1. Open the file you want to protect.
  2. Go to File → Info.
  3. Click Protect Workbook, then select Encrypt with Password.
  4. Enter a strong password and confirm it.
  5. Save the file.

From this point, anyone who tries to open the file will be prompted for the password. Without it, the file contents are inaccessible.

On Mac, the path is slightly different: File → Passwords, where you can set a password to open and optionally a separate password to modify.

In Google Sheets

Google Sheets does not offer native file-level encryption in the same way Excel does. If you need to share an encrypted .xlsx file, you'll need to download it and encrypt it through Excel or a third-party tool. Google's own security protects data in transit and at rest on their servers, but that's infrastructure-level protection — not the same as a password that travels with the file itself.

Using Third-Party Tools

If you don't have Microsoft Office, tools like LibreOffice Calc support AES-256 encryption when saving files in the .ods format, and offer password protection for .xlsx files as well. Standalone file encryption tools — such as 7-Zip (with AES-256 on archives) — can also add a password layer around any file type, including Excel files.

Factors That Affect How Well Your Encryption Holds Up 🔒

Knowing how to apply encryption is only part of the picture. Several variables determine whether your protection is actually effective:

FactorWhy It Matters
Excel versionOlder versions use weaker encryption algorithms
File format.xlsx supports AES-256; legacy .xls does not
Password strengthShort or common passwords are vulnerable to brute-force attacks
Password storageStoring the password in a nearby text file defeats the purpose
Sharing methodSending an encrypted file over unencrypted email still exposes metadata
Platform usedGoogle Sheets and web-based tools handle encryption differently

A strong password should be at least 12–16 characters, mixing uppercase, lowercase, numbers, and symbols. Excel's encryption is only as strong as the password protecting it — the AES-256 algorithm won't help if the password is "1234."

What Encryption Doesn't Protect Against

It's worth being clear about the limits. Encrypting an Excel file:

  • Does not protect the file once it's open. If someone has the password and opens the file on a shared screen, the data is visible.
  • Does not prevent screenshots or copying after the file is decrypted.
  • Does not hide file metadata like filename, size, or the fact that an encrypted file exists.
  • Does not recover your data if you lose the password. Microsoft has no backdoor — a forgotten password on an AES-256 encrypted file is essentially permanent data loss.

For environments handling highly sensitive data — healthcare records, legal documents, financial filings — file-level Excel encryption is often one layer within a broader security strategy, not the whole solution.

Different Users, Different Needs 🗂️

A freelancer sharing a budget spreadsheet with a single client has very different requirements than a finance team distributing salary data across an organization. The same AES-256 encryption applies in both cases, but the surrounding decisions — which format to use, how to transmit the file, whether to use additional tools like enterprise DRM or document management systems — vary considerably based on who's involved, what data is at stake, and what the recipient's technical setup looks like.

Someone using Excel on a personal Windows machine can encrypt and send a file in a few clicks. Someone working in a shared cloud environment or across platforms may find that Excel's built-in encryption creates compatibility or workflow friction that pushes them toward different tools entirely.

Where your situation falls on that spectrum is something only your specific setup and requirements can answer.