What to do when you're locked out of your own document

If you set a password on a Word document and now can't remember it, your options depend on which version of Word you use and whether you password-protected the file itself or just restricted editing. Microsoft Word has no built-in "forgot password" recovery — there is no master key or reset link. What you can do instead depends on whether you own the document, what operating system you're on, and how much time you want to spend.

The fastest route for most people is to open the document in a different program that doesn't enforce Word's password protection, or to use an older version of Word that handles the same file differently. If neither of those works, you have options that take longer but don't require you to buy anything new.

Key Takeaways

  • Word has no password recovery feature, but you can often open a password-protected document in LibreOffice, Google Docs, or older versions of Word without entering the password.
  • If the document is password-protected for editing only (not opening), you can usually open it in read-only mode and copy the text into a new document.
  • On Windows, you can rename the file to .zip, extract the XML files inside, and remove the password tag from the document settings — this works for .docx files but not .doc.
  • On Mac, the fastest option is usually Google Docs, which often opens password-protected Word files without asking for the password.
  • If you encrypted the file with a strong password using Windows or Mac encryption, no method will recover it — you will need the password or a backup copy.

Opening the document in a different program

Word documents come in two main formats: .docx (the modern format, used since 2007) and .doc (the older format). Password protection works differently in each, and different programs handle them differently.

LibreOffice (free, available for Windows, Mac, and Linux) opens many password-protected .docx files without asking for a password. Open LibreOffice Writer, go to File > Open, select your Word document, and click Open. If the document opens without a password prompt, you can now edit it and save it as a new file. If LibreOffice does ask for a password, this method won't work for your document.

Google Docs (free, requires a Google account) often bypasses Word password protection on .docx files. Upload your document to Google Drive, right-click it, select "Open with" > "Google Docs", and wait for it to convert. Google Docs may open the document without asking for a password. If it does, you can read and copy the text, then paste it into a new Word document. This method works on any device with a web browser.

Microsoft Word Online (free with a Microsoft account) sometimes handles password-protected files differently than the desktop version. Upload your document to OneDrive, open it in Word Online, and see whether it asks for a password. This is worth trying before you spend time on other methods.

Removing password protection from .docx files on Windows

If you're on Windows and the document is a .docx file (not .doc), you can remove the password by treating the file as a compressed folder. This works because .docx files are actually ZIP archives containing XML files, and the password protection is stored in one of those XML files.

First, make a backup copy of the document in case something goes wrong. Then right-click the .docx file, select "Rename", and change the extension from .docx to .zip. Windows will ask whether you're sure — click Yes. Now right-click the .zip file, select "Extract All", and choose a folder to extract to.

Open the extracted folder, then open the "word" subfolder inside it. Find the file called "document.xml", right-click it, and open it with Notepad. Use Ctrl+F to search for the text "w:password" or "w:enforced". You should see a line that looks like this: <w:documentProtection w:enforcement="1" w:hash="[long string of characters]" />. Delete that entire line, save the file, and close Notepad.

Go back to the extracted folder, select all the files and folders inside it, right-click, and select "Send to" > "Compressed (zipped) folder". Name the new zip file something like "document_unlocked.zip". Then rename the .zip extension back to .docx. Open the document in Word — it should no longer ask for a password.

Understanding the difference between opening passwords and editing passwords

Word lets you set two different kinds of passwords. An opening password prevents anyone from opening the document at all without the password. An editing password lets people open the document in read-only mode without a password, but they need the password to make changes.

If you set only an editing password, you can open the document without a password — you just won't be able to edit it. When Word opens it in read-only mode, you can select all the text (Ctrl+A), copy it (Ctrl+C), create a new blank document, and paste the text there. The formatting may not transfer perfectly, but the words will be there. Save the new document with a password you'll remember this time, or with no password at all.

If you set an opening password, the document won't open at all without it. That's when you need to use one of the other methods in this guide — opening it in a different program, or removing the password from the XML files if you're on Windows with a .docx file.

What to do if none of these methods work

If the document is a .doc file (not .docx), the XML method won't work because .doc files use a different internal structure. If you're on a Mac, the XML method is harder because Mac doesn't have a built-in way to rename and extract ZIP files as easily as Windows does.

In those cases, your options are: try opening the file in LibreOffice or Google Docs (these work regardless of file format); ask the person who sent you the document to send an unprotected copy; or check whether you have a backup of the file from before it was password-protected. If the document was encrypted using your operating system's encryption (BitLocker on Windows, FileVault on Mac), the password is tied to your system and there is no workaround — you will need the password.

If you created the document yourself and genuinely cannot remember the password, and none of the methods above work, the document is effectively locked. This is by design — Microsoft makes password protection difficult to bypass so that people can actually protect sensitive documents. The trade-off is that if you forget the password, recovery is hard.

Preventing this from happening again

If you do recover access to your document, consider whether you actually need password protection on it. Password protection is useful if you're sharing the document with others and want to prevent accidental changes, or if the document contains information you want to keep private. It's less useful if you're the only person who will ever open it.

If you do use a password, write it down somewhere find — a password manager like Bitwarden or 1Password (both free or low-cost) is better than a sticky note on your monitor, but better than forgetting it entirely. If you're protecting the document because it contains sensitive information, the password protects it from casual viewing, but it doesn't encrypt the file itself — someone with access to your computer could still extract the file and try to crack the password. For truly sensitive documents, use your operating system's full-disk encryption (BitLocker on Windows, FileVault on Mac) instead of or in addition to Word's password protection.

Frequently Asked Questions

Can I recover a Word password if I forgot it?

No. Word has no password recovery feature and no way to reset a forgotten password. Your only options are to open the document in a different program that doesn't enforce the password, or to remove the password from the file's internal structure (which works for .docx files on Windows). If neither works, you will need the password or a backup copy.

Will opening a password-protected document in Google Docs damage it?

No. Google Docs converts the file to its own format, so the original Word file stays unchanged. If Google Docs opens the document without asking for a password, you can read it and copy the text, but you're working with a copy, not the original. The original password-protected file is still on your computer.

Does the XML method work on Mac?

Technically yes, but it's more complicated. Mac doesn't have a built-in way to rename files to .zip and extract them as easily as Windows does. You would need to use the Terminal or a third-party app like The Unarchiver. For Mac users, trying LibreOffice or Google Docs first is usually faster.

What if the document is encrypted, not just password-protected?

If you encrypted the file using Windows BitLocker or Mac FileVault, the encryption is tied to your system and there is no workaround. You will need the password. If you only set a Word password (not system encryption), the methods in this guide should work.

Is it safe to use online password-removal tools?

No. Online tools that claim to remove Word passwords require you to upload your document to their server. This means a stranger has access to your file, and you have no way to know whether they're keeping a copy or selling it. Use the methods in this guide instead — they keep your document on your own computer.