Word: Unlock a password-protected document
April 18, 2017I spotted this 2009 article (http://people.csail.mit.edu/teller/misc/unlockworddoc.html) a few weeks ago, and have now had time to test it — it works!
Now, why would you want to unlock a password-protected Word document? Surely the author/company has locked it for a reason? Yes, in many cases, that’s correct and you shouldn’t try to circumvent the password protection — instead, ask the author/company for the password if you need to access elements of the document (e.g. protected form fields, formatting tools etc.).
However, if the author has left the company, or if they wrote the document many years ago and have forgotten the password (it happens!), then you may need to break the password protection to access the document’s contents and functions.
You can follow the steps in the link above, or, in case the content at that link gets removed at any stage, follow my modified and more detailed steps below, which are based on that article:
- Open the password-protected document in Word, if you can. NOTE: Many password-protected documents can be opened but you can’t do anything with them, like change any wording that isn’t inside a form field, modify styles, apply different formatting etc. For those documents, the password protection applies to elements of the document, not the whole document, and you can open it but not do much with it. If the entire document has been protected, then you may not be able to open it, and thus can’t do any of the steps below.
- Go to File > Save As, then select Word XML Document (*.xml) from the Save as type drop-down list.
- Click Save.
- Close Word.
- Right-click on the saved XML file (it should be in the same folder as your original document), then select Open with and choose a text editing program to open the file with (e.g. WordPad, NotePad, or other text editing program — do NOT choose Microsoft Word).
- Press Ctrl+F to open the Find dialog box.
- In the Find what field, type enforcement.
- You’ll find one instance, either w:enforcement=”1″ or w:enforcement=”on”.
- Replace the “1” with a zero “0” (or replace “on” with “off”) to disable enforcement. This step unlocks the document.
- Save the XML document within your text editor, then close the text editing software.
- Right-click on the saved XML file, then select Open with and choose Microsoft Word.
- As soon as you’ve opened it, go to File > Save As, then select Word Document (*.docx) from the Save as type drop-down list. Change the file name if you want to preserve the original password-protected document and make this a new document, or use the same file name to replace the original document.
- Click Save. You should now be able to edit the document.
[Link last checked August 2022]
[…] Update for Microsoft Word (posted 2017): https://cybertext.wordpress.com/2017/04/18/word-unlock-a-password-protected-document/ […]
by Password recovery tools | CyberText Newsletter April 18, 2017 at 1:30 pmThanks so much for your help.
by Trlsna November 16, 2017 at 4:56 amAwesome tip! Helped me a lot.
by Pavel January 31, 2018 at 6:27 pmTHANK YOU!
by stephcam77 March 24, 2018 at 12:02 amThanks so much for your help.
by R. Indarko March 29, 2018 at 12:15 pmI have read dozens of explanations – but noone is addressing my issue. I have files that are shown as locked in my finder. I cannot open them in word. I have tried to go in and change the permissions and the only users showing are MacPorts and guestUsers. MacPorts has permission to read and write. I cannot add my name to the list – again, because I do not have permission. Any suggestions?
by Laurel Palmisano April 14, 2018 at 11:23 pmSorry, I never use Macs, so have no idea how to fix this issue, assuming it can be fixed. Permissions can be applied to docs in several ways, including at the file system level, and it sounds like this is what you’re encountering. The explanation above deals with permissions set at the document level.
–Rhonda
by Rhonda April 15, 2018 at 11:52 amExcellent!!!
by Danny April 20, 2018 at 7:34 pmExcellent – worked for me. Thank you
by Muhammad Sabir Hussain May 1, 2018 at 12:32 pmFollowed directions, answered ‘Cannot find enforcement’
by Peter Agostinelli May 7, 2018 at 10:18 amHi Peter
It’s possible the document was protected in another way — see earlier comments.
–Rhonda
by Rhonda May 7, 2018 at 2:51 pmYou are a legend!!!! Thank you so much for this
by Sid June 11, 2018 at 12:18 pmDidn’t work for me since the document has drop down text to choose from.
-Tina
by Tina June 27, 2018 at 5:31 amThis is one of the most useful things that I have learnt this year. Thank you!
by Reg July 3, 2018 at 8:11 pmIs there any way to open author protected .rar file ?
by cap July 24, 2018 at 3:55 amFantastic tool. Works well for documents I need to update but don’t have the password the former employee forgot to leave. I love this.
by Ted F Moen July 27, 2018 at 4:09 amTHANK SO MUCH, THIS REALLY HELP, A LOT!!
by khoeli August 19, 2018 at 5:10 pmThe word enforcement doesnt appear… What to do then!?? Any other alternative
by Dixit October 21, 2018 at 5:46 pmHi Dixit
There are different types of password protection — on styles, on track changes, on the file itself. This blog post only deals with one type, so you document may use another.
–Rhonda
by Rhonda October 21, 2018 at 6:13 pmplease can some one there help me to remove password from my word document
by michil garry November 3, 2018 at 5:34 pmThank you!!!!!!
by Alex Sanchez November 8, 2018 at 4:47 amI follow this process but in xmL document I can not search enforcement word in document.
by krunali joshi December 13, 2018 at 2:54 pmplease suggent another process.
You are brilliant!
by Mark Asklund March 19, 2019 at 7:24 pmThank you!!!
by Sherri Scott March 29, 2019 at 1:35 amThe following sentence is apparently no longer operative, because a friend just used the procedure to unlock a document that was protected completely: “If the entire document has been protected, then you can’t open it, and thus can’t do any of the steps below.”
by Bonnie Granat May 12, 2019 at 12:11 amThanks Bonnie. Good to know. Because that may still be the case for some versions of Word, I’ve changed the sentence to read ‘may not be able to open it’.
–Rhonda
by Rhonda May 12, 2019 at 6:52 amAnother thank you! I had a real estate sales agreement for that was in (.doc) format and had end-user fillable fields, all of the existing text on the form was protected. I needed to change the wording of the protected text and the your method for removing the protection worked exactly as described.
by Rob J. July 3, 2019 at 9:15 pmCan’t belive it work, but it did! Thank you!
by kuuurista July 11, 2019 at 3:10 am“Open the password-protected document in Word, if you can”. No one can, because it’s password-protected.
by DoSomeRealResearch August 4, 2019 at 2:11 pmActually DoSomeRealResearch, many so-called password-protected documents CAN be opened, but you can’t make any modifications to them. Some, of course, cannot be opened at all. I mention that in Step 1 of my post: “If the entire document has been protected, then you may not be able to open it, and thus can’t do any of the steps below.”
The information in the post is for those who can open the document, but not modify it without a password.
–Rhonda
by Rhonda August 4, 2019 at 4:56 pmThis was very useful! Thanks very much
by Rollo February 3, 2020 at 3:40 pmThank you so much. I wasn’t able to achieve this using Notepad. An error kept coming up “this process is already in use” when I tried to save it, and I was only able to save it as a .txt file, not within XML. But in Wordpad it worked perfectly!!
by Sarah April 22, 2020 at 11:09 amFreakin’ brilliant. Saved me a bunch of copying and pasting. Thanks!
by brossow May 1, 2020 at 12:43 amMy god, this saved my day! Very useful article!
by HomeLate May 15, 2020 at 4:12 pmBrilliant!
by Cris July 23, 2020 at 3:21 amGood work
by Vladimir Nedic December 20, 2020 at 11:03 pmThanks
you are a genius! Thank you
by J wilk March 26, 2021 at 2:39 amIt’s already 2022 but this trick still works.
by fumitsu April 23, 2022 at 2:12 pmYou are doing god’s work.
My files are protected but I don’t know the password
by THAMi Bongumusa Shandu July 20, 2022 at 2:23 pm