How to Recover a .docm File and Open a Corrupted Word Document
If a Microsoft Word document suddenly got saved with a .docm extension and now refuses to open with a file-corruption error, you can usually fix it in ten seconds without paying for any recovery software.
The fastest fix: make a backup copy of the file and simply rename its extension from .docm to .docx. Judging by the dozens of thank-you comments on the original Russian post, this simple rename has rescued countless documents that paid online tools wanted $10+ to “repair”.
Why This Happens
A .docm file is a macro-enabled Microsoft Word document (VBA macros), whereas .docx is a standard macro-free document. Under the hood, both are standard ZIP archives containing XML text and embedded media.
The error commonly popped up when newer Word files were opened and re-saved through Word 2003 with the Office 2007 Compatibility Pack, or when an email filter or office suite saved a regular document with the wrong .docm extension. Word expects macro metadata that does not match the file contents and refuses to load it – renaming it back to .docx clears the mismatch immediately.
Method 1. How to Rename .docm to .docx in Windows
If you do not see the .docm ending when renaming a file, Windows is hiding file extensions. Turn them on in two clicks:
- Make a backup copy (
Ctrl+C→Ctrl+V) so your original file stays untouched. - Show file extensions in File Explorer: on Windows 11 click View → Show → File name extensions (on Windows 10 open the View tab and check File name extensions).
- Rename the copy: right-click the file → “Rename” (or press
F2), change.docmat the very end to.docx, and click “Yes” on the Windows warning prompt. - Open the new
.docxfile in Microsoft Word.
Method 2. Use Word’s Built-in “Open and Repair”
If renaming alone still throws a formatting warning, let Word rebuild the internal structure:
- Open a blank Word window and click
File → Open → Browse. - Click the broken file once to highlight it (do not double-click).
- Click the small drop-down arrow on the “Open” button and select Open and Repair.
Method 3. Extract Text and Images Manually via ZIP
Because every .docm and .docx file is a ZIP archive, you can almost always rescue your writing and images even from a heavily damaged document:
- Rename a copy to
.zipand open it with 7-Zip, WinRAR, or Windows File Explorer. - Your document text lives inside
word\document.xml, and all embedded photos and charts are stored insideword\media\. - Try another editor: LibreOffice Writer and Google Docs are much more forgiving with broken Word XML – opening the file there and exporting a fresh
.docxoften cleans up the corruption completely.
.docm attachments: if a .docm file arrived from an unknown sender and you were not expecting macros, never click “Enable Content” in Word. Renaming a copy to .docx or uploading it to Google Docs safely strips out macro execution.Once the renamed file opens cleanly in Word, immediately save a fresh copy via File → Save As so Word writes a clean internal structure from scratch.
