Excel Tools

Password protect an Excel file

Add a password to open to any .xlsx, .xlsm or .xlsb workbook with the same AES-256 encryption Excel uses, or remove a password you already know. The password never leaves your device.

What do you want to do?

No file at hand?

Your password and your file stay on this device. Encryption runs in your browser with the Web Crypto API; nothing is sent to any server.

How to password protect an Excel file

  1. Choose the workbook (.xlsx, .xlsm or .xlsb). The file is checked first; if it is already encrypted you are offered the other mode.
  2. Type a password twice. The strength hint helps you avoid weak passwords. Long phrases are easier to remember and harder to guess than short codes.
  3. Confirm you have saved it and click Encrypt and download.
  4. The result is checked before download: the encrypted file is opened again with your password and compared with the original, byte for byte.
  5. Open it in Excel. Excel asks for the password before showing anything.

Your password never leaves your device

Encryption runs in your browser, in a background worker, with the browser’s built-in Web Crypto API. Neither the file nor the password is sent anywhere, stored, or logged. The page only downloads its own code from this site. You can disconnect from the internet after the page loads and it keeps working.

That is the whole point: a tool that adds a password on a remote server would see both your file and your password.

A lost password cannot be recovered

This is real encryption, not a lock that can be bypassed. The workbook is encrypted with a random 256-bit key, and that key is protected by your password. There is no master key, no backdoor and no reset link. If the password is lost, the file is lost too: this site cannot help, Microsoft cannot help, and “password recovery” services can only try guesses, which fails against a good password. Keep the password in a password manager, and keep an unencrypted copy somewhere safe if the data matters.

What encryption is used

The tool writes the same format Excel itself uses for File › Info › Protect Workbook › Encrypt with Password: ECMA-376 Agile Encryption.

Cipher
AES-256 in CBC mode, with a random key for each file
Password hashing
SHA-512, repeated 100,000 times with a random salt, to slow down guessing
Integrity
HMAC-SHA512 over the encrypted data, so tampering is detected
What is encrypted
The whole workbook: sheets, values, formulas, sheet names, comments and document properties such as author and title. Only the file name and its size are visible.

We checked the output independently: Microsoft Excel opens the files with the password, and the open-source msoffcrypto-tool library decrypts them and confirms the integrity check.

Remove a password you know

Switch to Remove a password I know, choose the encrypted file and type its password. You get a normal copy without a password to open, useful before converting the file, importing it into another program or archiving it. Both the Agile encryption of Excel 2010 and later and the older Standard encryption of Excel 2007 are supported.

The tool only decrypts with the password you type. It never tries to guess, brute-force or crack a password.

Password to open, password to modify and sheet protection

How to do it in Excel

On Windows, go to File › Info › Protect Workbook › Encrypt with Password. On a Mac, go to File › Passwords and fill in “Password to open”. To remove it, open the file with the password and clear the same field. This page does the same without Excel, on any device, and checks the result for you.

Known limitations

Frequently asked questions

Is the Excel password tool really free?

Yes. It is 100% free, with no usage limits, no account and no sign-up. There is no paid plan and no feature is locked.

Are my file and password uploaded to a server?

No. The file is encrypted inside your browser with the built-in Web Crypto API, and the password never leaves your device: it is not sent, stored or logged. The page only downloads its own code from this site. If you accept analytics cookies, Google Analytics receives anonymous usage data such as page views, never the contents or names of your files, and never your password.

Can a forgotten password be recovered?

No. The file is encrypted with AES-256 and there is no master key or backdoor. If the password is lost, nobody can open the file, including this site and Microsoft. Keep the password in a password manager and an unencrypted copy somewhere safe.

Will Excel open the protected file?

Yes. The tool writes the standard ECMA-376 Agile Encryption that Excel uses for “Encrypt with Password”. We tested the files in Microsoft Excel and with the independent msoffcrypto-tool library. Excel asks for the password when the file is opened.

How strong is the encryption?

AES-256 in CBC mode with a random key per file. The password is hashed with SHA-512 100,000 times with a random salt, and an HMAC-SHA512 detects tampering. The real weak point is the password, so use a long one.

Can I remove a password from an Excel file?

Yes, if you know it. Choose “Remove a password I know”, select the file and type its password to get a copy without one. The tool never tries to guess or crack passwords.

Does it work with .xls files?

No. Old .xls files only support the weak RC4 encryption of Excel 97–2003. Convert the file to .xlsx first with our XLS to XLSX converter, then add the password.

Is this the same as protecting a sheet?

No. Sheet protection only stops edits and does not encrypt anything. A password to open encrypts the whole workbook, so its contents cannot be read without the password.

Analytics: only if you accept cookies, the page loads Google Analytics (through Google Tag Manager) to count visits and see which tools are used. It never receives the contents or names of your files. You can change your choice at any time with “Cookie settings” at the bottom of the page.