What is ASCII Code? ASCII Code Table & Alphabets Explained (2025 Guide)
In this article, we will discuss what is ASCII code, as well as take a closer look at the ASCII code table, but I will also provide the ASCII code for alphabets for your knowledge in programming or projects in real life.
Table Of Content
- What is ASCII Code?
- ASCII Code Table (0β127)
- ASCII Code for Alphabets
- Why Do We Use ASCII Code?
- ASCII in Real-Life Programming
- Example 1: ASCII in Python
- Example 2: ASCII in Java
- ASCII vs Unicode
- Extended ASCII (128β255)
- ASCII Code Table Download
- Fun Facts about ASCII
- β Conclusion: Why Learn ASCII Today?
- Related Reads
Have you ever thought about how your computer knows what letter you just typed on your keyboard? This would not be possible without ASCII code. ASCII, which stands for American Standard Code for Information Interchange, is one of the most significant systems in the history of computer science. Without ASCII code, computers would not be able to represent letters, numbers, or even the symbols we use, such as @, #, & etc.
What is ASCII Code?
ASCII code is a character encoding standard which is used for representing text in computers, communication equipment, and other devices that use text. Each character which is a letter, number, punctuation mark, or special symbol are given a number value or code such as 0 to 127.

For example:
- A β ASCII code 65
- B β ASCII code 66
- a β ASCII code 97
- 1 β ASCII code 49
- Space β ASCII code 32
Essentially, ASCII translates characters into binary so computers can process them.
β Key point: ASCII was first developed in the 1960s and is still used today, even though Unicode is now more common.
ASCII Code Table (0β127)

The ASCII code table is the heart of this system. It maps characters to numbers so machines and humans can both understand.
Hereβs a simplified ASCII code table for quick reference:
|
Decimal |
Character | Binary | Hex |
|
32 |
(Space) | 00100000 | 20 |
|
48 |
0 | 00110000 | 30 |
|
49 |
1 | 00110001 | 31 |
| 65 | A | 01000001 |
41 |
| 66 | B | 01000010 |
42 |
| 97 | a | 01100001 |
61 |
| 98 | b | 01100010 |
62 |
π The full ASCII code table includes numbers (0β9), uppercase letters (AβZ), lowercase letters (aβz), punctuation, and control characters like Enter or Tab.
ASCII Code for Alphabets
When people search for ASCII code for alphabets, they usually want the mapping for AβZ and aβz. Here it is:
Uppercase Letters (AβZ):
- A = 65
- B = 66
- C = 67
- β¦
- Z = 90
Lowercase Letters (aβz):
- a = 97
- b = 98
- c = 99
- β¦
- z = 122
β Pro tip: Notice how lowercase letters are 32 values higher than their uppercase counterparts.
Why Do We Use ASCII Code?
You may wonder: since Unicode exists, what is the value of ASCII in 2025?
Hereβs how:
- To Be Simple β ASCII is very lightweight and easy to use.
- To Support Legacy Systems β Older computers, programming languages and protocols, still rely on ASCII.
- To Be Universally Supported β All programming languages whether current or old, support ASCII.
- To Save Memory β ASCII only requires 7 bits, while larger encodings require much more memory space.
ASCII in Real-Life Programming
Letβs see some real-world coding examples with ASCII.

Example 1: ASCII in Python
# Convert character to ASCII
print(ord('A')) # Output: 65
# Convert ASCII to character
print(chr(66)) # Output: B
Example 2: ASCII in Java
public class ASCIIExample {
public static void main(String[] args) {
char ch = 'a';
int ascii = (int) ch;
System.out.println("ASCII of " + ch + " = " + ascii);
}
}
π These examples show how developers use ASCII in string manipulation, encryption, and data handling.
ASCII vs Unicode

A common follow-up question afterΒ βwhat is ASCII code,β might be, how is ASCII different from Unicode?
- ASCII β 7 bits, 128 characters only
- Unicode β Up to 32 bits, 1.1 + million characters (includes emojis, Chinese, Arabic, etc.)
π‘ To sum it up: ASCII is, Unicode is the global version.
Extended ASCII (128β255)
The original ASCII had only 128 characters, and later 8 bit Texadt ASCII (Extended ASCII), was introduced in 1987 with 256 values to accommodate additional symbols, like Γ©, Γ§ and box-drawing types of characters.
ASCII Code Table Download
You can study or utilize ASCII in your programming projects as a full ASCII code table to download as PDF or image. This is particularly useful for students and developers.
Fun Facts about ASCII
- ASCII was published in 1963.
- The first 32 values (0β31) are control characters (not printable).
- ASCII was first developed for telegraphs.
- The ASCII smiley face π was the first precursor to emoji
β Conclusion: Why Learn ASCII Today?
Now you know what is ASCII code, how the ASCII code table works, and the ASCII code for alphabets.
Even though Unicode is the modern standard, ASCII is still the backbone of text processing, programming, and computer history. Whether youβre a beginner in coding or a seasoned developer, understanding ASCII will give you a deeper appreciation of how computers interpret text.
π Next time you type your name or write code, rememberβit all comes down to ASCII values behind the scenes.

