You can remove a password from an Excel file in one of two ways, and which one applies depends on what kind of password is attached. If it's a "password to modify" or a "password to open" that you know, Excel's own File > Info > Protect Workbook menu strips it in under a minute. If it's an open password you've forgotten, your only reliable route is a VBA macro that iterates candidate strings against the workbook's encryption β€” and that will not touch AES-encrypted files created in Excel 2007 or later. Everything below assumes you either own the file or have explicit permission to open it; bypassing a password on someone else's document is a different problem with different legal weight.

Identify Which Password Is Blocking You Before You Touch Anything

Excel stacks three separate password types on a single workbook, and each is removed from a different menu. A password to open encrypts the entire file at the package level β€” you can't even see the grid without it. A password to modify is a write-protection prompt that lets you open read-only if you cancel. A password to unprotect the sheet sits inside the workbook and only blocks editing cells, not opening the file.

The quickest diagnostic is to double-click the file and watch what appears. A grey box asking for a password before any Excel window renders means the open password is set. A dialog offering "Read-Only" and "Password" side by side means the modify password is set. If the file opens fully but cells refuse to edit, you're looking at sheet protection, which isn't a file password at all β€” it's a review-level lock, and the route to clearing it differs again.

Microsoft's own documentation in the Excel support centre separates these three under "Protect a workbook" and "Protect a worksheet," and mixing them up is the single most common reason people report that a removal "didn't work." You can spend twenty minutes deleting a modify password when the actual blocker is a sheet protection on cell A1.

One boundary worth stating plainly: this article covers files you own or administer. Removing a password from a colleague's workbook, a vendor's deliverable, or an archived file you inherited without the key is a permissions question first and a technical one second. If the file belongs to an organisation, its IT or records team usually holds the recovery path, and asking them is faster than any of the methods below.

Remove a Known Password to Open in Four Clicks

The File > Info > Protect Workbook route is the only supported, no-risk method, and it works identically in Excel 2016, 2019, 2021, and Microsoft 365. You need the file open and the password typed once. There's no confirmation dialog after you click the final button β€” the encryption is simply dropped and the file saved in cleartext on disk.

1: Open the workbook in Excel and enter the password when prompted. 2: Click File in the ribbon, then Info in the left pane. 3: Click the Protect Workbook button and choose Encrypt with Password. 4: Clear the password field completely β€” an empty box, not a blank space β€” and click OK. 5: Save the file with Ctrl+S. Excel no longer asks for a password on reopen.

Step four is where people fail. Leaving a single trailing space in the field produces a file that still prompts for a password, and the prompt accepts a space character, so it looks encrypted. If the file still demands a password after saving, reopen the Encrypt with Password dialog and check the field is genuinely empty β€” the cursor should sit at the start with nothing visible to its right.

If the Protect Workbook button is greyed out, the workbook is likely marked as final or opened in Protected View. Close it, right-click the file in File Explorer, choose Properties, and tick Unblock at the bottom of the General tab if it's there, then reopen. Files downloaded from email or the web carry a zone identifier that keeps Excel in read-only Protected View until you clear it, and that state disables most protection commands.

Strip a Password to Modify Without Re-Saving the File

A modify password doesn't encrypt anything, which is why you can open the file read-only and see every cell. That design has a consequence most guides skip: because the content isn't encrypted, you can save a fresh copy under a new name and the write-protection prompt disappears entirely. The modify password lives in a workbook-level flag, not in the file's encryption envelope.

The clean method is to open the file, click Read-Only when prompted, then use File > Save As and save to a new filename. The new copy has no modify password because the flag is written at save time only when you set it. Your original stays protected; the derivative is clean. This is faster and safer than editing the underlying XML.

If you want to keep the original filename, open it read-only, then go to File > Info > Protect Workbook > Encrypt with Password, set and immediately clear a password, and save. That rewrites the workbook header and drops the modify flag as a side effect. The file must not be read-only on disk β€” check the file's Properties in File Explorer and clear the Read-only attribute if it's ticked.

Excel 2013 and earlier handled this differently: the modify password was stored in a separate stream that some third-party tools could strip, and the Save As trick sometimes carried the flag forward. On any build from Excel 2016 onward the Save As route is reliable. If you're on an older perpetual licence, test on a copy before trusting the result.

Use a VBA Macro When You've Forgotten the Password to Open

When the open password is lost and the file was saved in the legacy binary format (.xls) or with the older RC4 encryption that Excel 2003 and earlier applied, a short VBA routine can brute-force a short password in minutes. The macro cycles through candidate strings, tries each one against the workbook's open event, and logs the first that succeeds. It cannot break AES-256, which is what Excel 2007 and later use by default β€” so on a modern .xlsx the same loop will run for days without a hit.

A workable version loops over a dictionary of common passwords and numeric sequences, attempting Workbooks.Open inside an error handler and closing the workbook immediately on failure. It's slow: each attempt costs roughly 0.05–0.15 seconds depending on file size and drive speed, which means a 6-character numeric password (one million combinations) is a multi-day job on a single thread, while a 4-character one finishes inside half an hour. Budget accordingly before you start.

