How to Recover an Encrypted Excel XLSX Password
Q: I need to recover the password to an .xlsx file. What's the "best way" or "best tool" to get it done?
A: .xlsx files belong to Microsoft Excel 2007–2024 and are locked down with AES encryption. You can only recover the password via brute force, and there are no guarantees—the stronger the forgotten password, the longer the search takes.
The good news: there are two ways to cut recovery time dramatically:
- GPU acceleration on NVIDIA, AMD, or Intel Arc graphics cards
- Narrowing the search space using positional masks and dictionaries
When picking recovery software, these two features make all the difference.
Everything here applies equally to Microsoft PowerPoint (.pptx) and Word (.docx) files—encryption standards and password recovery methods are identical across all Microsoft Office formats.
Give Accent OFFICE Password Recovery by Passcovery a spin. It supports GPU acceleration and granular attack tuning across all versions of Microsoft Office.
An XLSX Open Password Can Only Be Cracked by Brute Force — No Backdoors
Office 2007–2024 files (.xlsx, .docx, .pptx) use 128-bit or 256-bit AES encryption—the federal standard adopted by the National Institute of Standards and Technology (NIST). Your password isn't actually stored inside the file; instead, the PBKDF2 function derives the encryption key by running the password through tens of thousands of hashing iterations. Without the right password, the file contents are just random bytes. There are no workarounds or "backdoors" to bypass this encryption.
Two Types of Excel Protection: What's Instant vs. What Needs Brute Force
Sheet protection, workbook structure protection, write-reservation, and VBA passwords can be stripped instantly for free, whereas an AES-encrypted "Password to Open" requires brute force. The type of lock determines your method, timeline, and odds of success:
| Protection Type | Difficulty | How to Handle It |
|---|---|---|
| Sheet/Workbook protection, Write reservation, VBA password | Removed instantly in any Excel version | Free scripts or AccentOPR |
| Password to Open (AES encryption) | Requires brute force | AccentOPR with GPU acceleration |
Excel sheet protection (and similar basic locks) works like packing tape on a cardboard box: anyone can peel it off in a second and get straight to the contents.
Encryption with a Password to Open is a whole different beast. Think of it as a welded seam on a steel safe: you're not getting in without an angle grinder (brute force), and the thickness of the weld (password length and complexity) dictates how long you'll be cutting.
Free scripts handle the "packing tape" easily—you can remove sheet protection in under a minute. For the "welded seam," you need AccentOPR with GPU acceleration.
Legacy .xls Passwords (Excel 97–2003) Break Without Brute Force — Short RC4 Key
Classic .xls files (Excel 97–2003) can be decrypted without brute-forcing the password: they rely on a short 40-bit RC4 key, allowing a direct key-recovery attack. It's fast and 100% guaranteed—you can even decrypt them online. This is the one exception to the rule above: it applies strictly to legacy .xls files, while modern .xlsx files (Excel 2007–2024, AES-128/256) still require brute force.
Two Ways to Speed Up XLSX Password Recovery: GPU Acceleration and Search Narrowing
GPU Acceleration: Brute Force Tens of Times Faster Than CPU
GPU acceleration on NVIDIA, AMD, and Intel Arc cards boosts password search speeds by an order of magnitude compared to a CPU (see GPU speed benchmarks). For .xlsx, .docx, and .pptx files, that's often the difference between waiting days on a processor versus hours on a graphics card.
GPUs crush CPUs here because password recovery maps cleanly onto a massively parallel architecture: thousands of cores test thousands of candidates simultaneously. Technologies like CUDA and OpenCL unlock serious raw throughput.
Masks and Dictionaries Test Only Likely Password Candidates
Masks and wordlists keep you from testing random garbage, focusing strictly on patterns that match your password. If you remember even a tiny detail about what you typed, you can chop billions of dead-end combinations right off the top:
- Positional masks define custom character sets for each individual character slot in the password
- Dictionary merging and mutation rules catch passwords built from tweaked or mangled words
Pro Tip: Narrow the Search Range Before You Hit Start
Denis Gladysh, CEO of Passcovery:
Trim down the search space before launching the attack. Think back to the approximate password length, what character types you used, or whether it included specific words or dates. Every single clue cuts search time by orders of magnitude—sometimes turning years into hours.
Basic Excel Protection Can Be Stripped for Free: VBA, ZIP/XML Trick, and Online Tools for .xls
Beyond brute force, there are free workarounds for lightweight protection: VBA scripts, the ZIP method for editing XML tags inside .xlsx archives (built on the open Office Open XML / ECMA-376 standard), and web tools for decrypting legacy .xls files. Each method has its own limits and works only on specific versions of Excel, Word, and PowerPoint.
For a complete breakdown of every option—from free scripts to GPU-accelerated recovery suites—check out our guide: "How to Remove a Forgotten Excel Password".
When an XLSX Password Can't Be Recovered
Recovering an .xlsx password hits a wall in three scenarios—and all three are false hopes rather than real methods:
- Banking on a guarantee. For .xlsx files (Excel 2007–2024, AES-128/256), guaranteed recovery doesn't exist—that's the whole point of strong encryption like AES. Legacy .xls (Excel 97–2003) files are the exception, since they use an outdated format with a short encryption key.
- Hunting for a backdoor. The password isn't saved in the .xlsx file; PBKDF2 derives the key on the fly. You can't bypass AES encryption—you can only guess the password.
- Relying on free online tools. Free web services are powerless against .xlsx: they test a few hundred passwords per second versus tens of thousands on your own GPU. For .xlsx, local brute force on your own hardware is the only real play.
Even local brute force runs into a time wall: a long .xlsx password mixing upper- and lowercase letters, digits, and symbols will take centuries even on a flagship GPU. Looks like a dead end.
Not quite—it doesn't have to be a dead end. Brute force will find any password; the only variable is how many combinations you test (and how long it takes), which you can shrink by orders of magnitude. Map out the password structure with a positional mask. Load a dictionary with mutation rules if the password was based on a word. Fire up GPU acceleration. Together, masks, dictionaries, and a dedicated graphics card compress "centuries" down to "days," turning a seemingly hopeless password into a matter of time rather than a lost cause.
Frequently Asked Questions About Excel Password Recovery
Is it legal to recover an Excel password?
Yes, provided it's your own data or you have legal authorization to access it. Accent OFFICE Password Recovery is built for unlocking your own files and corporate archives.
Common legitimate scenarios where you need to strip file protection:
- You forgot the password to your own personal or work spreadsheet;
- An employee left without handing over credentials—or intentionally locked corporate files;
- Your company is conducting an internal audit or compliance investigation;
- You need to pull data from legacy archives and old backups.
Accessing someone else's files without permission is illegal. Only use this software on Excel documents you legally own or are authorized to manage under company policy.
How long does GPU-accelerated Excel password recovery take?
Anywhere from a few minutes to practically forever. The timeline comes down to three variables: password length, character set, and file format version. Length and character set define the search space, while the file version dictates recovery speed via the number of key-stretching iterations (the spinCount parameter).
Here is the raw brute-force estimate (no masks) for Excel 2013–2024 (AES-256, SHA-512, spinCount = 100,000):
| Password Length | Character Set | RTX 4060 | RTX 5090 |
|---|---|---|---|
| 6 characters | lowercase (a–z) | ~6 hours | ~1 hour |
| 6 characters | lowercase + digits | ~1.9 days | ~8 hours |
| 8 characters | lowercase (a–z) | ~6 months | ~1 month |
| 8 characters | letters + digits | ~512 years | ~89 years |
| 10 characters | all printable characters | millions of years | millions of years |
For Excel 2007 (AES-128, SHA-1, spinCount = 50,000), recovery runs an order of magnitude faster. An RTX 4060 hits roughly 186,700 p/s, while an RTX 5090 clears over a million passwords per second. An 8-character lowercase password that takes six months in Excel 2024 format takes about two weeks on an RTX 4060 and just a couple of days on an RTX 5090 (see breakdown by Excel version).
The search space grows exponentially according to (character set)password length. Across a 62-character alphanumeric set (a–z, A–Z, 0–9), every added character multiplies the total combinations by 62. Even a flagship RTX 5090 can't brute-force a long, symbol-heavy password blindly—which is why positional masks and mutated dictionaries are essential in practice. They shrink the search space by orders of magnitude, turning years of waiting into a few days.
AccentOPR handles all this math automatically. During job setup, the app displays the exact combination count and estimated attack duration before you start, letting you gauge the timeline upfront and tighten the range with a mask if needed.
Can I recover an XLSX password online without installing software?
For modern .xlsx files with a Password to Open, online tools are useless. Excel 2007–2024 documents are shielded by strong AES-128/256 encryption with heavy key stretching, demanding massive compute power for every single guess.
The gap between cloud services and desktop software comes down to how the file is protected:
- Remote web servers test only a few hundred combinations per second—good enough for trivial passwords like "123" and nothing more.
- A local GPU in AccentOPR tests tens of thousands of candidates per second right on your PC, without uploading sensitive spreadsheets to third-party servers.
Legacy formats using 40-bit RC4 encryption are the exception. If you need to unlock a classic .xls (Excel 97–2003), .doc (Word 97–2003), or PDF 1.0–1.4 file, the cloud service AccessBack.com guarantees instant decryption without brute-forcing the password.
How does a mask speed up Excel password recovery?
A positional mask eliminates impossible combinations and shrinks the search space. Instead of blindly testing every permutation, the software checks only candidates that fit the password pattern you already know.
Compare recovery times for a 7-character Excel 2024 password on a GeForce RTX 4060 (~13,500 p/s):
- Full brute force across (a–z, A–Z, 0–9): 3.5 trillion combinations—continuous brute-force recovery would take over 8 years.
- Positional mask
?c*s?d?d(one uppercase letter, lowercase letters in the middle, two digits at the end): 1.19 billion combinations—cutting recovery time down to 24 hours.
AccentOPR lets you assign a custom character set to every single position in the password. Pinning known characters to exact slots turns one faint memory into years of saved compute time (see mask syntax rules and examples).
Do Excel 2013–2024 passwords take longer to crack than Excel 2007?
Yes—recovery speeds drop several-fold on newer versions. Microsoft steadily hardened document cryptography with each major release, making GPU acceleration practically mandatory for Excel 2013 and newer.
Encryption parameters evolved across releases as follows:
- Excel 2007: AES-128 encryption, SHA-1 hashing, and 50,000 key-stretching iterations deliver the fastest brute-force speeds among .xlsx formats.
- Excel 2010: keeps AES-128 and SHA-1, but doubles the iteration count to 100,000—cutting recovery speed exactly in half.
- Excel 2013–2024: upgrades to AES-256 and heavier SHA-512 hashing at 100,000 iterations, dropping search speeds several times lower still.
The exact same protection scheme applies to Word (.docx) and PowerPoint (.pptx) files. Encryption algorithms, hash functions, and iteration counts match across corresponding Microsoft Office releases.