DOC is the most popular text file format. Its full name is Microsoft Word Document, but the short version is more convenient and practical. This format was created for working with text documents in a paid text editor Microsoft Word office suite Microsoft Office. A file of this format contains not only a text document itself, but also a complete set of data on its formatting - paragraphs, indents, fonts, lists, text alignment, and much more. In addition, the DOC format makes it possible to include tables, charts, images in a text document. Working with such files is also available in many free programs or online services.
TXT is one of the simplest and longest existing text file formats. The full name of the format is Plain Text File, and the developer is unknown. Text files of this format are very small, and therefore have become very widespread. A TXT file contains text data organized as strings. As a rule, this is a standard text document without formatting. This format is universal, it is available to work in almost any text editor. But one of the simplest and most common is Windows Notepad. Files with the extension .txt are associated with this program by default.