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

Last Updated : 07 May, 2024

Improve

ASCII (American Standard Code for Information Interchange) is a standard character encoding used in telecommunication. The ASCII pronounced ‘ask-ee’, is strictly a seven-bit code based on the English alphabet. ASCII codes are used to represent alphanumeric data.

The code was first published as a standard in 1967. it was subsequently updated and published as ANSI X3.4-1968, then as ANSI X3.4-1977, and finally as ANSI X3.4-1986. Since it is a seven-bit code, it can at the most represent 128 characters. it currently defines 95 printable characters including 26 upper case letters (A to Z), 26 lower case letters, 10 numerals (0 to 9), and 33 special characters including mathematical symbols, punctuation marks, and space characters. They represent text in, telecommunications equipment, and devices. These include numbers, upper and lowercase English letters, functions, punctuation symbols, and some other symbols.

In total, there are 256 ASCII characters, and can be broadly divided into three categories:

  1. ASCII control characters (0-31 and 127)
  2. ASCII printable characters (32-126) (most commonly referred to)
  3. Extended ASCII characters (128-255)

What is ASCII Value?

ASCII stands for American Standard Code for Information Interchange, A character encoding standard that assigns unique numerical values to letters, digits, punctuation marks, and other symbols.

Why do we need ASCII Value representation?

In the physical world, you would use a pen and paper to write the message, and your friend would read the text directly. However, when it comes to digital communication, computers don’t understand letters and symbols the way humans do. Instead, they process information in the form of binary code, which consists of 0s and 1s. This is where ASCII values come into play.

ASCII values serve as a bridge between human-readable text and computer-readable binary code. Each character, whether it’s a letter, number, or symbol, is assigned a unique ASCII value ranging from 0 to 127. For example, the ASCII value of the uppercase letter ‘A’ is 65, while the lowercase letter ‘a’ has an ASCII value of 97. Similarly, the digit ‘0’ has an ASCII value of 48.

How Computers Use ASCII to Understand Human Text?

Suppose you want to send a text message to your friend that reads, “Hello!” When you type this message on your phone or computer, each character is converted into its corresponding ASCII value. In this case, the ASCII values for “Hello!” are 72, 101, 108, 108, 111, and 33. These numerical values are then translated into binary code, which is transmitted to your friend’s device. Upon receiving the message, their device converts the binary code back into ASCII values and finally displays the original text, “Hello!”

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

ASCII Table

The Extended ASCII Codes (character code 128-255)

The table below adheres to the Windows-1252 (CP-1252) standard, an extension of ISO 8859-1, also known as ISO Latin-1. This standard differs from IANA’s ISO-8859-1 by substituting control characters with displayable characters in the range of 128 to 159. Any characters that deviate from ISO-8859-1 are highlighted in light blue.

