# Text File

*noun*

say it: **“TEKST fyl”** **/tɛkst faɪl/**

A file that holds only plain characters (letters, numbers, spaces and punctuation) with no hidden formatting, so any editor or terminal command can read it.

## What is a **text file**?

A **text file** holds plain characters: letters, numbers, spaces and punctuation, with no hidden formatting. Any editor, and terminal commands such as `cat`, can read one. Notes, README files, settings files and code are text files; a photo or a program isn't.

```bash
file README.md
# README.md: ASCII text
```

## In a sentence

- “Notepad opened the settings because they're a **text file**, but the photo came out as gibberish.”
- “The recipe is saved as a **text file**, so cat prints it straight to the screen.”

Level: Novice · [More Operating System terms at this level](https://www.ask-codey.com/glossary?category=operating-system&level=1)

Updated: November 10, 2026

Source: https://www.ask-codey.com/glossary/text-file
