ASCII Code

What is a ASCII Code

 ASCII Code – ASCII is an acronym for American Standard Code for Information Interchange. It is a code that uses numbers to represent characters. Each letter is assigned a number between 0 and 127. A upper and lower case character are assigned different numbers.

For example the character A is assigned the decimal number 65, while a is assigned decimal 97 as shown below int the ASCII table.

The ASCII code predates the Internet and has been around since the days of teletypes and mechanical printers. ASCII decimal numbers from 0 to 31 represent control codes that are not used that much these days. However if you are playing with communications protocols you will see these control codes in use. The ASCII Control Codes table explains what each of these control codes are.

ASCII TABLE 

Dec Hex Binary HTML Char Description
0 00 00000000 � NUL Null
1 01 00000001  SOH Start of Header
2 02 00000010  STX Start of Text
3 03 00000011  ETX End of Text
4 04 00000100  EOT End of Transmission
5 05 00000101  ENQ Enquiry
6 06 00000110  ACK Acknowledge
7 07 00000111  BEL Bell
8 08 00001000  BS Backspace
9 09 00001001 	 HT Horizontal Tab
10 0A 00001010 
 LF Line Feed
11 0B 00001011  VT Vertical Tab
12 0C 00001100  FF Form Feed
13 0D 00001101 
 CR Carriage Return
14 0E 00001110  SO Shift Out
15 0F 00001111  SI Shift In
16 10 00010000  DLE Data Link Escape
17 11 00010001  DC1 Device Control 1
18 12 00010010  DC2 Device Control 2
19 13 00010011  DC3 Device Control 3
20 14 00010100  DC4 Device Control 4
21 15 00010101  NAK Negative Acknowledge
22 16 00010110  SYN Synchronize
23 17 00010111  ETB End of Transmission Block
24 18 00011000  CAN Cancel
25 19 00011001  EM End of Medium
26 1A 00011010  SUB Substitute
27 1B 00011011  ESC Escape
28 1C 00011100  FS File Separator
29 1D 00011101  GS Group Separator
30 1E 00011110  RS Record Separator
31 1F 00011111  US Unit Separator
32 20 00100000   space Space

Comments are closed.