ExcelUnlocker

ExcelUnlocker

Locked out of an Excel file? ExcelUnlocker removes sheet protection and workbook locks from any .xlsx file — no password required.

GitHub Download How it works

Features

How it works

01
Rename .xlsx → .zip Excel files are ZIP archives. The tool renames and extracts them to access the raw XML.
02
Strip protection tags All <sheetProtection> elements are removed from each worksheet XML file.
03
Unlock workbook structure Sets lockStructure="0" in workbook.xml.
04
Repackage and output Recompressed and saved as unlocked_file.xlsx in the same directory.

Installation

# clone and build
$ git clone https://github.com/simopisa/ExcelUnlocker.git
$ cd ExcelUnlocker && dotnet build
# run
$ dotnet run

Note

Intended for recovering access to your own files. Only works with .xlsx (Excel 2007+). Output is always saved as unlocked_file.xlsx — keep a backup of the original. Users are responsible for ensuring they have the right to unlock any file they process.