.txt
📄 DocumentText-based

.txt File — Plain Text File

text/plain

File Inspector

Drop any file to identify its extension and type — runs entirely in your browser

TXT

Drop a .txt file here or click to choose

Or drop any file to identify its extension

Expected MIME type:text/plain

Quick Facts

Extension.txt
Full NamePlain Text File
MIME Typetext/plain
CategoryDocument
TypeText-based (human-readable)
Typical Size1 B – 1 GB
First Appeared1960s

What Is a .txt File?

TXT files are the simplest form of digital documents, containing only unformatted text characters with no styling, fonts, images, or structural markup. They typically use ASCII, UTF-8, or other character encodings to represent text. The format has existed since the earliest days of computing and remains universally supported by virtually every operating system, text editor, and programming language. TXT files are used for README files, configuration notes, log output, data exchange, and any context where simplicity and universal readability are paramount. Because they contain no executable code or macros, plain text files are inherently safe from malware. Line endings vary by platform — Windows uses CR+LF, Unix/Linux uses LF, and classic Mac OS used CR. Despite their simplicity, plain text files are the foundation of computing — source code, configuration files, and many data formats are essentially structured plain text with specific naming conventions and syntax rules.

How to Open .txt Files

Notepad
VS Code
Sublime Text
vim
nano
TextEdit
Notepad++
gedit

Related File Extensions

More Document File Extensions

Other document formats you might encounter

Browse File Extensions by Category

Explore our reference of 259 file extensions with details, programs, and related formats.