What is a TXT file?

TXT is plain text with no fonts, colours or pictures. It opens in any program on any device. The file does not say which text encoding it uses, so non-English letters can look broken.

Drop your file here

or select file

Images, video, audio, documents, data, archives, fonts and more.

About TXT file:

01TXT at a glance

Full name
Plain text file
Type
Unformatted text, only characters
Extension
.txt (also .text and .log)
MIME type
text/plain
First bytes (hex)
No signature. A UTF-8 file with BOM starts with EF BB BF
Encoding
Not stored in the file. UTF-8 is the modern default

02What is a TXT file

A TXT file holds only characters. There is no font, size, colour, bold text or picture, only letters, numbers, symbols and line breaks. This makes it the simplest and most durable document format. Almost every program on every device can read it.

The file does not say how its characters are encoded. Most new files use UTF-8, which covers every language. Older files may use an 8-bit encoding such as Windows-1251 or Windows-1252. If a program guesses wrong, Ukrainian, Polish or accented letters turn into strange symbols.

Line breaks differ between systems. Windows uses CR LF, Linux and macOS use LF, very old Mac systems used CR. Most modern programs handle all three, but some old tools show everything on one line or add blank lines.

Use TXT for notes, logs, short instructions and data that other programs read. Do not use it for anything that needs a layout. For a page you want to print or sell, write it in a word processor and export a PDF.

03Good and bad sides

Good

  • Opens in every program on every device
  • Tiny files
  • Nothing hidden: no macros, no author data, no tracked changes
  • Readable by every programming language and tool

Bad

  • No formatting, pictures or page layout
  • The encoding is not stored, so non-English text can break
  • Line endings differ between Windows, macOS and Linux
  • Not made for print: no page size, no fonts

04Best for

  • Notes and logs

    Fast, small and readable everywhere.

  • Sending to anyone

    Opens in every program on every device, and nothing is hidden inside.

  • Text in other languages

    Save it as UTF-8. In an old 8-bit encoding the letters can turn into strange symbols on another computer.

  • Print

    It prints, but you cannot control font, size or margins. Use PDF for a designed page.

05How to open it

Windows
Notepad, any text editor, any browser
macOS
TextEdit (set to plain text), BBEdit, any code editor
iPhone and Android
Files preview, Notes or any text editor app
Linux
gedit, Kate, nano, vim
Code editors
Visual Studio Code, Sublime Text, Notepad++ (shows the encoding)

06Convert and compare

Related formats: DOCX, PDF

Sources