Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a Microsoft .docx document that is locked down and can't even be viewed without the forgotten password.

I'm wondering if there is an easy way to unlock it or get the computer to remember the password itself with a hint or something.

share|improve this question

3 Answers 3

up vote 19 down vote accepted

DocX is a compressed zip container file. Make a copy of the original docx file. If you unzip it, there is a subfolder named word with a file named settings.xml. You can open settings.xml with a plain text editor.

Within that there is a block of text:


You can either change w:enforcement value to 0 or remove the block entirely.

Then you zip up the whole thing again (don't zip up the whole folder: the content_types.xml and subfolders must be root of the zip file.), rename the result to have a Docx extension, and then open it in word.

share|improve this answer
In Word 2010, this works only if the document is not read-protected, so it won't work for the OP. If the 2010 document is read-protected, it does not appear as a valid ZIP file. Also, the 2010 tag name is writeProtection rather than documentProtection and there is no w:enforcement. –  Ben Jan 9 at 21:01

From this link: http://people.csail.mit.edu/seth/misc/unlockworddoc.html

How to Unlock a Word Document under Windows

Seth Teller, August 2009

Some authors (for example, of forms to be filled out) "lock" their documents under Windows. This is annoying, as it prevents you from fixing errors or adding anything to the document.

If you web-search on "unlocking word document," you get a bunch of pages with advice that doesn't work under Windows, or pointers to paid software. Here is a method that works, and is free:

  1. Open your document in Word, then save it in ".xml" format.

  2. Open the .xml doc in wordpad, emacs, or your favorite text editor.

  3. Search for the string w:enforcement="1".

  4. Replace the "1" with a "0" to disable enforcement (i.e., unlock the document).

  5. Save the document from your text editor.

  6. Open the .xml document in Word.

  7. Choose "Save as..." and save it as a .doc or .docx file.

Your Word document can now be edited normally. Enjoy!

Mac users: ExtendScript Toolkit works well as a text editor in this workaround.

share|improve this answer

Which OS and version of Word? If messing about with XMLs and text editors is not your cup of tea, in Word 2010 for Windows at least you can remove all restrictions, passwords, final locks etc. from File / Info / Permissions:

Word 2010 Doc Locks

Also make sure the file is not set to Read-only (close Word, right-click the file, check Properties / General tab / Attributes).

share|improve this answer

protected by Community May 18 '14 at 15:22

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.