1  What Is Plain Text?

“Everything should be made as simple as possible, but not simpler.” — Often attributed to Albert Einstein

Almost everyone uses plain text every day, yet few people stop to ask what it really is.

When you write a shopping list in a text editor, send an email, type a command into a terminal, write source code, create a Markdown document, or edit a configuration file, you are working with plain text. It is one of the oldest forms of digital information, and despite decades of technological change, it remains one of the most important.

Plain text is so fundamental that the modern Internet, software development, scientific publishing, operating systems, artificial intelligence, and digital preservation all depend upon it.

This chapter introduces the concept of plain text, explains what distinguishes it from formatted documents, and explores why this deceptively simple technology has endured for more than half a century.

1.1 Defining Plain Text

Plain text is information represented solely as a sequence of characters.

These characters include:

  • letters
  • numbers
  • punctuation marks
  • whitespace (spaces, tabs, and line breaks)
  • other symbols defined by a character encoding

Plain text contains no information about how the text should look. It does not specify fonts, colors, margins, images, page layouts, or text styles such as bold or italics. It records only the characters themselves.

If a file contains the sentence

The quick brown fox jumps over the lazy dog.

then the file simply stores those characters in sequence. Whether the sentence is displayed in Times New Roman, Helvetica, Consolas, or any other font is entirely up to the software viewing it.

This separation between content and presentation is one of the defining characteristics of plain text.

1.2 Characters, Not Appearance

Many people think of a document primarily in terms of how it looks.

A word processor encourages this way of thinking. While writing, you choose:

  • fonts
  • font sizes
  • colors
  • headings
  • margins
  • spacing
  • page numbers
  • images

The document becomes both content and design at the same time.

Plain text takes a different approach.

Instead of recording appearance, it records meaning through characters alone.

For example, the following two sentences are identical as plain text:

Chapter One

Whether displayed in:

  • 12-point Courier
  • 18-point Garamond
  • bold Helvetica
  • black text
  • blue text

the underlying plain text remains exactly the same.

The computer stores only the characters:

C h a p t e r   O n e

Everything else is presentation added later.

1.3 Plain Text Versus Rich Text

To appreciate plain text, it helps to compare it with formatted documents.

Suppose you write a report in a word processor.

The file may contain:

  • multiple fonts
  • headings
  • page layouts
  • tables
  • embedded images
  • colors
  • hyperlinks
  • revision history
  • comments
  • metadata
  • printer settings

Most of the file is not actually your writing.

Instead, much of it consists of instructions describing how the writing should appear.

Plain text files contain none of these extras.

Only the characters themselves are stored.

That simplicity makes plain text remarkably durable.

1.4 The Simplicity of Plain Text

Imagine writing a letter on a typewriter.

The page contains nothing more than letters arranged in order.

That typed page resembles plain text more closely than a modern word-processing document.

Plain text files are similarly uncomplicated.

They contain only character data arranged sequentially.

Because of this simplicity, almost any computer system can read them.

Whether the machine runs Linux, Windows, macOS, BSD, Android, or another operating system, plain text remains one of the few universally understood formats.

1.5 Invisible Structure

Although plain text has no formatting, it does have structure.

Consider this small shopping list:

Milk
Bread
Tea
Sugar

The blank spaces and line breaks are meaningful.

Similarly, indentation can organize information:

Projects
    Textsmith Primer
    Website
    Notes

Programming languages also depend on textual structure.

Python, for example, uses indentation to define code blocks.

Markdown uses characters such as:

#
*
-
>

to represent headings, lists, and quotations.

In every case, the file remains plain text.

The symbols are ordinary characters whose meaning is interpreted by software.

1.6 Plain Text Is Human-Readable

One of plain text’s greatest strengths is that people can read it directly.

If you open a plain text file with almost any editor, you immediately see the content.

There is no decoding process hidden behind proprietary software.

This property makes plain text ideal for:

  • programming
  • documentation
  • configuration files
  • notes
  • technical writing
  • academic publishing
  • data exchange
  • long-term archiving

A document written thirty years ago in plain text can often still be read today without difficulty.

1.7 Plain Text Is Also Machine-Readable

Plain text is not only easy for humans to read.

Computers also find it remarkably easy to process.

A machine can:

  • search it
  • sort it
  • compare it
  • compress it
  • index it
  • analyze it
  • transform it

Because the information consists of characters arranged in sequence, software can manipulate it efficiently without first understanding fonts, layouts, or graphics.

This property explains why so many command-line tools operate on text.

It also explains why programmers often describe plain text as the universal interface between programs.

1.8 Plain Text Is Everywhere

Many technologies that appear unrelated are actually built upon plain text.

Examples include:

  • source code
  • Markdown documents
  • HTML pages
  • XML
  • YAML
  • JSON
  • CSV files
  • configuration files
  • shell scripts
  • SQL queries
  • email messages
  • log files

Even many sophisticated publishing systems begin life as plain text before being transformed into beautifully formatted books, websites, PDFs, or presentations.

1.9 Common Misconceptions

Several misunderstandings about plain text are worth correcting.

Plain text is not “plain looking.”

A beautifully designed website may originate entirely from plain text files.

Plain text is not outdated.

Modern software development depends heavily upon plain text.

Cloud computing, version control systems, container technologies, and AI all rely extensively upon textual data.

Plain text is not limited to programmers.

Writers, journalists, researchers, students, archivists, publishers, and technical communicators increasingly use plain text workflows because they emphasize content over formatting.

1.10 Why This Matters

At first glance, plain text may appear primitive.

Compared with richly formatted documents, it seems almost too simple.

Yet that simplicity is precisely its greatest strength.

Plain text separates ideas from presentation.

It allows information to outlive software.

It can be searched, processed, transformed, transmitted, and preserved with remarkable ease.

It serves equally well as a medium for human communication and machine computation.

For these reasons, plain text has become one of the foundational technologies of modern computing.

As we shall discover throughout this primer, many of the tools, languages, and publishing systems that define today’s digital world are not built despite the simplicity of plain text—but because of it.

1.11 Key Ideas

  • Plain text stores characters, not appearance.
  • Presentation is separate from content.
  • Plain text is both human-readable and machine-readable.
  • It is independent of fonts, layouts, and formatting.
  • Most modern markup languages build upon plain text.
  • Plain text is one of the most portable and durable digital formats ever created.

In the next chapter, we explore a question that naturally follows: if technology changes so rapidly, why has plain text remained indispensable for more than fifty years?