DECBINSymbolHTML NumberHTML NameDescription
12810000000€€Euro sign
12910000001Unused
13010000010‚‚Single low-9 quotation mark
13110000011ƒƒƒLatin small letter f with hook
13210000100„„Double low-9 quotation mark
13310000101……Horizontal ellipsis
13410000110††Dagger
13510000111‡‡Double dagger
13610001000ˆˆˆModifier letter circumflex accent
13710001001‰‰Per mille sign
13810001010ŠŠŠLatin capital letter S with caron
13910001011‹‹Single left-pointing angle quotation
14010001100ŒŒŒLatin capital ligature OE
14110001101Unused
14210001110ŽŽŽLatin capital letter Z with caron
14310001111Unused
14410010000Unused
14510010001‘‘Left single quotation mark
14610010010’’Right single quotation mark
14710010011““Left double quotation mark
14810010100””Right double quotation mark
14910010101••Bullet
15010010110––En dash
15110010111——Em dash
15210011000˜˜˜Small tilde
15310011001™™Trade mark sign
15410011010šššLatin small letter S with caron
15510011011››Single right-pointing angle quotation mark
15610011100œœœLatin small ligature oe
15710011101Unused
15810011110žžžLatin small letter z with caron
15910011111ŸŸŸLatin capital letter Y with diaeresis
16010100000NBSP  Non-breaking space
16110100001¡¡¡Inverted exclamation mark
16210100010¢¢¢Cent sign
16310100011£££Pound sign
16410100100¤¤¤Currency sign
16510100101¥¥¥Yen sign
16610100110¦¦¦Pipe, broken vertical bar
16710100111§§§Section sign
16810101000¨¨¨Spacing diaeresis – umlaut
16910101001©©©Copyright sign
17010101010ªªªFeminine ordinal indicator
17110101011«««Left double-angle quotes
17210101100¬¬¬Negation
17310101101­SHY­­Soft hyphen
17410101110®®®Registered trademark sign
17510101111¯¯¯Spacing macron – overline
17610110000°°°Degree sign
17710110001±±±Plus-or-minus sign
17810110010²²²Superscript two-squared
17910110011³³³Superscript three – cubed
18010110100´´´Acute accent – spacing acute
18110110101µµµMicro sign
18210110110¶¶Pilcrow sign – paragraph sign
18310110111···Middle dot – Georgian comma
18410111000¸¸¸Spacing cedilla
18510111001¹¹¹Superscript one
18610111010ºººMasculine ordinal indicator
18710111011»»»Right double-angle quotes
18810111100¼¼¼Fraction one quarter
18910111101½½½Fraction one half
19010111110¾¾¾Fraction three quarters
19110111111¿¿¿Inverted question mark
19211000000ÀÀÀLatin capital letter A with grave
19311000001ÁÁÁLatin capital letter A with acute
19411000010ÂÂÂLatin capital letter A with circumflex
19511000011ÃÃÃLatin capital letter A with tilde
19611000100ÄÄÄLatin capital letter A with diaeresis
19711000101ÅÅÅLatin capital letter A with ring above
19811000110ÆÆÆLatin capital letter AE
19911000111ÇÇÇLatin capital letter C with cedilla
20011001000ÈÈÈLatin capital letter E with grave
20111001001ÉÉÉLatin capital letter E with acute
20211001010ÊÊÊLatin capital letter E with circumflex
20311001011ËËËLatin capital letter E with diaeresis
20411001100ÌÌÌLatin capital letter I with grave
20511001101ÍÍÍLatin capital letter I with acute
20611001110ÎÎÎLatin capital letter I with circumflex
20711001111ÏÏÏLatin capital letter I with diaeresis
20811010000ÐÐÐLatin capital letter ETH
20911010001ÑÑÑLatin capital letter N with tilde
21011010010ÒÒÒLatin capital letter O with grave
21111010011ÓÓÓLatin capital letter O with acute
21211010100ÔÔÔLatin capital letter O with circumflex
21311010101ÕÕÕLatin capital letter O with tilde
21411010110ÖÖÖLatin capital letter O with diaeresis
21511010111×××Multiplication sign
21611011000ØØØLatin capital letter O with a slash
21711011001ÙÙÙLatin capital letter U with grave
21811011010ÚÚÚLatin capital letter U with acute
21911011011ÛÛÛLatin capital letter U with circumflex
22011011100ÜÜÜLatin capital letter U with diaeresis
22111011101ÝÝÝLatin capital letter Y with acute
22211011110ÞÞÞLatin capital letter THORN
22311011111ßßßLatin small letter sharp s – ess-zed
22411100000àààLatin small letter a with grave
22511100001áááLatin small letter a with acute
22611100010âââLatin small letter a with circumflex
22711100011ãããLatin small letter a with tilde
22811100100äääLatin small letter a with diaeresis
22911100101åååLatin small letter a with ring above
23011100110æææLatin small letter ae
23111100111çççLatin small letter c with cedilla
23211101000èèèLatin small letter e with grave
23311101001éééLatin small letter e with acute
23411101010êêêLatin small letter e with circumflex
23511101011ëëëLatin small letter e with diaeresis
23611101100ìììLatin small letter i with grave
23711101101íííLatin small letter i with acute
23811101110îîîLatin small letter i with circumflex
23911101111ïïïLatin small letter i with diaeresis
24011110000ðð&etc;Latin small letter eth
24111110001ñññLatin small letter n with tilde
24211110010òòòLatin small letter o with grave
24311110011óóóLatin small letter o with acute
24411110100ôôôLatin small letter o with circumflex
24511110101õõõLatin small letter o with tilde
24611110110öööLatin small letter o with diaeresis
24711110111÷÷÷Division sign
24811111000øøøLatin small letter o with slash
24911111001ùùùLatin small letter u with grave
25011111010úúúLatin small letter u with acute
25111111011ûûûLatin small letter u with circumflex
25211111100üüüLatin small letter u with diaeresis
25311111101ýýýLatin small letter y with acute
25411111110þþþLatin small letter thorn
25511111111ÿÿÿLatin small letter y with diaeresis