Two failure modes kill this approach quietly. First, if the file is AES-encrypted, Workbooks.Open throws the same error for every candidate and the loop never terminates with a hit β€” you'll burn a weekend. Second, Excel's own macro security may block the routine if macros are disabled, and the error surfaces as a generic "method failed" rather than a permissions message. Check File > Options > Trust Center > Macro Settings and enable macros for the session before running it.

Decode the XML to Clear Open and Modify Passwords on .xlsx Files

An .xlsx file is a zipped package of XML, and the encryption metadata for a modify password and some workbook-level protections sits in xl/workbook.xml as a element with a hash attribute. Deleting that element and re-zipping clears the modify prompt without touching your data. This is the route the Save As method effectively takes, but done manually it also works when Save As is blocked.

Copy the file, rename the copy's extension from .xlsx to .zip, and extract it with Windows' built-in Extract All or 7-Zip. Open xl/workbook.xml in Notepad, search for fileSharing, and delete the entire self-closing tag β€” it looks like . Save the file, select all extracted contents, and re-zip them so [Content_Types].xml sits at the archive root, not inside a subfolder. Rename back to .xlsx.

This cannot remove an open password. An AES-encrypted .xlsx isn't a readable zip at all β€” the whole package is wrapped in an EncryptedPackage stream inside an OLE container, and renaming it to .zip produces an archive that won't extract. That distinction matters because plenty of tutorials blur it. If renaming to .zip fails to open, the file has an open password and you're back to the recovery problem.

Re-zipping wrong is the usual failure. If Excel throws "the file is corrupt" after your edit, the archive was built with a wrapping folder. Extract so you see [Content_Types].xml, xl, docProps, and _rels as siblings at the top level, then zip those items β€” not their parent folder.

Compare the Four Removal Methods on Time, Risk, and Coverage

Method Password type cleared Typical time Data risk Works on AES .xlsx
File > Info > Protect Workbook Open, modify Under 1 minute None Yes, if password known
Save As to new filename Modify only 1–2 minutes None Yes
VBA dictionary/brute force Open only 30 min to days Low, if done on a copy No
Edit workbook.xml in the zip Modify only 3–5 minutes Medium (corruption risk) Yes

The table makes the trade-off obvious: the two supported routes cover everything you can open, and the two technical routes exist only to rescue a file you can't. Nobody should reach for XML surgery on a file that opens normally.

For a forgotten open password on a legacy .xls file, weigh the brute-force route against a commercial recovery tool before committing. Vendors like PassFab and iSumsoft publish throughput claims in the hundreds of thousands of passwords per second for GPU-accelerated recovery, which is dramatically faster than a single-threaded VBA loop, but those are vendor figures you should treat as best-case. A vendor's free trial usually reveals only the first characters of the recovered password, which is enough to confirm the tool works before paying.

If the file is genuinely business-critical and the password is long, the honest answer is that recovery may not be economic. AES-256 with a 12-character mixed password is not brute-forceable on consumer hardware in any realistic timeframe. In that case, check whether a password manager, an old email, or a colleague holds the key β€” that's a five-minute search that beats a month of computation.

Recover a Forgotten Open Password Through Excel's Own Back Doors

Before any brute force, exhaust the routes that don't require cracking. If the workbook is stored on OneDrive or SharePoint and was uploaded while unlocked, version history may hold an earlier copy without the password. Open the file's version history from the web interface and check revisions from before the password was added β€” those are downloadable and usually unencrypted.

AutoRecover and temporary files are the second lead. Excel writes recovery copies to %AppData%\Microsoft\Excel\ while a workbook is open, and those .xar files are not encrypted even when the source workbook was. If the file was open on this machine at any point, look for a matching recovery file and open it from inside Excel via File > Open > Recover Unsaved Workbooks. It won't always be there, but when it is, it's a clean recovery with no third-party tools.

Ask the sender. This sounds trivial and isn't. Passwords to open are frequently set by the person who emailed the file, and a polite request with the filename and date gets the password more often than people expect. Organisations that archive documents usually keep the password in the same record system as the file, so an IT ticket resolves it without touching the encryption.

If none of those work and the file is .xls, a dictionary attack with a proper wordlist is the pragmatic next step. Real-world open passwords on office documents skew toward short, human-memorable strings β€” a first name plus a year, a company name, a simple sequence. A wordlist of a few hundred thousand common passwords run through a GPU tool clears that profile in hours. A random 16-character string does not, and no amount of tooling changes that.

Set and Clear Passwords Correctly in Excel for the Web and Mac

Excel for the web can remove a password from a file you've already opened, but the menu path differs and one option is missing. On the web, open the workbook, go to File > Info, and use Protect Workbook > Encrypt with Password. Clearing the field and saving drops the encryption. Excel for the web cannot set or remove a password to modify β€” that option only exists in the desktop app, so a modify-protected file opened on the web shows the read-only banner with no way to clear it.

