.txt

What is a .txt file?

TXT is the simplest file format — raw text with no formatting, universally compatible with every editor and OS.

Safe format
Type Document
By N/A (universal format)
MIME text/plain

Drop any file to identify it

No upload. No signup. No sending your file halfway across the internet.
We tell you what it is, right here in your browser.

What is it

You have a .txt file — the most universal file format in computing. No formatting, no fonts, no embedded media, no metadata. Just characters. Every operating system, every text editor, every programming language, every device ever made can read a plain text file. It is format immortality.

TXT files are used for notes, README files, logs, configuration, data exchange, and anything where the content matters more than the presentation. The only complexity is character encoding — UTF-8 is the modern standard, but you'll occasionally encounter files in ASCII, Latin-1, or Shift-JIS that display garbled characters in the wrong encoding. When a text file looks like mojibake, the content is fine — it's the encoding detection that's wrong.

Every text editor ever made opens .txt files. Notepad (Windows), TextEdit (macOS), and nano/vim (Linux) all handle them. VS Code opens them with syntax detection turned off. For sharing text that absolutely, positively must be readable by the recipient regardless of their platform, software, or decade — TXT is the format. It was here before everything else, and it will be here after.

Technical details
Full Name
Plain Text File
MIME Type
text/plain
Developer
N/A (universal format)
Magic Bytes
N/A
Safety
.txt is a known, safe format.
What opens it
Every text editor
FREE All
FAQ
Why does my text file show weird characters?
Character encoding mismatch. The file was saved in one encoding (e.g., Latin-1) and opened in another (e.g., UTF-8). In VS Code, click the encoding name in the status bar to reopen with the correct encoding. UTF-8 is the modern standard.
What's the difference between TXT and MD?
Both are plain text. TXT has no formatting conventions. MD (Markdown) uses simple syntax (# for headings, ** for bold) that renders as formatted text in compatible viewers. Use TXT for pure unformatted text, MD for documents that benefit from lightweight formatting.
Related formats