L
LLLOS.ai
Learn
L

Ask Your Tutor · Computer Science

What is ASCII and how does it use bytes?

General knowledge Asked by Anonymous 21 Oct 2026, 6:27 PM IST Updated

In one line

ASCII is a code that uses numbers to represent letters, numbers, and symbols in computers.

ASCII — Character encoding standard
ASCII — Character encoding standard
The ASCII table, showing characters and their codes.
Image: Wikipedia

The rule

ASCII (American Standard Code for Information Interchange) is a character encoding standard that assigns a unique number to each character, using 7 bits per character.

Each ASCII character is stored in a byte (8 bits), but only the first 7 bits are used for standard ASCII.

The formula
A = 65 (in ASCII)
Acapital letter A
65its ASCII code

Let's understand it simply

Imagine you want to send a message to your friend using only numbers. You and your friend agree: 65 means 'A', 66 means 'B', 67 means 'C', and so on. This way, you can send any word using just numbers.

Computers do not understand letters, only numbers. ASCII gives every letter, digit, and symbol a number, so computers can store and send text. For example, 'A' is 65, 'B' is 66, 'a' is 97, '1' is 49, and space is 32.

How it works

  1. Each character (like 'A', 'B', '1', '@') has a unique ASCII number.
  2. The computer stores this number in binary form (only 0s and 1s).
  3. Each ASCII number fits in 7 bits (like 1000001 for 'A').
  4. Computers use 1 byte (8 bits) to store each character, so there is 1 extra bit (usually set to 0).
  5. When you type or read text, the computer converts between characters and their ASCII numbers.

The story behind it

ASCII was created in the early 1960s in the United States. Computers from different companies could not easily share text, so a standard was needed. A team led by Robert W. Bemer helped create ASCII, making it easier for computers to talk to each other using the same code for letters and symbols.

Where you see it in real life

  • Sending SMS: Each letter in your text message is stored as an ASCII number.
  • Programming: When you write code, the computer saves your letters as ASCII numbers.
  • Email: Early emails used ASCII to send messages between computers.
  • File names: Your file names (like 'notes.txt') are stored using ASCII codes.
  • Barcode scanners: Some barcodes use ASCII codes to store product information.
  • Old digital displays: Calculators and digital clocks use ASCII to show numbers and letters.

Why it matters

  • It is the basic way computers store and share text.
  • Many programming languages (like C, Python) use ASCII codes for text.
  • Knowing ASCII helps you understand how computers work inside.
  • It is the base for other codes (like Unicode, which supports more languages).

Common mistakes

  • Thinking ASCII can store all world languages: Standard ASCII only has 128 characters (English letters, numbers, and some symbols).
  • Confusing bits and bytes: ASCII uses 7 bits, but computers store each character in 1 byte (8 bits).
  • Mixing up ASCII with Unicode: Unicode is a bigger code that includes ASCII and many more characters from different languages.

Remember it

ASCII is like a secret number code for letters and symbols, using 7 bits per character.

Check yourself

What is the ASCII code for the letter 'A'?

65, because ASCII assigns 65 to 'A'.

Why does ASCII use only 7 bits but is stored in a byte?

Computers store data in bytes (8 bits), but ASCII only needs 7 bits; the extra bit is unused or set to 0.

Can ASCII store Hindi or Tamil letters? Why or why not?

No, because standard ASCII only has codes for English letters and some symbols.

Quick recap

  • ASCII is a code that gives each character a unique number.
  • It uses 7 bits for each character, stored in a byte.
  • Computers use ASCII to store and share text.
  • ASCII covers English letters, numbers, and common symbols.
Written by the LLOS.ai tutor. Asked by Anonymous on 21 Oct 2026, 6:27 PM IST