.txt.text

TXT file: what it is and how to open it

A TXT file is plain text: letters, numbers and line breaks, with no fonts, formatting or pictures. Drop one here to read it, edit it and save a UTF-8 copy.

Drop your TXT file here

Opens on this device. Nothing is uploaded. Any other file works too.

What is a TXT file?

A TXT file holds characters and nothing else. Every computer and phone can open one, which is why notes, logs, licenses, README files and exported lists so often come as .txt. No company owns the format; the MIME standard of the internet names it text/plain.

Two hidden details cause most problems. The encoding is the table that turns bytes into letters: UTF-8 today, but older files often use a regional code page such as Windows-1252, and a .txt does not record which. Line endings differ too: Windows ends a line with two bytes, CR LF, while macOS and Linux use LF alone.

What is inside

A text file is a run of character codes with no header, no signature and no metadata. In UTF-8 the letters A to Z take one byte each and é takes two (C3 A9); in Windows-1252 é is a single byte (E9). Read a UTF-8 file as Windows-1252 and café turns into café, the classic sign of an encoding mix-up.

Some editors write a byte order mark at the very start, EF BB BF for UTF-8 or FF FE for UTF-16, as a signature that names the encoding. It is optional and most UTF-8 files have none; Windows Notepad has saved UTF-8 without one by default since 2019.

The word Café and a line break, saved four ways.

How to open a TXT file

Windows

  • NotepadBuilt in. Reads Windows, macOS and Linux line endings and saves new files as UTF-8.
  • Notepad++Free and open source. Shows the encoding and converts it from the Encoding menu.
  • Universal File Opener for WindowsOursEdits and saves text free, with find and replace, undo and local version history.

Mac

  • TextEditBuilt in. Opens and edits plain text; Format, Make Plain Text keeps a new note as .txt.
  • Visual Studio CodeFree. Shows the encoding in the status bar and can reopen or save the file in another one.

iPhone and iPad

  • PagesFree from Apple. Opens .txt files for reading and editing.

Android

  • MarkorFree and open source, with no ads. Edits plain text and Markdown offline.
  • Universal File OpenerOursEdits offline with find and replace and undo, keeps the encoding and line endings, and reads text aloud. Saving is free.

In a browser

  • Universal File OpenerOursDrop the file on this page to read it, edit it and save a UTF-8 copy. Nothing is uploaded.

Won’t open?

Letters show as é or question marks

The app guessed the wrong encoding. Reopen the file with the right one: pick it from the Encoding menu in Notepad++, or click the encoding in the VS Code status bar. Then save it as UTF-8.

Everything appears on one line

The file uses macOS or Linux line endings and the app expects Windows ones. Current Notepad reads all three; open it there, in Notepad++ or in VS Code.

It is full of symbols instead of words

It is probably not text at all, but another kind of file with a .txt name. Drop it on this page to see what it really is.

A note from TextEdit saved as .rtf

New TextEdit documents are rich text. Choose Format, Make Plain Text before saving, or set Plain text under TextEdit, Settings, New Document.

Convert a TXT file

  • To UTF-8In Notepad, File, Save as and pick UTF-8 under Encoding. In Notepad++, Encoding, Convert to UTF-8, then save.
  • To PDFIn TextEdit, File, Export as PDF. On Windows, print from Notepad to Microsoft Print to PDF. Universal File Opener for Android exports a paginated PDF.

TXT files in our apps

Open and edit text files on Android, Windows or in the browser, with find and replace and undo. The apps keep the encoding and line endings and save free; the browser saves a UTF-8 copy.

Get it on Google PlayGet it from Microsoft Store
All Android tools and limits for TXT files
  • Writable text files open in the editor. Leaving with unsaved changes prompts you to save.
  • Create a TXT or MD file in Documents from New file on Home. Choose a name and start typing.
  • Find and replace with a live "n of m" match count; go-to-line; line operations (duplicate, move, sort, join, change case); undo/redo that survives saves.
  • Encoding detection for UTF-8/16/32 and BOMs with Latin-1 fallback, preserved on save, and upgraded losslessly to UTF-8 only when an edit needs characters the original encoding cannot hold.
  • Read aloud through the device’s offline text-to-speech, with speed control; print or export as a paginated monospace PDF.
  • A persistent reading size and a remembered position, so a long file reopens where you were.

Limits

  • Notes are local text files. UFO does not provide note sync, tags or an account.
  • Text files save in standard encodings for use in compatible editors.

Walkthrough: Edit text, code and data on Android