At One Place

.txt files

.txt file
Plain Text File
Text with no formatting at all — the format that will still open in fifty years.

What opens a .txt file

Windows
Notepad (built in), Visual Studio Code, Notepad++
macOS
TextEdit (built in), Visual Studio Code, BBEdit
Linux
Text Editor / gedit (built in), Visual Studio Code, nano
In a browser
Any web browser

What a .txt file is

A .txt file is just characters, with no fonts, colours or layout, which is exactly why it is the most durable format there is. The only real complication is encoding: a file saved in a legacy code page shows odd symbols where accented letters should be, and UTF-8 is the answer. Line endings differ between Windows and Unix, which is why old Notepad used to show a document as one long line.

Converting it

A .txt file is commonly converted to .pdf, .docx, .csv, .md or .html. It is a plain text format, so any text editor can open and edit it directly.

Details

Extension
.txt
Full name
Plain Text File
Category
Documents
MIME type
text/plain
Created by
Universal
Format
Plain text

Common questions

How do I open a .txt file?
On Windows use Notepad (built in); on macOS use TextEdit (built in); on Linux use Text Editor / gedit (built in). Text with no formatting at all — the format that will still open in fifty years.
What is a .txt file?
Plain Text File. A .txt file is just characters, with no fonts, colours or layout, which is exactly why it is the most durable format there is. The only real complication is encoding: a file saved in a legacy code page shows odd symbols where accented letters should be, and UTF-8 is the answer.
Can I convert a .txt file?
Yes. It is usually converted to .pdf, .docx, .csv, .md or .html, either by exporting from one of the programs listed above or with a format converter.

Related pages

Sources

  1. Media Types Registry — IANA
  2. Official vendor product documentation — At One Place

How these figures are compiled and checked