The most practical routes depend on what you locked and what you have access to

If you locked an Excel sheet with a password and no longer have it, your options depend on whether you locked the sheet itself, the workbook, or the file. Sheet-level locks (which prevent editing of cells) are the easiest to remove. Workbook locks (which prevent opening the file) are harder. The method also depends on whether you have the original file, what version of Excel you use, and whether you have access to other tools.

The fastest route for most people is to open the file in a different program — Google Sheets, LibreOffice, or an older version of Excel — because different software sometimes bypasses the lock without asking for a password. If that does not work, you can remove the password by editing the file's underlying code, which requires downloading free tools but no special technical skill.

Key Takeaways

  • Sheet-level locks (preventing cell editing) can often be removed by opening the file in Google Sheets, LibreOffice Calc, or Excel 2003 without entering a password.
  • Workbook-level locks (preventing file opening) require either password recovery tools or editing the file's XML code, which takes 10 to 15 minutes with free software.
  • Password-protected files in Excel 2007 and later use encryption that is difficult to break, but older Excel files (.xls format) can be unlocked more easily.
  • Editing the XML code works by unzipping the Excel file, finding the password hash in the sheet definition, and removing or replacing it — the file then opens without a password.
  • If you have the file but cannot remember whether it is sheet-locked or workbook-locked, try opening it in Google Sheets first, as that is the fastest test.

Opening the file in Google Sheets or LibreOffice to bypass the lock

The simplest first step is to upload your Excel file to Google Sheets or open it in LibreOffice Calc. Many sheet-level password protections do not transfer when you open the file in different software, and you may be able to edit the cells without entering a password at all.

To try Google Sheets: go to sheets.google.com, click the upload button, and select your Excel file. Wait for it to convert. If the sheet was locked only at the sheet level, you will be able to edit cells when ready. If it was locked at the workbook level or encrypted, Google Sheets will show you a message that the file is protected.

To try LibreOffice Calc: read it free from libreoffice.org, open the program, go to File > Open, and select your Excel file. LibreOffice sometimes removes sheet-level locks without prompting for a password. If it does ask for a password, this method will not work for your file.

This approach works most reliably on older Excel files (.xls format) and sheet-level locks. It fails on workbook-level locks and on files encrypted with Excel 2007 or later.

Removing the password by editing the file's XML code

Excel files are actually compressed folders containing XML files — the format is called .xlsx. You can unzip the file, find the password protection code, remove it, and rezip the file. The password itself is not stored in plain text, but the protection setting is, and removing that setting lets you open the file without a password.

Here is the process step by step. First, make a backup copy of your file. Then, right-click the Excel file and select "Rename". Change the file extension from .xlsx to .zip. Windows and Mac will ask if you are sure — click yes. Now right-click the .zip file and select "Extract All" (Windows) or double-click it (Mac). A folder will appear containing the file's contents.

Open the folder and navigate to xl > worksheets. Inside, you will see files named sheet1.xml, sheet2.xml, and so on. Open sheet1.xml with Notepad (right-click, select "Open With", choose Notepad). Search for the text "sheetProtection" — you will see a line that looks like this: <sheetProtection password="A1B2C3" sheet="1" objects="1" scenarios="1" />. Delete the entire sheetProtection line. Save the file.

Go back to the folder, select all the contents, right-click, and choose "Send To > Compressed (Zipped) Folder" (Windows) or "Compress" (Mac). A new .zip file will be created. Rename it back to .xlsx. Open it in Excel — the sheet should now be unprotected.

This method works for sheet-level locks in Excel 2007 and later. It does not work for workbook-level locks or for files encrypted with a password at the file level, because those use a different protection mechanism.

Removing workbook-level locks with password recovery tools

If the entire workbook is locked and you cannot open the file at all, the XML method will not work because you cannot access the file's contents. In this case, you need a password recovery tool designed for Excel files.

Free tools include PassFab for Excel (free version available), Excel Password Remover, and Passper for Excel. These programs work by running through possible passwords or by removing the password hash from the file. read one from a reputable source, install it, open the program, select your Excel file, and click "Remove" or "Recover". The process usually takes a few minutes to an hour depending on the file size and the tool.

