Last Updated : 07 May, 2024
Comments
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:
- ASCII control characters (0-31 and 127)
- ASCII printable characters (32-126) (most commonly referred to)
- 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 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.
DEC | BIN | Symbol | HTML Number | HTML Name | Description |
---|---|---|---|---|---|
128 | 10000000 | € | € | € | Euro sign |
129 | 10000001 | Unused | |||
130 | 10000010 | ‚ | ‚ | ‚ | Single low-9 quotation mark |
131 | 10000011 | ƒ | ƒ | ƒ | Latin small letter f with hook |
132 | 10000100 | „ | „ | „ | Double low-9 quotation mark |
133 | 10000101 | … | … | … | Horizontal ellipsis |
134 | 10000110 | † | † | † | Dagger |
135 | 10000111 | ‡ | ‡ | ‡ | Double dagger |
136 | 10001000 | ˆ | ˆ | ˆ | Modifier letter circumflex accent |
137 | 10001001 | ‰ | ‰ | ‰ | Per mille sign |
138 | 10001010 | Š | Š | Š | Latin capital letter S with caron |
139 | 10001011 | ‹ | ‹ | ‹ | Single left-pointing angle quotation |
140 | 10001100 | Œ | Œ | Œ | Latin capital ligature OE |
141 | 10001101 | Unused | |||
142 | 10001110 | Ž | Ž | Ž | Latin capital letter Z with caron |
143 | 10001111 | Unused | |||
144 | 10010000 | Unused | |||
145 | 10010001 | ‘ | ‘ | ‘ | Left single quotation mark |
146 | 10010010 | ’ | ’ | ’ | Right single quotation mark |
147 | 10010011 | “ | “ | “ | Left double quotation mark |
148 | 10010100 | ” | ” | ” | Right double quotation mark |
149 | 10010101 | • | • | • | Bullet |
150 | 10010110 | – | – | – | En dash |
151 | 10010111 | — | — | — | Em dash |
152 | 10011000 | ˜ | ˜ | ˜ | Small tilde |
153 | 10011001 | ™ | ™ | ™ | Trade mark sign |
154 | 10011010 | š | š | š | Latin small letter S with caron |
155 | 10011011 | › | › | › | Single right-pointing angle quotation mark |
156 | 10011100 | œ | œ | œ | Latin small ligature oe |
157 | 10011101 | Unused | |||
158 | 10011110 | ž | ž | ž | Latin small letter z with caron |
159 | 10011111 | Ÿ | Ÿ | Ÿ | Latin capital letter Y with diaeresis |
160 | 10100000 | NBSP |   | | Non-breaking space |
161 | 10100001 | ¡ | ¡ | ¡ | Inverted exclamation mark |
162 | 10100010 | ¢ | ¢ | ¢ | Cent sign |
163 | 10100011 | £ | £ | £ | Pound sign |
164 | 10100100 | ¤ | ¤ | ¤ | Currency sign |
165 | 10100101 | ¥ | ¥ | ¥ | Yen sign |
166 | 10100110 | ¦ | ¦ | ¦ | Pipe, broken vertical bar |
167 | 10100111 | § | § | § | Section sign |
168 | 10101000 | ¨ | ¨ | ¨ | Spacing diaeresis – umlaut |
169 | 10101001 | © | © | © | Copyright sign |
170 | 10101010 | ª | ª | ª | Feminine ordinal indicator |
171 | 10101011 | « | « | « | Left double-angle quotes |
172 | 10101100 | ¬ | ¬ | ¬ | Negation |
173 | 10101101 | SHY | ­ | ­ | Soft hyphen |
174 | 10101110 | ® | ® | ® | Registered trademark sign |
175 | 10101111 | ¯ | ¯ | ¯ | Spacing macron – overline |
176 | 10110000 | ° | ° | ° | Degree sign |
177 | 10110001 | ± | ± | ± | Plus-or-minus sign |
178 | 10110010 | ² | ² | ² | Superscript two-squared |
179 | 10110011 | ³ | ³ | ³ | Superscript three – cubed |
180 | 10110100 | ´ | ´ | ´ | Acute accent – spacing acute |
181 | 10110101 | µ | µ | µ | Micro sign |
182 | 10110110 | ¶ | ¶ | ¶ | Pilcrow sign – paragraph sign |
183 | 10110111 | · | · | · | Middle dot – Georgian comma |
184 | 10111000 | ¸ | ¸ | ¸ | Spacing cedilla |
185 | 10111001 | ¹ | ¹ | ¹ | Superscript one |
186 | 10111010 | º | º | º | Masculine ordinal indicator |
187 | 10111011 | » | » | » | Right double-angle quotes |
188 | 10111100 | ¼ | ¼ | ¼ | Fraction one quarter |
189 | 10111101 | ½ | ½ | ½ | Fraction one half |
190 | 10111110 | ¾ | ¾ | ¾ | Fraction three quarters |
191 | 10111111 | ¿ | ¿ | ¿ | Inverted question mark |
192 | 11000000 | À | À | À | Latin capital letter A with grave |
193 | 11000001 | Á | Á | Á | Latin capital letter A with acute |
194 | 11000010 | Â | Â | Â | Latin capital letter A with circumflex |
195 | 11000011 | Ã | Ã | Ã | Latin capital letter A with tilde |
196 | 11000100 | Ä | Ä | Ä | Latin capital letter A with diaeresis |
197 | 11000101 | Å | Å | Å | Latin capital letter A with ring above |
198 | 11000110 | Æ | Æ | Æ | Latin capital letter AE |
199 | 11000111 | Ç | Ç | Ç | Latin capital letter C with cedilla |
200 | 11001000 | È | È | È | Latin capital letter E with grave |
201 | 11001001 | É | É | É | Latin capital letter E with acute |
202 | 11001010 | Ê | Ê | Ê | Latin capital letter E with circumflex |
203 | 11001011 | Ë | Ë | Ë | Latin capital letter E with diaeresis |
204 | 11001100 | Ì | Ì | Ì | Latin capital letter I with grave |
205 | 11001101 | Í | Í | Í | Latin capital letter I with acute |
206 | 11001110 | Î | Î | Î | Latin capital letter I with circumflex |
207 | 11001111 | Ï | Ï | Ï | Latin capital letter I with diaeresis |
208 | 11010000 | Ð | Ð | Ð | Latin capital letter ETH |
209 | 11010001 | Ñ | Ñ | Ñ | Latin capital letter N with tilde |
210 | 11010010 | Ò | Ò | Ò | Latin capital letter O with grave |
211 | 11010011 | Ó | Ó | Ó | Latin capital letter O with acute |
212 | 11010100 | Ô | Ô | Ô | Latin capital letter O with circumflex |
213 | 11010101 | Õ | Õ | Õ | Latin capital letter O with tilde |
214 | 11010110 | Ö | Ö | Ö | Latin capital letter O with diaeresis |
215 | 11010111 | × | × | × | Multiplication sign |
216 | 11011000 | Ø | Ø | Ø | Latin capital letter O with a slash |
217 | 11011001 | Ù | Ù | Ù | Latin capital letter U with grave |
218 | 11011010 | Ú | Ú | Ú | Latin capital letter U with acute |
219 | 11011011 | Û | Û | Û | Latin capital letter U with circumflex |
220 | 11011100 | Ü | Ü | Ü | Latin capital letter U with diaeresis |
221 | 11011101 | Ý | Ý | Ý | Latin capital letter Y with acute |
222 | 11011110 | Þ | Þ | Þ | Latin capital letter THORN |
223 | 11011111 | ß | ß | ß | Latin small letter sharp s – ess-zed |
224 | 11100000 | à | à | à | Latin small letter a with grave |
225 | 11100001 | á | á | á | Latin small letter a with acute |
226 | 11100010 | â | â | â | Latin small letter a with circumflex |
227 | 11100011 | ã | ã | ã | Latin small letter a with tilde |
228 | 11100100 | ä | ä | ä | Latin small letter a with diaeresis |
229 | 11100101 | å | å | å | Latin small letter a with ring above |
230 | 11100110 | æ | æ | æ | Latin small letter ae |
231 | 11100111 | ç | ç | ç | Latin small letter c with cedilla |
232 | 11101000 | è | è | è | Latin small letter e with grave |
233 | 11101001 | é | é | é | Latin small letter e with acute |
234 | 11101010 | ê | ê | ê | Latin small letter e with circumflex |
235 | 11101011 | ë | ë | ë | Latin small letter e with diaeresis |
236 | 11101100 | ì | ì | ì | Latin small letter i with grave |
237 | 11101101 | í | í | í | Latin small letter i with acute |
238 | 11101110 | î | î | î | Latin small letter i with circumflex |
239 | 11101111 | ï | ï | ï | Latin small letter i with diaeresis |
240 | 11110000 | ð | ð | &etc; | Latin small letter eth |
241 | 11110001 | ñ | ñ | ñ | Latin small letter n with tilde |
242 | 11110010 | ò | ò | ò | Latin small letter o with grave |
243 | 11110011 | ó | ó | ó | Latin small letter o with acute |
244 | 11110100 | ô | ô | ô | Latin small letter o with circumflex |
245 | 11110101 | õ | õ | õ | Latin small letter o with tilde |
246 | 11110110 | ö | ö | ö | Latin small letter o with diaeresis |
247 | 11110111 | ÷ | ÷ | ÷ | Division sign |
248 | 11111000 | ø | ø | ø | Latin small letter o with slash |
249 | 11111001 | ù | ù | ù | Latin small letter u with grave |
250 | 11111010 | ú | ú | ú | Latin small letter u with acute |
251 | 11111011 | û | û | û | Latin small letter u with circumflex |
252 | 11111100 | ü | ü | ü | Latin small letter u with diaeresis |
253 | 11111101 | ý | ý | ý | Latin small letter y with acute |
254 | 11111110 | þ | þ | þ | Latin small letter thorn |
255 | 11111111 | ÿ | ÿ | ÿ | Latin small letter y with diaeresis |
So what’s before 33 and beyond 126?
- 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.
- 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.
- At 127, we have DEL (delete), which is a control character.
- 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):
Character | Character Name | ASCII Code |
---|---|---|
NULL | Null character | 00 |
SOH | Start of header | 01 |
STX | Start of text | 02 |
ETX | End of text | 03 |
EOT | End of transmission | 04 |
ENQ | enquiry | 05 |
ACK | acknowledge | 06 |
BEL | bell | 07 |
BS | backspace | 08 |
HT | Horizontal tab | 09 |
LF | Line feed | 10 |
Character | Character Name | ASCII Code |
---|---|---|
VT | Vertical tab | 11 |
FF | Form feed | 12 |
CR | Carriage return | 13 |
SO | Shift out | 14 |
SI | Shift in | 15 |
DLE | Data link escape | 16 |
DC1 | Device control 1 | 17 |
DC2 | Device control 2 | 18 |
DC3 | Device control 3 | 19 |
DC4 | Device control 4 | 20 |
NAK | Negative acknowledge | 21 |
Character | Character Name | ASCII Code |
---|---|---|
SYN | Synchronous idle | 22 |
ETB | End of trans. Block | 23 |
CAN | Cancel | 24 |
EM | End of medium | 25 |
SUB | substitute | 26 |
ESC | escape | 27 |
FS | File separator | 28 |
GS | Group separator | 29 |
RS | Record separator | 30 |
US | Unit separator | 31 |
DEL | delete | 127 |
Difference Between ASCII and Unicode
ASCII | Unicode |
---|---|
ASCII bassically used to represent text in form of symbols, numbers, and character | UNICODE 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 characters | UNICODE 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.
Previous Article
What is ASCII - A Complete Guide to Generating ASCII Code
Next Article
What is the full form of ASCII?