The Wayback Machine - https://web.archive.org/web/20260113113313/https://www.geeksforgeeks.org/dsa/ascii-table/

ASCII Values Alphabets ( A-Z, a-z & Special Character Table )

Last Updated : 22 Dec, 2025

ASCII (American Standard Code for Information Interchange) is a standard character encoding used in telecommunication. A character encoding standard that assigns unique numerical values to letters, digits, punctuation marks, and other symbols. ASCII codes are used to represent alphanumeric data.

Why do we need ASCII Value Representation

Computers do not understand human languages directly. They operate using binary data made up of 0s and 1s. ASCII provides a bridge between human-readable characters and machine-readable binary code by assigning a unique number to each character.

  • Each character is assigned a unique ASCII value ranging from 0 to 127.
  • Uppercase letters, lowercase letters, digits, and symbols all have different ASCII values.
  • Example: 'A' = 65, 'a' = 97, '0' = 48\

How do Computers Use ASCII to Understand Human Text

When you type a message like “Hello!”, each character is converted into its ASCII value:

  • H → 72
  • e → 101
  • l → 108
  • l → 108
  • o → 111
  • ! → 33

This process continues as follows:

  • Each ASCII value is converted into binary (0s and 1s), which is the language computers and networks understand.
  • The binary data is then transmitted digitally through communication channels such as the internet, cables, or wireless signals.
  • The receiving device decodes the binary data back into ASCII values.
  • Finally, those ASCII values are translated back into readable characters, displaying the original text exactly as it was sent.

What’s Before 33 and Beyond 126 in ASCII

ASCII characters are divided into distinct ranges, each designed for a specific purpose that is displaying text, controlling formatting, or supporting extended symbols.

Printable Characters (32–126)

  • Begin with the space character (32) and end with the tilde (~) character (126).
  • Include uppercase and lowercase letters, digits, punctuation marks, and commonly used symbols.
  • Represent the most frequently used characters in everyday text.

Control Characters (0–31 and 127)

  • Reserved for text formatting and data transmission control.
  • Not printable or visible on screen.
  • Common examples include:
    • LF (10) – Line Feed
    • CR (13) – Carriage Return
    • TAB (9) – Horizontal Tab
    • DEL (127) – Delete
  • Widely used in early telecommunication systems, terminals, and printers.

Values Beyond 127 (Extended ASCII)

  • Values from 128 to 255 are commonly referred to as Extended ASCII.
  • Extended ASCII is not a single standardized encoding.
  • Different systems (such as Windows-1252 and ISO-8859-1) assign different characters to these values.
  • This lack of standardization led to compatibility issues, which ultimately contributed to the development of Unicode.

Below are the ASCII values of Control Characters (0-31, 127)

CharacterCharacter NameASCII Code
NULLNull character00
SOHStart of header01
STXStart of text02
ETXEnd of text03
EOTEnd of transmission04
ENQEnquiry05
ACKAcknowledge06
BELBell07
BSBackspace08
HTHorizontal tab09
LFLine feed10
CharacterCharacter NameASCII Code
VTVertical tab11
FFForm feed12
CRCarriage return13
SOShift out14
SIShift in15
DLEData link escape16
DC1Device control 117
DC2Device control 218
DC3Device control 319
DC4Device control 420
NAKNegative acknowledge21
CharacterCharacter NameASCII Code
SYNSynchronous idle22
ETBEnd of trans. Block23
CANCancel24
EMEnd of medium25
SUBSubstitute26
ESCEscape27
FSFile separator28
GSGroup separator29
RSRecord separator30
USUnit separator31
DELDelete127

Difference Between ASCII and Unicode

ASCIIUnicode
Primarily used to represent English text using letters, numbers, and symbolsUsed to represent and exchange text from multiple languages worldwide
A 7-bit character encoding standardA universal character set with multiple encodings (UTF-8, UTF-16, UTF-32)
Can represent 128 characters (values 0–127)Can represent over 140,000 characters
Limited to basic charactersSupports emojis, special symbols, and scripts like Hindi, Arabic, Chinese, etc.

Brief History of ASCII

  • ASCII (American Standard Code for Information Interchange) was first introduced in 1967.
  • It was later standardized as ANSI X3.4 and updated in 1968, 1977, and 1986.
  • ASCII is a 7-bit character encoding standard.
  • Because it uses 7 bits, ASCII can represent a maximum of 128 characters (values 0–127).
  • These characters include:
    • 26 uppercase letters (A–Z) and 26 lowercase letters (a–z)
    • 10 digits (0–9)
    • Punctuation and special symbols
    • Control characters used for formatting and communication
  • ASCII played a key role in the development of early computers and telecommunication systems.
  • It remains important today because many modern encoding systems, including Unicode, are backward compatible with ASCII.
Comment