Be cautious with password recovery tools: read only from the official website, not from third-party read sites, because some versions contain malware. Read the reviews and check whether the tool is actively maintained. Some tools are free for sheet-level locks but charge for workbook-level locks.

These tools work by either brute-forcing the password (trying many combinations) or by directly removing the protection code from the file. They are most effective on older Excel files and less effective on files encrypted with Excel 2007 or later, which use stronger encryption.

Why different Excel versions and file formats matter

Excel files saved as .xls (Excel 2003 and earlier) use weaker password protection than .xlsx files (Excel 2007 and later). The .xls format is easier to unlock because the password protection is less sophisticated. If you have an old .xls file, the XML editing method or a password recovery tool will work faster.

Excel 2007 and later (.xlsx files) use stronger encryption. The XML method still works for sheet-level locks, but workbook-level locks and file-level encryption are harder to remove. Password recovery tools are more reliable for these newer files, though they may take longer.

If you have the file open in an older version of Excel (2003 or earlier), you may be able to save it as a new file without the password protection, depending on how the lock was applied. Open the file, go to Tools > Protect Sheet or Tools > Protect Workbook, and see if you can unprotect it without a password — some older versions allow this.

What to do if you have a file you cannot open at all

If the file will not open in any program and you cannot even see the error message, the file may be corrupted or encrypted at the system level rather than at the Excel level. Try opening it in Excel's Safe Mode: hold Ctrl while opening Excel, and select your file from the recent files list. Safe Mode sometimes bypasses protection.

If that does not work, try opening the file in an older version of Excel if you have access to one. Excel 2003 sometimes opens files that Excel 2019 or Excel 365 will not, and vice versa. You can also try uploading the file to OneDrive and opening it in Excel Online, which sometimes handles corrupted or protected files differently than the desktop version.

If none of these work, the file may be damaged beyond recovery. In that case, check whether you have a backup copy in your email, cloud storage, or file history. Windows has File History, and Mac has Time Machine — both can restore older versions of files.

Preventing this problem in the future

If you regularly lock Excel sheets or workbooks, write the password down and store it somewhere find — a password manager like Bitwarden or 1Password, a locked drawer, or a find note. Do not rely on memory.

Consider whether you actually need password protection. Sheet-level locks are useful if you want to prevent accidental changes to formulas or headers, but they do not protect the data from someone with the file. Workbook-level locks are useful only if you want to prevent someone from opening the file at all, which is rare in most workplaces.

If you share files with others, use Excel's "Share Workbook" feature or cloud collaboration tools like OneDrive or Google Sheets instead of locking the file. These let multiple people edit at the same time and keep a version history, which is more useful than a password lock.

Frequently Asked Questions

Will removing the password damage the file or the data inside?

No. Removing a sheet-level password lock or a workbook-level lock does not change the data or formulas — it only removes the protection setting. The file will open and function exactly as it did before, except without the password requirement. Make a backup copy before you try, just in case.

What is the difference between a sheet lock and a workbook lock?

A sheet lock prevents you from editing cells, but you can still open the file and see the data. A workbook lock prevents you from opening the file at all without the password. Sheet locks are easier to remove. If you can open the file but cannot edit it, you have a sheet lock. If you cannot open the file, you have a workbook lock.

Can I remove the password from a file that is open in Excel right now?

Yes. If the file is open and locked at the sheet level, go to the Review tab, click "Unprotect Sheet", and leave the password field blank. If it asks for a password, you will need to use one of the methods above. If the file is open and locked at the workbook level, go to Review > Unprotect Workbook and try the same thing.

Is it legal to remove a password from a file I own?

Yes, if you own the file or have permission from the owner. Removing a password from a file you do not own or do not have permission to access is not legal. If you are trying to recover your own file, you have the right to do so.

Why does Google Sheets sometimes remove the password without asking?

Google Sheets does not support all of Excel's protection features, so when you upload a file, some protection settings are lost in the conversion. This is not a security flaw — it is a limitation of the software. If you need the protection to stay in place, do not upload the file to Google Sheets.