TXT — Plain Text
A .txt file is the simplest document format in existence: a sequence of characters with no styling, no fonts, no layout — just text. Because there is nothing to interpret, every computer, phone and operating system ever made can open one.
Modern text files usually use UTF-8 encoding, which covers every language and writing system.
What TXT files are used for
- Notes, logs, and configuration files
- Source data for scripts and programs
- README files and documentation
- The most future-proof archive format for pure content
Advantages
- Opens absolutely everywhere, forever
- Tiny file sizes
- Perfectly diff-able, searchable and script-friendly
- No hidden metadata or macros — nothing to exploit
Limitations
- No formatting at all: no bold, headings, images or tables
- No pagination — printing long files is unpleasant without conversion
- Encoding mismatches in old files can garble special characters
How to open a TXT file
Any text editor: Notepad on Windows, TextEdit on macOS, or editors like VS Code. Browsers open .txt files too. To turn a text file into a clean, printable document, convert it to PDF.
Frequently asked questions
What is a TXT file used for?
A TXT file stores plain text with no formatting: notes, logs, configuration files, code snippets, and data exports from systems that need the simplest possible format. Because it is just characters, any program on any operating system can read it.
How do I open a TXT file on Android or iPhone?
Tapping the file in the Files app opens it in the built-in preview on both platforms. To edit it, use any notes or text-editor app. If you need to share it as a polished document, convert TXT to PDF.
Why does my TXT file show strange characters like é instead of é?
That is an encoding mismatch: the file was saved in one character set (usually UTF-8) and opened as another (often Windows-1252), so accented letters break. Reopen it in an editor that lets you choose UTF-8, such as Notepad, VS Code or TextEdit.
Can I convert a TXT file to PDF or Word?
Yes. The TXT to PDF converter typesets your text onto paginated A4 pages, with line breaks kept. To edit the text with formatting, paste it into Word or Google Docs.