So what’s before 33 and beyond 126?

  1. ASCII values before 32 (0-31) are control characters. A character code is often used in in-band signaling as a reference point in a set of characters to avoid adding additional symbols to the text.
  2. At 32, we have space, which is included as printed characters, however, it’s not wrong to say space could also serve as a control character.
  3. At 127, we have DEL (delete), which is a control character.
  4. After 127, (128-255), we have Extended ASCII characters representing mathematical and other symbols that are not represented as keys and are not used in general.

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
ASCII bassically used to represent text in form of symbols, numbers, and characterUNICODE is used to exchange, process, and store text data in any language
ASCII is a character encoding standard that uses 7-bit binary numbers to represent charactersUNICODE is a character encoding standard that uses 16-bit binary numbers to represent characters
ASCII can only represent 128 characters.Unicode can represent over 65,000 characters from different languages and scripts.

Conclusion

To summarize, the range of ASCII values for capital letters spans from 65 to 90, while for small letters, it extends from 97 to 122. Allocated in alphabetical sequence, the values for “A” and “Z” are 65 and 90, respectively, in uppercase. Similarly, the values for “a” and “z” in lowercase are 97 and 122, respectively.

Frequently Asked Questions on ASCII Values – FAQs

What is the ASCII value of A to Z?

The Ascii Value of Capital A to Z are Assigned in alphabetical order from (65-90) , with “A” assigned the value of 65 and “Z” assigned the value of 90 for uppercase letters.

What is the ASCII value of lowercase a to z?

The Ascii Value of small a to z are also assigned in alphabetical order from (97-122) , with “a” is assigned the value of 97 and “z” is assigned the value of 122 for lowercase letters.

How can I convert ASCII values to characters?

In the context of programming, for conversion you can use Char() function in python to convert ascii value to their corresponding characters. for ex:- Char(32) gives nothing because it’s a space. but for other values it definitely gives a Character.

Can ASCII values be used to represent non-English characters?

No, ASCII values only represent a limited set of characters in the English language and cannot be used to represent non-English characters.



aashaypawar

Improve

Previous Article

What is ASCII - A Complete Guide to Generating ASCII Code

Next Article

What is the full form of ASCII?

Please Login to comment...

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

FAQs

What is the ASCII value of alphabets and numbers and special characters? ›

What is ASCII?
  • Control Characters (0–31 & 127): Control characters are not printable characters. ...
  • Special Characters (32–47 / 58–64 / 91–96 / 123–126): Special characters include all printable characters that are neither letters nor numbers. ...
  • Numbers (30–39): These numbers include the ten Arabic numerals from 0-9.
Jun 4, 2022

Do I need to memorize the ASCII table? ›

You don't have to remember the ASCII table, or if you wish, just the code points for the numbers and letters (see below). Otherwise there is a trick: With the Excel function =Char() you can easily create a standard ASCII table with 128 code points (0–127).

What are the 256 characters of ASCII? ›

