The primary difference between Doc and Docx is that Doc is a document file format used by Microsoft Word before 2007, while Docx is its successor introduced in 2007. Both are file formats used to store word-processing documents, but Docx is based on the XML standard and offers several improvements over the Doc format. For example, Docx files are more compact and easier to open and edit than Doc files.