An in-depth guide to unlock a Microsoft Word file

The ability to password protect an MS Word document is a very useful feature. It helps to keep your documents private or manage shared access with several authorized users. However, if you lose the password, you will be left with a document you can’t edit at all. This article will show you how to remove the Word password if you have lost or forgot it.

If you can't edit the document, use Method 1, 2 or 3 to remove protection. If you can't open your document without password, use Method 4 or Method 5.

Method 1
Method 1 of 5:

Using WordPad

  1. 1
    Use WordPad to edit your file.[1] WordPad is a word processor that comes with Microsoft Windows. It’s more basic than MS Word, but it’s possible to edit .docx and .doc files in it.
  2. 2
    Right-click on the document you need to unprotect and select Open with -> Choose another app.
    Advertisement
  3. 3
    Select WordPad in the list of apps.
  4. 4
    Click File -> Save As -> Office Open XML document to save your file in .docx format
    • Skip this step if WordPad editing options are enough for you - once open in WordPad, document will be unprotected.
  5. Advertisement
Method 2
Method 2 of 5:

Using Google Docs

  1. 1
    Use Google Docs to unprotect your file.[2] Google Docs is a free online app for text editing with much the same functionality as MS Word.
    • You can use this method if you need to unprotect the document on Mac OS.
  2. 2
    Log into your Google account.
  3. 3
    Go to https://doc.google.com in a web browser. You will open Google Docs.
  4. 4
    Click the folder icon at the right part of the screen.
  5. 5
    Click Upload in the Open a file menu.
  6. 6
    Click Select button to choose a file you need to unprotect.
    • You can also drag and drop the file into the outlined rectangular section of the screen.
  7. 7
    Click File -> Download -> Microsoft Word (.docx) to download your unprotected file.
    • Skip this step if you are okay with editing the document in Google Docs - protection is removed once file is uploaded.
  8. Advertisement
Method 3
Method 3 of 5:

Using an Online Password Cracker (Word 2007 or above)

  1. 1
    Use an online password cracker for files created in MS Word 2007 or above. They are easy to distinguish since they have the .docx extension instead of .doc
    • Right-click on the file and choose Properties to check it's extension. For .doc files the previous method can be used.
  2. 2
    Google "password find online" to find the password cracker.
    • This method also works for documents created in Word for Mac OS.
  3. 3
    Click Unprotect your file
  4. 4
    Click Browse to choose your password protected document. After that click Next step.
  5. 5
    Click on Remove password (recommended)
  6. 6
    Wait a bit for password removal to finish
  7. 7
    Download your unprotected file
  8. 8
    If your file is big, you will be able to download a demo-file with first paragraphs of your document. You'll need a license key to get the full document.
  9. Advertisement
Method 4
Method 4 of 5:

Using VBA Code

  1. 1
    Open the document you need to unprotect.
  2. 2
    Save the document as a doc, if you have a .docx file.
    • Click File -> Save As.
    • Choose the folder to save the file in.
    • Under the file name click on the menu Save as type.
    • Choose Word 97-2003 (.doc).
    • Click Save.
  3. 3
    Open your .doc file.
    • Files in Word 97-2003 format have a different icon image than regular .docx file.
  4. 4
    Press Alt+F11 to open Visual Basic Editor.
  5. 5
    Right-click the file name in the "Project - VBAProject" panel in the top left corner of the screen. Choose Insert -> Module in the menu.
  6. 6
    Copy and paste the following VBA code into your module.
    Sub PasswordBreaker()
        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
                MsgBox "Password is " & Chr(i) & Chr(j) & _
                    Chr(k) & Chr(l) & Chr(m) & Chr(i1) & Chr(i2) & _
                    Chr(i3) & Chr(i4) & Chr(i5) & Chr(i6) & Chr(n)
             	Exit Sub
             End If
        Next: Next: Next: Next: Next: Next
        Next: Next: Next: Next: Next: Next
    End Sub
    
  7. 7
    Press F5. You will see the Macros window. Click Run.
  8. 8
  9. 9
    Press Alt+F11 again to close the VBA editor, click on the protected text to open the Restrict Editing menu. Click Stop Protection. It will stop protection without the password.
  10. Advertisement
Method 5
Method 5 of 5:

Using a Free Password Cracker (Word 97-2003)

  1. 1
    Check if you need to use a password cracker. If you see this window when you try to open the Word document, it means the document is protected with a password to open and steps above won't help with it, so you need to use a password cracker.
    • If you can open your document, use one of the methods above instead.
  2. 2
    Understand that using a password cracker is not a guaranteed success, but it’s the only way to unlock Word documents protected by the password to open.[3]
  3. 3
    Find a free password cracker app using query "crack word excel password free".
  4. 4
    Download the setup file and double-click it to start the installation. Follow the on-screen instructions and then open the program once it’s installed.
    • Unfortunately, there are no free password crackers available for newer versions of MS Word.
  5. 5
    Click "Next" to proceed from the main window.
  6. 6
    Click the Browse button to select your password protected Word document and go to the Next step.
  7. 7
    Start password recovery with a Dictionary attack.
  8. 8
    Check all the Recovery options and click Next.
  9. 9
    Press Go to start the recovery process.
    • You can pause and resume it anytime with the respective buttons, but if you close the cracker before finishing the attack, it will be terminated and you’ll have to start again.
  10. 10
    Wait for the attack to finish.
  11. 11
    See the message with results. If the password was found, proceed to Step 13. If the password was not found, click OK. This will return you to the Select approach page.
  12. 12
    Choose Brute Force attack.
    • Check shorter passwords with less types of symbols first.
  13. 13
    Try different approaches and settings until you succeed.
  14. 14
    Click on the password if the password is found - this will copy it to clipboard.
  15. 15
    Use the password to remove protection from your encrypted file.
  16. Advertisement

About This Article

wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, 11 people, some anonymous, worked to edit and improve it over time. This article has been viewed 185,899 times.
How helpful is this?
Co-authors: 11
Updated: August 26, 2022
Views: 185,899
Categories: Microsoft Office
Advertisement