.txt Plain text document

Text & source code

MIME typetext/plain
DescriptionPlain text document
CategoryText & source code
Signature (magic bytes)54 68 69 73 20 69 73 20 54 65 58 2C (This is TeX,)
Other extensions.asc

Frequently asked questions

What is a .txt file?

A .txt file is a “Plain text document” (MIME type text/plain).

How do I open a .txt file?

With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.

How can you tell a genuine .txt file?

By the bytes at the start of the file, the signature (magic bytes): 54 68 69 73 20 69 73 20 54 65 58 2C (This is TeX,). On Linux and macOS, file --mime-type example.txt checks the real type regardless of the extension.

Which MIME type belongs to .txt?

The MIME type is text/plain. In the Apache web server: AddType text/plain .txt; in nginx: types { text/plain txt; }.

Nearby entries