On Mac, Excel 365 mirrors the Windows path: File > Info (or Review > Protect Workbook depending on version), then Encrypt with Password, clear the field, save. Excel for Mac 2011 and earlier stored modify passwords in a format that the Save As trick didn't always clear, so test on a duplicate. The Mac version also prompts for the password twice on removal in some builds, which trips people who clear the field once and assume it worked.

A version-specific wrinkle worth knowing: in Excel 2019 and 2021 perpetual licences, the Protect Workbook dropdown lists three items β€” "Mark as Final," "Encrypt with Password," and "Protect Current Sheet." Only the middle one is a file password. "Mark as Final" makes the file read-only but is trivially reversible from the same menu, and "Protect Current Sheet" is a worksheet lock that has nothing to do with opening the file.

If you're clearing a password to hand the file to someone else, save a copy first. Removing encryption is irreversible once saved, and if the recipient needed the protection, you've just lost it. Keep the encrypted original in a secure location and send the decrypted derivative through a channel appropriate to the content β€” email attachment for a shopping list, encrypted transfer for anything with personal or financial data.

Troubleshoot the File That Still Asks for a Password

The most common complaint after following a removal guide is that the file "still" prompts. Almost always, the wrong password type was removed. A file can carry an open password and a sheet protection simultaneously, and clearing the first leaves the second, which appears as editing restrictions rather than an open prompt β€” but users often describe both as "still passworded."

Second cause: the save didn't take. If the workbook is open in Protected View or read-only mode, pressing Ctrl+S does nothing and Excel may not warn you. Check the title bar β€” "Read-Only" or "[Protected View]" appears there. Clear the file's read-only attribute in File Explorer, close and reopen, and repeat the removal.

Third cause: a copy exists elsewhere. Users sometimes remove the password from one copy and reopen a different one from Downloads or a sync folder. Confirm the file path in the title bar matches the file you edited. OneDrive and SharePoint sync can also revert a local change if the cloud copy is newer, so wait for the sync icon to show a green check before testing.

If the file genuinely won't shed its open password and you have the correct password but the Encrypt dialog rejects it, check for a keyboard layout mismatch or a non-breaking space pasted in with the password. Type it manually rather than pasting. If the dialog accepts the password on open but the removal won't save, the file may be on a read-only network share β€” copy it locally first.

FAQ

Does removing an Excel password change the file's contents?

No β€” clearing a password alters only the encryption envelope, and cell values, formulas, formatting, and defined names survive intact. The one exception is a workbook saved with "read-only recommended" alongside the password, which can reset that flag. Always keep a backup of the encrypted original before stripping it, because the change is not reversible.

Can I remove an open password without knowing it?

Only on files using legacy RC4 encryption, typically .xls files from Excel 2003 and earlier, where a brute-force or dictionary attack is feasible for short passwords. AES-256, the default since Excel 2007, is not realistically breakable on consumer hardware. For a modern .xlsx with a forgotten password, recovery depends on finding a copy, a backup, or the person who set it.

Why does my file still ask for a password after I removed it?

The usual cause is that a modify password was cleared while an open password remained, or vice versa β€” they're separate flags. The second cause is that the save silently failed because the file was open in Protected View or marked read-only. Check the title bar for "Read-Only," clear the file attribute in Properties, and remove the password again.

It depends on jurisdiction and on your relationship to the file. Removing protection from a document you own or administer is generally fine. Doing so on someone else's file can breach computer-misuse laws, employment contracts, or data-protection rules even if the technical method is trivial. Get written permission or route the request through the file's owner.

How long does a VBA brute-force take on a 6-character password?

On a single-threaded VBA loop at roughly 0.1 seconds per attempt, a 6-character numeric password (one million combinations) averages about 28 hours and can take up to 56 in the worst case. Adding letters or symbols multiplies that by 26 or more per character. For anything beyond a short numeric PIN, GPU-accelerated commercial tools are the only practical option.

Does the Save As trick work for an open password?

No. Save As strips a password to modify because that flag is rewritten at save time, but it cannot save a file you can't open. If Excel prompts for a password before showing any content, Save As is unavailable until the open password is supplied. The two password types behave completely differently under every method in this article.

Can I remove a password from a file on Excel for the web?

You can clear an open password on the web via File > Info > Protect Workbook > Encrypt with Password, provided you can open the file. You cannot remove a password to modify on the web β€” that option exists only in the desktop app. Download the file, clear it in desktop Excel, and re-upload if you're working in a browser-only environment.

What happens to the password if I convert .xls to .xlsx?

The open password carries over through the conversion and is re-applied with AES encryption in the new format, so a legacy file that was crackable becomes effectively uncrackable after conversion. If you have the password, remove it before converting. If you don't, convert only after recovery β€” the conversion locks in the stronger encryption permanently.