FormatSwap › Formats › TXT
The TXT format
The oldest format here, and probably the one that will outlast every other format on this list.
- Full name
- Plain text
- Appeared
- 1960s
- File extensions
- .txt
- Our verdict
- Keep it See why
History
Why it was invented
Plain text has no single inventor, but its most important standard does have a clear story. ASCII gave teleprinters, the machines that typed messages sent over wires, a shared seven-bit code.[1] Work began in May 1961, when IBM engineer Bob Bemer submitted a proposal.[1] Text files stayed in use for their simplicity, avoiding problems such as byte order that affect other formats.[2]
What it was first used for
The first edition of ASCII was published in 1963, at about the same time as the Teletype Model 33, and it was first used commercially that year on AT&T's TWX teleprinter network.[1] Vint Cerf proposed it for computer networks in October 1969, in RFC 20, for “HOST-HOST primary connections”.[3]
What happened next
UTF-8 later brought the world's scripts to plain text while staying compatible with ASCII. Ken Thompson devised it in September 1992, following Rob Pike's design criteria, for the Plan 9 operating system.[4][5] It was presented publicly in January 1993, adopted by the IETF for future standards work in January 1998, and restricted to its current form by RFC 3629 in November 2003.[5]
Pros and cons
Pros
- Readable by anything, forever.
- Editable with no special software.
- Small, and easy to search and compare.
- No hidden metadata, scripts or macros.
Cons
- No formatting, images or structure.
- Older files can have unknown encodings.
- Windows and Unix line endings differ.
Use cases
- Notes, configuration and logs.
- Source code and data.
- Keeping important writing for decades.
Pitfalls
- Garbled accented letters (“é”) mean the wrong encoding was assumed. Always save as UTF-8.
- Some editors add an invisible byte order mark, which can trip up older software.
- Text extracted from a PDF can lose its reading order, particularly in columns.
Should TXT be discontinued?
Keep it
Keep it, without any hesitation. Text from 1970 still opens today. No software, company or patent stands between a reader and the words, and it's hard to see what could end that.
It also sets the standard against which every other format should be judged: how much are you getting in exchange for giving up this freedom?
This verdict is FormatSwap's opinion. “Discontinue” means stop creating new files, not stop reading old ones. How we decide.
TXT files in FormatSwap
PDF Converter creates TXT files from PDFs and eBooks, but doesn't open them.
Related formats
Sources
Numbers in the history above link to these pages. They cover the history section only; the pros, cons and verdict are our own assessment.
- ASCII, Wikipedia
- Text file, Wikipedia
- RFC 20: ASCII format for network interchange, RFC Editor (IETF)
- RFC 3629: UTF-8, a transformation format of ISO 10646, RFC Editor (IETF)
- UTF-8, Wikipedia