# American Standard Code for Information Interchange (ASCII)

> An early code that numbers 128 English letters, digits and symbols. Capital A is 65.

**Field:** Software Development  
**Category:** Files & Formats  
**Also known as:** ASCII, ASCII Code, US-ASCII

## Think of it like

Think of it like a secret code where A is 65, B is 66, and so on.

## Definition

ASCII is an early code that gives a number to each English letter, digit and symbol. It has 128 codes, from 0 to 127. Capital A is 65, and a space is 32. Some codes are not letters but signals, like a new line. ASCII only covers basic English. Unicode came later to cover every language, and its first 128 codes match ASCII.

## Example

Jack's old label printer only knows ASCII. His name prints fine, but the é in café comes out as a strange mark.

## Example code

```console
$ python3 -c "print(ord('A'), ord('a'), ord(' '))"
65 97 32
```

In ASCII, capital A is 65, small a is 97 and a space is 32.

## Why it matters

ASCII is the base of almost every text format. UTF-8 stores these 128 characters in exactly the same way.

## Common mistake

Calling any text file ASCII. If it has an accent, an emoji or a letter from another language, it is not.

## Three principles

- **128 codes.** The numbers run from 0 to 127.
- **English only.** No accents and no other alphabets.
- **Lives on in UTF-8.** The same bytes for the first 128.

## Related terms

- [Character Encoding](https://learn.benibix.com/term/development/character-encoding)
- [Unicode](https://learn.benibix.com/term/development/unicode)
- [8-bit Unicode Transformation Format (UTF-8)](https://learn.benibix.com/term/development/utf-8)
- [Plain Text File](https://learn.benibix.com/term/development/plain-text-file)
- [Binary Number System](https://learn.benibix.com/term/general/binary-number)

## Told apart from

- [ASCII vs UTF-8](https://learn.benibix.com/compare/ascii-vs-utf-8): People think every plain text file is ASCII, and it is not. ASCII has only 128 codes, for basic English letters, digits and signs. UTF-8 can store every character in every language, plus emoji. Its first 128 codes are the same as ASCII, so plain English text is both. Add one é or one emoji, and the file is UTF-8, not ASCII.

## Taught in

- [ASCII, Unicode and UTF-8](https://learn.benibix.com/learn/development-formats/ascii-unicode-and-utf-8): File Formats, 8/11

![A table of three characters. A has the code point U+0041, the UTF-8 byte 41, and is in ASCII as code 65. é has U+00E9 and the bytes C3 A9, and is not in ASCII. The euro sign has U+20AC and the bytes E2 82 AC, and is not in ASCII. Notes say Unicode picks the number, UTF-8 decides the bytes, and ASCII covers only the first 128 characters.](https://learn.benibix.com/diagrams/dev2-unicode.svg)

---

Source: https://learn.benibix.com/term/development/ascii
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
