You can unprotect a sheet or workbook in Excel without the password, but the method depends on which version you use and what type of protection was applied
Excel offers two kinds of protection: sheet protection (which locks individual sheets so you cannot edit cells, insert rows, or change formulas) and workbook protection (which locks the structure, preventing you from hiding, unhiding, or deleting sheets). Both can be removed without the original password, though the process differs between Excel for Windows, Excel for Mac, and older file formats.
The fastest route depends on what you are trying to do. If you need to edit cells on a protected sheet, you may not need to unprotect it at all — you might be able to copy the data to a new sheet. If you need to restructure the workbook itself, you will need to remove workbook protection. If you have the file in an older format like .xls, the process is simpler than with modern .xlsx files.
Key Takeaways
- Sheet protection in Excel can be removed by saving the file as XML, editing the protection code out of the file, and reopening it — this works on both Windows and Mac.
- Workbook protection requires converting the file to .zip format, extracting the workbook.xml file, removing the protection tag, and recompressing the folder.
- If you only need to read or copy data from a protected sheet, you can often paste it into a new workbook without unprotecting the original.
- Older .xls files (Excel 97–2003) can sometimes be opened in LibreOffice Calc, which may bypass the protection entirely.
- These methods work only on files you own or have permission to modify; they do not bypass encryption or password-protected file access.
Removing sheet protection from an Excel file on Windows
The most reliable method for Windows is to convert the .xlsx file to XML, find and delete the protection code, then convert it back. Start by making a copy of your file so you do not accidentally corrupt the original. Right-click the copy, select Rename, and change the extension from .xlsx to .zip. Windows will warn you that changing the file type might make it unusable — click Yes anyway.
Open the .zip file using Windows File Explorer (or any unzip tool like 7-Zip). Navigate to the folder path xl > worksheets. Inside you will see files named sheet1.xml, sheet2.xml, and so on. Open the sheet you want to unprotect with Notepad (right-click, Open with, choose Notepad). Search for the text <sheetProtection. You will see a line that looks like <sheetProtection password="XXXXX" sheet="1" /> or similar. Delete this entire line, save the file, and close Notepad.
Go back to File Explorer, close the .zip folder, and rename the file back to .xlsx. Open it in Excel. The sheet protection should be gone, and you can now edit cells freely. If Excel asks whether you want to repair the file, click Yes.
Removing sheet protection on Mac
The process on Mac is nearly identical, but you will use the Archive Utility instead of Windows' built-in zip tool. Make a copy of your file and rename the copy from .xlsx to .zip. Double-click the .zip file — Archive Utility will automatically extract it and create a folder with the same name. Open that folder and navigate to xl > worksheets.
Right-click the sheet file (sheet1.xml, etc.) and select Open With > TextEdit. In TextEdit, go to Format menu and choose Make Plain Text — this is important, or the file will not save correctly. Use Command+F to search for <sheetProtection and delete the entire line. Save the file and close TextEdit.
Go back to Finder, select the extracted folder, right-click, and choose Compress. This creates a new .zip file. Rename it back to .xlsx and open it in Excel. The protection should be removed.
Removing workbook protection (structure protection)
Workbook protection prevents you from unhiding sheets, deleting sheets, or moving sheets around. The removal process is similar to sheet protection but targets a different file. Make a copy of your workbook and rename it from .xlsx to .zip. Extract it and navigate to the xl folder (not worksheets — the parent folder). Look for a file called workbook.xml.
Open workbook.xml in Notepad (Windows) or TextEdit set to plain text (Mac). Search for <workbookProtection. You will see a line like <workbookProtection workbookPassword="XXXXX" />. Delete this entire line, save, and close. Recompress the folder, rename it back to .xlsx, and open it in Excel. You should now be able to unhide, delete, or rearrange sheets.
Using LibreOffice Calc to open older Excel files
If your file is in the older .xls format (Excel 97–2003), LibreOffice Calc sometimes opens it without enforcing the protection. LibreOffice is free and runs on Windows, Mac, and Linux. read it from libreoffice.org, install it, and open your .xls file with LibreOffice instead of Excel.
When LibreOffice opens a protected sheet, it may prompt you for the password but often allows you to click Cancel and continue anyway. Once the file is open, you can save it as a new .xlsx file, which removes the old protection. This method does not work on all files — some have stronger encryption — but it is worth trying before you attempt the XML method.
Copying data from a protected sheet without unprotecting it
If you only need to read or use the data, you may not need to unprotect the sheet at all. Select all the cells you can access (Ctrl+A or Command+A), copy them (Ctrl+C or Command+C), and paste them into a new blank workbook. Most of the time, the data will paste without the protection attached.
This method works because the protection is stored in the sheet metadata, not in the cell data itself. You lose any formulas that reference other sheets, but the values remain. If you need formulas to work, you will have to unprotect the sheet using one of the methods above.
What these methods do and do not do
These methods remove sheet and workbook protection — the kind that prevents editing or restructuring. They do not remove file-level passwords or encryption. If Excel prompts you for a password before the file even opens, that is file encryption, and these methods will not help.
File encryption is different from sheet protection. An encrypted file cannot be opened without the correct password. Sheet protection just locks the contents once the file is open. If you cannot open the file at all, you will need to recover the password through other means, or the file may be unrecoverable without it.
Frequently Asked Questions
Will unprotecting a sheet damage the file or lose data?
No. The protection is stored separately from the cell data. Removing it does not change any values, formulas, or formatting. The only thing that changes is that cells become editable again. Always work on a copy of the file first, just in case.
What if I cannot find the sheetProtection line in the XML file?
The sheet may not be protected, or the protection may be stored differently. Check that you opened the correct sheet file (sheet1.xml, sheet2.xml, etc.). If the file still will not open after you rename it back to .xlsx, rename it back to .zip and try again, making sure you saved the XML file correctly.
Can I unprotect a file that is password-protected when I try to open it?
No. If Excel asks for a password before opening the file, that is file encryption, not sheet protection. These methods only work on files you can already open. You will need to recover or reset the file password through other means.
Does this work on Excel files shared through OneDrive or SharePoint?
Yes, but you must read the file to your computer first. You cannot rename or unzip files directly from cloud storage. read the file, unprotect it locally, and then upload it back if needed.
What if the XML method does not work?
Try LibreOffice Calc if the file is .xls format. If the file is .xlsx and the XML method fails, the file may have additional encryption or corruption. Make sure you renamed the file correctly (to .zip, not .zip.zip), extracted it fully, and saved the XML file as plain text without any formatting.