encyclopegia.org

Plain text

, displayed by the command cat in an xterm window In computing, plain text is a loose term for unformatted text or nontextual data represented as text (e.g. file contents) using printable characters (for example letters, digits, symbols, spaces, tabs, line breaks) in a character encoding. In principle, plain text can be in any encoding, but today usually implies UTF-8. Plain text is different from formatted text, where style information is included; from structured text, where structural parts of the document such as paragraphs, sections, and the like are identified; and from binary files in which some portions must be interpreted as binary objects (encoded integers, real numbers, images, etc.). Plain text is often used as a counterpiece to "binary" files: those in which at least some parts of the file cannot be correctly interpreted as text. For example, a file or string consisting of "hello", following by 4 bytes that express a binary integer that is supposed to be evaluated in a CPU representation like little endian, is a binary file. Text files that do not represent anything but text in a character encoding have no indicator of encoding, no magic number, no special marker at the beginning and no metadata marking them as text in most file systems.…

, displayed by the command cat in an xterm window In computing, plain text is a loose term for unformatted text or nontextual data represented as text (e.g. file contents) using printable characters (for example letters, digits, symbols, spaces, tabs, line breaks) in a character encoding. In principle, plain text can be in any encoding, but today usually implies UTF-8. Plain text is different from formatted text, where style information is included; from structured text, where structural parts of the document such as paragraphs, sections, and the like are identified; and from binary files in which some portions must be interpreted as binary objects (encoded integers, real numbers, images, etc.). Plain text is often used as a counterpiece to "binary" files: those in which at least some parts of the file cannot be correctly interpreted as text. For example, a file or string consisting of "hello", following by 4 bytes that express a binary integer that is supposed to be evaluated in a CPU representation like little endian, is a binary file. Text files that do not represent anything but text in a character encoding have no indicator of encoding, no magic number, no special marker at the beginning and no metadata marking them as text in most file systems. However their file-names are often marked with .txt at the end by Windows users and other operating systems often assume unidentifiable files to be text. However there is the MIME type "text/plain" that is used for transfer over the internet or between software components. ==Usage== One purpose of using plain text today is independence from programs that require proprietary encodings or a file format. Plain text files can be opened, read, and edited with standard text editors and utilities. A command-line interface allows people to give commands in plain text and get a response, also typically in plain text. Many other computer programs are also capable of processing or creating plain text, such as countless programs in DOS, Windows, classic Mac OS, and Unix and its kin; as well as web browsers (a few browsers such as Lynx and the Line Mode Browser produce only plain text for display) and other e-text readers. Plain text files are almost universal in programming; a source code file containing instructions in a programming language is almost always a plain text file. Plain text is also commonly used for configuration files, which are read for saved settings at the startup of a program. Plain text is used for much e-mail. A comment, a ".txt" file, or a TXT Record generally contains only plain text (without formatting) intended for humans to read. ==Encoding== ===Character encodings=== Before the early 1960s, computers were mainly used for number-crunching rather than for text, and memory was extremely expensive. Computers often allocated only 6 bits for each character, permitting only 64 characters—assigning codes for A-Z, a-z, and 0-9 would leave only 2 codes: nowhere near enough. Most computers opted not to support lower-case letters. Thus, early text projects such as Roberto Busa's Index Thomisticus, the Brown Corpus, and others had to resort to conventions such as keying an asterisk preceding letters actually intended to be upper-case. Fred Brooks of IBM argued strongly for going to 8-bit bytes, because someday people might want to process text, and won. Although IBM used EBCDIC, most text from then on came to be encoded in ASCII, using values from 0 to 31 for (non-printing) control characters, and values from 32 to 127 for graphic characters such as letters, digits, and punctuation. Most machines stored characters in 8 bits rather than 7, ignoring the remaining bit or using it as a checksum. When a document is received without any explicit indication of the character encoding, some applications use charset detection to attempt to guess what encoding was used. ==See also== Binary data Binary file Binary protocol Source code Text file Text-based protocol Line wrap and word wrap ==References==

References

  1. CS:2630 Notes, Chapter 2 · retrieved 2026-11-17 · rev 1374586906
    Cite this reference

    MLA "CS:2630 Notes, Chapter 2." Jones, David W. 2026-11-17. https://homepage.cs.uiowa.edu/~dwjones/assem/notes/02data.shtml. Accessed 24 November 2026.

    Chicago "CS:2630 Notes, Chapter 2." Jones, David W. 2026-11-17. https://homepage.cs.uiowa.edu/~dwjones/assem/notes/02data.shtml.

    APA Jones, David W. (2026). CS:2630 Notes, Chapter 2. Retrieved November 24, 2026, from https://homepage.cs.uiowa.edu/~dwjones/assem/notes/02data.shtml

  2. Brown Corpus Manual · retrieved 2026-11-17 · rev 1374586906
    Cite this reference

    MLA "Brown Corpus Manual." Francis, W. 2026-11-17. https://icame.info/icame_static/manuals/BROWN/INDEX.HTM. Accessed 24 November 2026.

    Chicago "Brown Corpus Manual." Francis, W. 2026-11-17. https://icame.info/icame_static/manuals/BROWN/INDEX.HTM.

    APA Francis, W. (2026). Brown Corpus Manual. Retrieved November 24, 2026, from https://icame.info/icame_static/manuals/BROWN/INDEX.HTM

  3. The Unicode Standard, version 14.0 · retrieved 2026-11-17 · rev 1374586906
    Cite this reference

    MLA "The Unicode Standard, version 14.0." "The Unicode Standard, version 14. 2026-11-17. https://www.unicode.org/versions/Unicode14.0.0/UnicodeStandard-14.0.pdf. Accessed 24 November 2026.

    Chicago "The Unicode Standard, version 14.0." "The Unicode Standard, version 14. 2026-11-17. https://www.unicode.org/versions/Unicode14.0.0/UnicodeStandard-14.0.pdf.

    APA "The Unicode Standard, version 14. (2026). The Unicode Standard, version 14.0. Retrieved November 24, 2026, from https://www.unicode.org/versions/Unicode14.0.0/UnicodeStandard-14.0.pdf

Cite this article

MLA

"Plain text." encyclopegia.org, 2026, https://encyclopegia.org/wiki/plain-text. Accessed 24 November 2026.

Chicago

"Plain text." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/plain-text.

APA

encyclopegia.org. (2026). Plain text. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/plain-text

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Chengdu Plain

stub · references available

North China Plain

stub · references available

Lelantine Plain

stub · references available

North German Plain

stub · references available

religious text

stub · references available

West Siberian Plain

stub · references available

Saint-Barthélemy-le-Plain

stub · references available

text

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1374586906 · 0.5 · snapshot enwiki-001374586906

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.