ThisCalculator

Everyday

Remove Forgotten Password from Word DOC DOCX Files

Updated · Standard formula, shown below

Remove Forgotten Password from Word DOC DOCX Files

If you have a Word document (DOC or DOCX) locked by a forgotten password, you can remove the password if it is a file-open password on a DOCX file using a simple XML trick, or by using a third-party tool for older DOC files. For DOCX files, the password is stored in an XML file inside the document, and you can edit it out without any special software. For legacy DOC files, the password is stored in a binary format that requires a dedicated password recovery tool.

How Word Passwords Work

Word offers two types of passwords: a password to open (which encrypts the document) and a password to modify (which only restricts editing). The password to open is the one that prevents you from even viewing the content. In DOCX files, the encryption metadata is stored in a file called encryption.xml inside the document’s ZIP archive. The actual password is not stored in plain text; instead, a hash is stored, but the XML also contains a keyData element that can be removed to disable the password check. This is why the XML editing method works for DOCX files.

Method 1: Remove Password from DOCX (No Software)

This method works for DOCX files created in Word 2007 or later. It does not work for DOC files. Follow these steps carefully:

  1. Make a backup copy of the file.
  2. Change the file extension from .docx to .zip (e.g., report.docx → report.zip).
  3. Open the ZIP file using Windows Explorer (double-click) or a tool like 7-Zip.
  4. Navigate to the word folder.
  5. Find the file named settings.xml. Right-click it and choose Edit (or copy it out, edit, and replace).
  6. Look for a tag that contains w:documentProtection. This is the password for the “restrict editing� feature, not the open password. If you only have a password to open, you will not find this tag.
  7. For the open password, you need to look in EncryptionInfo which is not in settings.xml. Actually, the open password is stored in a separate stream. The XML trick only removes the modify password. For the open password, you must delete the EncryptionInfo file from the ZIP. To do this, go back to the root of the ZIP and delete the file named EncryptionInfo (it may be in the root or in the word folder).
  8. After deleting EncryptionInfo, save the ZIP and rename it back to .docx.
  9. Open the document in Word. The password should be gone.

Important: This method only works if the document is not encrypted with a strong algorithm. If the document uses a modern encryption (e.g., AES-256), simply removing the EncryptionInfo file may corrupt the document. In that case, you need a password recovery tool.

Method 2: Remove Password from DOC (Legacy)

For older DOC files, the password is stored in the binary header of the file. There is no manual XML trick. You have two options:

  • Use a password recovery tool – many commercial tools can remove the password by either cracking it (brute-force or dictionary) or by patching the file. Some free tools exist, but they often have limitations.
  • Re-save the file – if you know the password to modify (but not the password to open), you can open the file with the modify password, then save it as DOCX without a password. This does not work if you don’t know the open password.

Method 3: Use a Password Recovery Tool

If the manual method fails or you have a DOC file, you need a third-party tool. These tools work by either:

  • Brute-force attack – tries every possible combination of characters. This is slow for long passwords.
  • Dictionary attack – tries common words and phrases. Fast but only works if the password is a common word.
  • Mask attack – you provide a pattern (e.g., you know the password starts with “Aâ€� and has 8 characters).
  • Remove password directly – some tools can strip the password without knowing it, by modifying the file structure. This works for both DOC and DOCX, but may not work for documents with strong encryption.

Common Problems and Misconceptions

Many people confuse the “password to open� with the “password to modify.� The modify password only restricts editing, but you can still view the document. If you can open the document but cannot edit it, you do not need to remove the open password – you can simply save the document as a new file (e.g., save as DOCX) and the modify password will be gone. This is the easiest fix for a modify password.

Another misconception is that you can “recover� a forgotten password. In most cases, you cannot recover it – you can only remove it or bypass it. If the document is encrypted with a strong password (e.g., 16 characters with symbols), it may take years to crack with brute-force. The only reliable way is to use a tool that removes the password directly, but this only works if the encryption is weak.

Safety and Legality

Removing a password from a document you own is legal. However, if the document belongs to someone else, removing the password may be illegal and unethical. These methods should only be used on your own documents or documents you have explicit permission to modify. Do not use them to bypass passwords on documents you do not own.

Frequently Asked Questions

Can I remove a password from a DOCX file without any software?

Yes, if the password is a “password to modify� or if the encryption is weak, you can manually edit the ZIP file as described above. For a strong open password, you will need a tool.

Why can’t I just rename the file to .zip and edit it?

You can, but you must be careful to not corrupt the file. Always make a backup. Also, the EncryptionInfo file may not be visible if the file is encrypted with a strong algorithm – in that case, the file is actually a binary container, and renaming it to .zip will not work.

What is the difference between a password to open and a password to modify?

A password to open encrypts the entire document, so you cannot view it without the password. A password to modify only restricts editing – you can still open and read the document, but you cannot change it unless you enter the password.

Will removing the password damage my document?

If done correctly, no. If you delete the wrong file or corrupt the ZIP structure, the document may not open. Always work on a copy.

Is there a free tool that can remove a password from a DOC file?

Yes, some free tools exist, but they often have limitations (e.g., only work for short passwords or only remove modify passwords). Commercial tools are more reliable but cost money.

Can I use this method for older .doc files?

No, the ZIP method only works for DOCX files. For DOC files, you need a password recovery tool.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.