MS Word DOC and DOCX formats are commonly used to create rich text documents. You can add text, tables, graphics, animations and various other elements to DOC/DOCX document. However, in certain cases, e.g. to parse and analyze the text in the Word documents, you have to convert DOC/DOCX files to TXT format programmatically. To achieve that, this article covers how to convert a DOC or DOCX file to TXT format in Python.