These include numbers, upper and lowercase English letters, functions, punctuation symbols, and some other symbols. In total, there are 256 ASCII characters, and can be broadly divided into three categories: ASCII control characters (0-31 and 127) ASCII printable characters (32-126) (most commonly referred to)

What is the ASCII value of A to Z? ›

What is the range of ASCII values for alphabets? Ans. The range of ASCII values for uppercase letters A-Z is 65-90, and the range for lowercase letters a-z is 97-122.

What is an example of an ASCII code? ›

For example, lowercase i would be represented in the ASCII encoding by binary 1101001 = hexadecimal 69 (i is the ninth letter) = decimal 105. Despite being an American standard, ASCII does not have a code point for the cent (¢).

Is ASCII still used? ›

In internet communications, ASCII has gradually been superseded by the Unicode standard, which can be used with any language and is compatible with ASCII. However, ASCII is still used for entering text on personal computers and electronic devices.

What's the difference between Unicode and ASCII? ›

ASCII is a proper subset of Unicode, which means that Unicode includes all the characters that can be encoded in ASCII, plus many more. So, while ASCII is useful for representing characters in the English language, Unicode is capable of representing a much wider range of characters in other languages and scripts.

How to convert binary to ASCII? ›

Here's a way to convert binary numbers to ASCII characters that is often simple enough to do in your head.
  1. 1 - Convert every 4 binary digits into one hex digit. ...
  2. 2 - Split the string of hex digits into pairs. ...
  3. 3 - Convert each pair of hex digits into a decimal number. ...
  4. 4 - Convert the decimal numbers into ASCII characters.
Jul 26, 2011

What is the highest ASCII value? ›

ASCII stands for American Standard Code for Information Interchange. It ranges from 0 to 255 in Decimal or 00 to FF in Hexadecimal. ASCII codes can be divided into two sets - Standard ASCII codes and Extended ASCII codes.

How to convert to ASCII code? ›

This is what makes it so easy to convert numbers to and from ASCII. If you have the ASCII code for a number you can either subtract 30h or mask off the upper four bits and you will be left with the number itself. Likewise you can generate the ASCII code from the number by adding 30h or by ORing with 30h.

What is the ASCII coding system? ›

ASCII is an 8-bit code. That is, it uses eight bits to represent a letter or a punctuation mark. Eight bits are called a byte. A binary code with eight digits, such as 1101 10112, can be stored in one byte of computer memory.

What is the ASCII range of special characters? ›

Standard ASCII codes range from 0 to 127 in Decimal or 00 to 7F in Hexadecimal, they are mainly used for representing characters, such as characters "a" to "z" and number "0" to "9", these are called printable characters, note that code 0 to 31 (Decimal) in Standard ASCII are not printable, they are assigned for ...

What are ASCII numbers and symbols? ›

ASCII is a 7-bit character set containing 128 characters. It contains the numbers from 0-9, the upper and lower case English letters from A to Z, and some special characters. The character sets used in modern computers, in HTML, and on the Internet, are all based on ASCII.

What is the ASCII value of number? ›

ASCII, decimal, hexadecimal, octal, and binary conversion table
ASCIIDecimalOctal
04860
14961
25062
35163
94 more rows

What is letters numbers and special characters? ›

Alphanumeric characters refers to the 26-letter Latin alphabet, the numerical digits from 0-9, and sometimes special characters including @, #, and *. These characters are often used in passwords to information systems or in filenames.

Top Articles
Latest Posts
Article information

Author: Duane Harber

Last Updated:

Views: 5930

Rating: 4 / 5 (71 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Duane Harber

Birthday: 1999-10-17

Address: Apt. 404 9899 Magnolia Roads, Port Royceville, ID 78186

Phone: +186911129794335

Job: Human Hospitality Planner

Hobby: Listening to music, Orienteering, Knapping, Dance, Mountain biking, Fishing, Pottery

Introduction: My name is Duane Harber, I am a modern, clever, handsome, fair, agreeable, inexpensive, beautiful person who loves writing and wants to share my knowledge and understanding with you.