An explanation of the ASCII code table
ASCII code can be roughly divided into three parts.
The first part is: ASCII non-printing control characters
The second part is: ASCII printing characters;
The third part: extended ASCII print character keyboard commonly used ASCII code
Part I: ASCII non-printable control character descriptor
The digital 0–31 on the ASCII table are assigned to control characters that control some peripheral devices such as printers. For example, 12 represents a page Break/new page feature. This command instructs the printer to jump to the beginning of the next page. (0-31 in the ASCII code table)
Part Two: ASCII print characters
The digital 32–126 are is assigned to characters that can be found on the keyboard and appears when you view or print the document. The number 127 represents the DELETE command. (32-127 in the ASCII code table)
ASCII Code table 0-127
Bin |
Dec |
Hex |
Abbreviation/character |
Explain |
00000000 |
0 |
00 |
NUL (NULL) |
Null character |
00000001 |
1 |
01 |
SOH (start of headling) |
Title Start |
00000010 |
2 |
02 |
STX (start of text) |
Body Start |
00000011 |
3 |
03 |
ETX (end of text) |
End of body |
00000100 |
4 |
04 |
EOT (end of transmission) |
Transfer end |
00000101 |
5 |
05 |
ENQ (Enquiry) |
Request |
00000110 |
6 |
06 |
ACK (Acknowledge) |
Receive notification |
00000111 |
7 |
07 |
BEL (Bell) |
Bell |
00001000 |
8 |
08 |
BS (BACKSPACE) |
Backspace |
00001001 |
9 |
09 |
HT (Horizontal tab) |
Horizontal tab |
00001010 |
10 |
0A |
LF (NL line feeds, new line) |
Line Break key |
00001011 |
11 |
0B |
VT (Vertical tab) |
Vertical tab |
00001100 |
12 |
0C |
FF (NP form feed, new page) |
Page Change key |
00001101 |
13 |
0D |
CR (carriage return) |
Enter |
00001110 |
14 |
0E |
So (shift out) |
No switching |
00001111 |
15 |
0F |
SI (shift in) |
Enable Toggle |
00010000 |
16 |
10 |
DLE (Data link escape) |
Data Link Escape |
00010001 |
17 |
11 |
DC1 (Device control 1) |
Device Control 1 |
00010010 |
18 |
12 |
DC2 (Device Control 2) |
Device Control 2 |
00010011 |
19 |
13 |
DC3 (Device control 3) |
Device Control 3 |
00010100 |
20 |
14 |
DC4 (Device control 4) |
Device Control 4 |
00010101 |
21st |
15 |
NAK (negative acknowledge) |
Reject Receive |
00010110 |
22 |
16 |
SYN (Synchronous idle) |
Synchronize Idle |
00010111 |
23 |
17 |
ETB (end of trans. Block) |
End of transfer block |
00011000 |
24 |
18 |
CAN (Cancel) |
Cancel |
00011001 |
25 |
19 |
EM (end of Medium) |
Media interrupt |
00011010 |
26 |
1 A |
SUB (substitute) |
Bench |
00011011 |
27 |
1 b |
ESC (Escape) |
Overflow |
00011100 |
28 |
1C |
FS (File separator) |
File separator |
00011101 |
29 |
1D |
GS (Group separator) |
Grouping characters |
00011110 |
30 |
1E |
RS (Record separator) |
Record separator |
00011111 |
31 |
1F |
US (Unit separator) |
Cell separators |
00100000 |
32 |
20 |
(space) |
Space |
00100001 |
33 |
21st |
! |
|
00100010 |
34 |
22 |
" |
|
00100011 |
35 |
23 |
# |
|
00100100 |
36 |
24 |
$ |
|
00100101 |
37 |
25 |
% |
|
00100110 |
38 |
26 |
& |
|
00100111 |
39 |
27 |
‘ |
|
00101000 |
40 |
28 |
( |
|
00101001 |
41 |
29 |
) |
|
00101010 |
42 |
2 A |
* |
|
00101011 |
43 |
2 b |
+ |
|
00101100 |
44 |
2 C |
, |
|
00101101 |
45 |
The |
- |
|
00101110 |
46 |
2E |
. |
|
00101111 |
47 |
2F |
/ |
|
00110000 |
48 |
30 |
0 |
|
00110001 |
49 |
31 |
1 |
|
00110010 |
50 |
32 |
2 |
|
00110011 |
51 |
33 |
3 |
|
00110100 |
52 |
34 |
4 |
|
00110101 |
53 |
35 |
5 |
|
00110110 |
54 |
36 |
6 |
|
00110111 |
55 |
37 |
7 |
|
00111000 |
56 |
38 |
8 |
|
00111001 |
57 |
39 |
9 |
|
00111010 |
58 |
3 A |
: |
|
00111011 |
59 |
3 b |
; |
|
00111100 |
60 |
3C |
< |
|
00111101 |
61 |
3D |
= |
|
00111110 |
62 |
3E |
> |
|
00111111 |
63 |
3F |
? |
|
01000000 |
64 |
40 |
@ |
|
01000001 |
65 |
41 |
A |
|
01000010 |
66 |
42 |
B |
|
01000011 |
67 |
43 |
C |
|
01000100 |
68 |
44 |
D |
|
01000101 |
69 |
45 |
E |
|
01000110 |
70 |
46 |
F |
|
01000111 |
71 |
47 |
G |
|
01001000 |
72 |
48 |
H |
|
01001001 |
73 |
49 |
I |
|
01001010 |
74 |
4 A |
J |
|
01001011 |
75 |
4 b |
K |
|
01001100 |
76 |
4C |
L |
|
01001101 |
77 |
4D |
M |
|
01001110 |
78 |
4E |
N |
|
01001111 |
79 |
4F |
O |
|
01010000 |
80 |
50 |
P |
|
01010001 |
81 |
51 |
Q |
|
01010010 |
82 |
52 |
R |
|
01010011 |
83 |
53 |
S |
|
01010100 |
84 |
54 |
T |
|
01010101 |
85 |
55 |
U |
|
01010110 |
86 |
56 |
V |
|
01010111 |
87 |
57 |
W |
|
01011000 |
88 |
58 |
X |
|
01011001 |
89 |
59 |
Y |
|
01011010 |
90 |
5 A |
Z |
|
01011011 |
91 |
5B |
[ |
|
01011100 |
92 |
5C |
\ |
|
01011101 |
93 |
5D |
] |
|
01011110 |
94 |
5E |
^ |
|
01011111 |
95 |
5F |
_ |
|
01100000 |
96 |
60 |
` |
|
01100001 |
97 |
61 |
A |
|
01100010 |
98 |
62 |
B |
|
01100011 |
99 |
63 |
C |
|
01100100 |
100 |
64 |
D |
|
01100101 |
101 |
65 |
E |
|
01100110 |
102 |
66 |
F |
|
01100111 |
103 |
67 |
G |
|
01101000 |
104 |
68 |
H |
|
01101001 |
105 |
69 |
I |
|
01101010 |
106 |
6A |
J |
|
01101011 |
107 |
6B |
K |
|
01101100 |
108 |
6C |
L |
|
01101101 |
109 |
6D |
M |
|
01101110 |
110 |
6E |
N |
|
01101111 |
111 |
6F |
O |
|
01110000 |
112 |
70 |
P |
|
01110001 |
113 |
71 |
Q |
|
01110010 |
114 |
72 |
R |
|
01110011 |
115 |
73 |
S |
|
01110100 |
116 |
74 |
T |
|
01110101 |
117 |
75 |
U |
|
01110110 |
118 |
76 |
V |
|
01110111 |
119 |
77 |
W |
|
01111000 |
120 |
78 |
X |
|
01111001 |
121 |
79 |
Y |
|
01111010 |
122 |
7A |
Z |
|
01111011 |
123 |
7B |
{ |
|
01111100 |
124 |
7C |
| |
|
01111101 |
125 |
7D |
} |
|
01111110 |
126 |
7E |
~ |
|
01111111 |
127 |
7F |
DEL (delete) |
Delete |
Part III: extending ASCII print characters
Extended ASCII characters satisfy the need for more characters. The extended ASCII contains 128 characters already in ASCII (the digital 0–32 is displayed in), and 128 characters are added, which is a total of 256. Even with these more characters, many languages contain symbols that cannot be compressed into 256 characters. As a result, some variants of ASCII appear to encompass regional characters and symbols. For example, many software programs use ASCII tables (also known as iso8859-1) for languages in North America, Western Europe, Australia, and Africa.
Part IV: Keyboard commonly used ASCII code table
The ASCII table of some non-character keys on the keyboard is also more commonly used, such as directional keys, function keys, control keys and so on.
(Reference ASCII keyboard common key table, as below)
ESC key: Vk_escape (27)
Enter: Vk_return (13)
TAB Key: Vk_tab (9)
Caps Lock key: Vk_capital (20)
SHIFT Key: Vk_shift ($ $)
CTRL key: Vk_control (17)
ALT key: Vk_menu (18)
Space bar: Vk_space ($20/32)
BACKSPACE: Vk_back (8)
Left logo key: Vk_lwin (91)
Right logo key: Vk_lwin (92)
Right mouse shortcut key: Vk_apps (93)
INSERT Key: Vk_insert (45)
HOME Key: Vk_home (36)
Page Up:vk_prior (33)
Pagedown:vk_next (34)
END Key: Vk_end (35)
DELETE Key: Vk_delete (46)
Arrow keys (←): Vk_left (37)
Arrow keys (↑): Vk_up (38)
direction keys (→): vk_right (39)
Arrow keys (↓): Vk_down (40)
F1 key: vk_f1 (112)
F2 key: Vk_f2 (113)
F3 key: Vk_f3 (114)
F4 key: Vk_f4 (115)
F5 key: Vk_f5 (116)
F6 key: Vk_f6 (117)
F7 key: Vk_f7 (118)
F8 key: Vk_f8 (119)
F9 Key: Vk_f9 (120)
F10 Key: VK_F10 (121)
F11 Key: vk_f11 (122)
F12 key: Vk_f12 (123)
NUM LOCK key: Vk_numlock (144)
Keypad 0:VK_NUMPAD0 (96)
Keypad 1:VK_NUMPAD0 (97)
Keypad 2:VK_NUMPAD0 (98)
Keypad 3:VK_NUMPAD0 (99)
Keypad 4:vk_numpad0 (100)
Keypad 5:VK_NUMPAD0 (101)
Keypad 6:VK_NUMPAD0 (102)
Keypad 7:VK_NUMPAD0 (103)
Keypad 8:VK_NUMPAD0 (104)
Keypad 9:VK_NUMPAD0 (105)
Keypad.: Vk_decimal (110)
Numpad *: vk_multiply (106)
Keypad +: vk_multiply (107)
Numpad-: vk_subtract (109)
Numpad/: Vk_divide (111)
Pause Break key: Vk_pause (19)
Scroll Lock key: Vk_scroll (145)
Source: http://www.asciima.com/http://www.asciima.com/ascii/1.html
An explanation of the ASCII code table