A TXT file holds plain text: letters, numbers, punctuation and line breaks, with no fonts, colours, bold, images or layout. That simplicity makes it the most compatible document format there is. Every computer and phone can open it, and a text file written decades ago reads perfectly today.
How plain text is stored
A text file is a sequence of characters saved with a character encoding, a rule that turns each character into bytes. Older files often use regional encodings such as Windows-1252, which only cover a small set of languages. Today the standard is UTF-8, which covers every writing system and emoji while staying compact for English text.
When a text file shows garbled characters, such as é instead of é, it was read with the wrong encoding. Saving as UTF-8 avoids this. Some Windows apps also look for a short marker at the start of the file, called a byte-order mark, to recognise UTF-8 straight away.
Line endings
Windows ends each line with two invisible characters (carriage return and line feed, “CRLF”), while macOS and Linux use one (“LF”). Modern editors handle both, but very old Windows tools such as early Notepad versions showed LF-only files as one long line.
What TXT is good at
- Universal compatibility. Opens everywhere, needs no special software.
- Small and durable. No hidden data, nothing to break as software changes.
- Easy to process. Search, compare, translate and feed text into other tools and programs.
- Notes and drafts where formatting doesn’t matter.
Where TXT falls short
- No formatting at all: no headings, bold, tables or images.
- No page layout, so printing gives plain, unstyled pages.
- Data in columns has no real structure; CSV is the better plain-text choice for tables.
TXT and other formats
Plain text is often the starting or end point of a conversion. Extracting the text from a PDF gives you editable, searchable words without the fixed layout. Text with values separated by commas or tabs is a short step from a CSV spreadsheet.