ASCII Codes
ASCII Codes
ASCII Codes
Char
1 1 1 00000001 ^A (start-of-header)
8 8 10 00001000 ^H BS (backspace)
14 E 16 00001110 ^N SO
15 F 17 00001111 ¤ ^O SI
16 10 20 00010000 ^P DLE
17 11 21 00010001 ^Q DC1
18 12 22 00010010 : ^R DC2
20 14 24 00010100 ^T DC4
21 15 25 00010101 § ^U NAK
22 16 26 00010110 - ^V SYN
23 17 27 00010111 ^W ETB
25 19 31 00011001 ^Y EM
29 1D 35 00011101 ^] GS
31 1F 37 00011111 ^_ US
32 20 40 00100000 Space
33 21 41 00100001 ! !
35 23 43 00100011 # #
36 24 44 00100100 $ $
37 25 45 00100101 % %
39 27 47 00100111 , ,
40 28 50 00101000 ( (
41 29 51 00101001 ) )
42 2A 52 00101010 * *
43 2B 53 00101011 + +
44 2C 54 00101100 , ,
45 2D 55 00101101 - -
46 2E 56 00101110 . .
47 2F 57 00101111 / /
48 30 60 00110000 0 0
49 31 61 00110001 1 1
50 32 62 00110010 2 2
51 33 63 00110011 3 3
52 34 64 00110100 4 4
53 35 65 00110101 5 5
54 36 66 00110110 6 6
55 37 67 00110111 7 7
56 38 70 00111000 8 8
57 39 71 00111001 9 9
58 3A 72 00111010 : :
59 3B 73 00111011 ; ;
61 3D 75 00111101 = =
63 3F 77 00111111 ? ?
64 40 100 01000000 @ @
65 41 101 01000001 A A
66 42 102 01000010 B B
67 43 103 01000011 C C
68 44 104 01000100 D D
69 45 105 01000101 E E
70 46 106 01000110 F F
71 47 107 01000111 G G
72 48 110 01001000 H H
73 49 111 01001001 I I
74 4A 112 01001010 J J
75 4B 113 01001011 K K
76 4C 114 01001100 L L
77 4D 115 01001101 M M
78 4E 116 01001110 N N
79 4F 117 01001111 O O
80 50 120 01010000 P P
81 51 121 01010001 Q Q
82 52 122 01010010 R R
83 53 123 01010011 S S
84 54 124 01010100 T T
85 55 125 01010101 U U
86 56 126 01010110 V V
87 57 127 01010111 W W
88 58 130 01011000 X X
89 59 131 01011001 Y Y
90 5A 132 01011010 Z Z
91 5B 133 01011011 [ [
92 5C 134 01011100 \ \
93 5D 135 01011101 ] ]
94 5E 136 01011110 ^ ^
95 5F 137 01011111 _ _
96 60 140 01100000 , ,
97 61 141 01100001 a a
98 62 142 01100010 b b
99 63 143 01100011 c c
Certain keys cannot be represented by the standard ascii codes. To represent the codes, a
two-character sequence is used. The first character is always an ASCII NUL (0). The
second character and its translations are listed in the following table. Some codes expand to
multi-keystroke characters.
If an asterisk (*) appears in the Enhance Only column, the sequence is available only on the
Enhanced Keyboards (101- and 102-key keyboards).
Enhance Decimal
59 3B 073 00111011 F1
60 3C 074 00111100 F2
61 3D 075 00111101 F3
62 3E 076 00111110 F4
63 3F 077 00111111 F5
64 40 100 01000000 F6
65 41 101 01000001 F7
66 42 102 01000010 F8
67 43 103 01000011 F9
75 4B 113 01001011 é
77 4D 115 01001101 ƒ
* 80 50 120 01010000
The following extended codes are available only with the Enhanced Keyboards (101/102-
key keyboards); the codes area available for key reassignment only under DOS V4 and
above. The keys include the six-key editing pad and the four-key cursor-control pad. To
reassign these keys, you must give the DEVICE = ANSI.SYS /X directive or the enable
extended function codes escape sequence (Esc[1q). All extended codes are prefixed by 224
decimal (E0 hex).
72 48 110 01001000 -
75 4B 113 01001011
77 4D 115 01001101 Ò
80 50 120 01010000