How to remove passwords from protected Microsoft Word documents

Google AdSense

There’s always been a need to remove passwords from protected Microsoft Word documents when you need to make a change. My most common occurrence is with Human Resource (HR) forms. HR staff will create the MS Word document, password protect it, and then upload it to our company intranet. However, when I need to fill the form out, the only way to do so is to print the form, sign my name, scan the signed & printed form, and them email it back to them. What I would like to do, is to just paste a scan of my signature onto the form, save as a PDF, and them email them the PDF saving printing and scanning time and paper (which would then need to be shredded).

Here’s a trick that I learned a long time ago.

Make sure the MS Word document is password protected

  1. Open the document in MS Word
  2. Select the “Review” tab in MS Word
  3. Click and Hold the “Protect Document” button to reveal more choices
  4. Click “Restrict Formatting and Editing”
  5. You should see a “Stop Protection” button on the bottom of the opened panel
  6. Click the “Stop Protection” button

If it prompts you for a password, then let’s continue to remove the password.


Removing the Password from the MS Word document

Step 1. Convert document to RTF
  1. Click “Save As…” menu option, then choose “Other Formats”
  2. Select “Rich Text Format (*.rtf)” file type and provide a filename ending with .rtf
  3. Close the document and/or MS Word
Step 2. Remove password
  1. Open Notepad (or any text editor, I prefer Notepad2)
  2. Open the RTF file (from step 2) in the text editor
  3. Search for “passwordhash”. You should see text that looks something like this:
    {\*\passwordhash ########}
  4. Select the text after “passwordhash” until you get to the “}” (curly bracket). Make sure to not select the “}” or “{“ characters!
  5. Delete the selected text
  6. The text should look something like this now:
  7. Save the file and close your text editor


Step 3. Convert back to MS Word and Stop Protection
  1. Open the RTF file using MS Word
  2. Click “Save As…” menu option, then choose “Word Document (*.docx)”
  3. Select the “Review” tab in MS Word
  4. Click and Hold the “Protect Document” button to reveal more choices
  5. Click “Restrict Formatting and Editing”
  6. Click the “Stop Protection” button

All done! You should have an unprotected Microsoft Word document now.


82 thoughts on “How to remove passwords from protected Microsoft Word documents

  1. Thanks for the tip, that can be useful! I also found a way to see the code of protected VBA macros in Word by going in the Macro Organiser and copying the macro in another document. Then the macro is no more protected in the second document.

  2. … What is this ?

    The word Document menu items & toolbar is disabled if you didn’t enter the password

    So how I’m supposed to open click on anything …. Explain briefly please.

  3. Thank you – it worked, saved me having to retype and layout four forms again from scratch. Thank you ☺

  4. Genius! These steps were easy to follow and saved me a big headache. Plus I look like a tech guru at the office and no one has to know the truth.

  5. Great stuff James, but there is also a MUCH easier way:
    1. Close the document that is password protected. Make sure it is saved on your pc.
    2. Open a blank Word document.
    3. Customize the Ribbon by adding “Insert File” from the Insert Tab to the Quick Access Toolbar.
    4. Now, click the Insert File button.
    5. Browse to the protected form document on the pc and select it.
    6. Click the Insert button.

    That’s it. You now have a new document that is now unprotected. Save it and give it a new name. The original document is still available and protected, but you now have a unprotected version as well.

    Now, the reason why I stumbled onto this forum, is that I was searching for a method to PREVENT users from doing exactly what I explained above.

  6. Really Great stuff James.
    is there a similar process for Excel documents?
    i am really getting Headache with excel documents. users left the organisations but forgot to forward the password to next person.

    thank you,

  7. James, your advise is very good, I try to use it, it’s working well with my document. you’re expert



  8. Thax, saved having to re-do dozons of documents when someone protected everything and then left!

  9. One minor quibble – in Step 2 you never state that you need to delete the password text after you select it. You do state not to delete the curly braces, but never mention actually deleting the selected password text.

    In Step 2, substeps 4 and 5, you have:

    4. Select the text after “passwordhash” until you get to the “}” (curly bracket). Don’t delete the “}” or “{“ characters!
    5. The text should look something like this now:

    So somewhere in 4 should be “Delete your selection”.

  10. hello it’s really a good post… I have a question, i have saved a word file (docx) with a password and now i have forgotten the password.. each time i access the file it needs a password to open it, unfortunately that i have forgotten..

    Now when i tried to convert the file to RTF format from online converters (websites) they are showing error and are unable to convert the file to RTF … so os there away that i can convert the password protected file to a RFT format so that i can follow the above steps and remove the password and recover my data…



  11. Hi James,
    Thank you for the information. It worked a dream!! Saved a lot of work filling out the same form/report for 2013 as I did for 2012 when all that was need was to change the locked header to 2013.

    Thank You,

  12. I have a nice electronic signature which is made using Livescribe Smartpen. I always wanted to use it in protected word files. You are great. It helped me a lot.

  13. Great tip, thanks. Much easier than everything else I found so far.

    For Excel, run the following macro (open Visual Basic by typing Alt-F11):
    Sub PasswordBreaker()
    ‘Breaks worksheet password protection.

    If ActiveSheet.ProtectContents = False Then
    MsgBox “The sheet is not protected”
    Exit Sub
    End If

    Dim i As Integer, j As Integer, k As Integer
    Dim l As Integer, m As Integer, n As Integer
    Dim i1 As Integer, i2 As Integer, i3 As Integer
    Dim i4 As Integer, i5 As Integer, i6 As Integer
    On Error Resume Next
    For i = 65 To 66: For j = 65 To 66: For k = 65 To 66
    For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66
    For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66
    For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 126
    ActiveSheet.Unprotect Chr(i) & Chr(j) & Chr(k) & _
    Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & Chr(i3) & _
    Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)

    If ActiveSheet.ProtectContents = False Then
    pwd = Chr(i) & Chr(j) & _
    Chr(k) & Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & _
    Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
    tmp = InputBox(“One usable password is in the box below. The sheet is now unprotected.”, , pwd)
    Exit Sub
    End If
    Next: Next: Next: Next: Next: Next
    Next: Next: Next: Next: Next: Next
    End Sub

    I tried to do the same in Word, but there is an annoying message for every failed attempt 🙁 If anyone has a solution, please share!

  14. [email protected] says:

    I wish I would have looked at this website first! You just saved me hours of work/ formatting. You are AWESOME!

  15. [email protected] says:

    very useful. thank you 🙂

  16. Saved me a LOT of hassle,

    I applaud you for giving an actual solution to the problem, instead of other copy/paste/insert file/etc. semi-solution-bullshit.

    As someone above already mentioned, nice insult to Microsoft.

  17. Just wanted to add Re: MS-Word (2003), sometimes one gets a “password” with 8 digits in the RTF files as described above. In that case, COPY it and save to clipboard. Then delete the 8 digits as instructed above, and resave the RTF. Open that file in Word, and enter the password using paste. All functions will be unlocked. Save the file under a new-name.doc

  18. Terrific–Worked perfectly! Thanks. Incidentally, the Insert File method mentioned above works, but it played games with formatting by pushing text onto a new page. It’s probably a margin issue. Anyway, I didn’t bother investigating since the original procedure worked very well.

  19. Doesn’t work for Office 2013 but it put me on the path to figure it out. If you haven’t already solved it, let me know and I’ll share.

    I understand the need to restrict editing in forms and contracts but It frustrates me when someone provides a fillable form but then doesn’t provide a way for me to sign it electronically.

    • I know I’m almost a year late in replying to this, but could you please share what to delete or how you solved the problem for Office 2013? Thanks!

  20. Fantastic! You are seriously a genius, saved me from having to completely remake a document for a couple of edits.

  21. thomas i tried ur style of unlocking file but when i brose file it ask for password.plz help me out

  22. i lost my microsoft word 2013 docx file password. i’m applying this above idea but passwordhash is not coming.

  23. [email protected] says:

    Brilliant – actually works!!!!

Comments are closed.