The extension of a Microsoft Word file can be either .doc or .docx. The .doc extension is used for Word 97-2003 documents, while the .docx extension is used for Word 2007 and later versions. The .docx format is part of the Microsoft Office Open XML specification and is a zipped, XML-based file format.