Terminals and Printers Handbook 1983-84

Appendix A

ASCII Codes

Both seven- and eight-bit ASCII codes are referenced here, as well as special graphics sets.

7-Bit ASCII Code

Printable Characters
Char Octal Binary
A 101 1000001
B 102 1000010
C 103 1000011
D 104 1000100
E 105 1000101
F 106 1000110
G 107 1000111
H 110 1001000
I 111 1001001
J 112 1001010
K 113 1001011
L 114 1001100
M 115 1001101
N 116 1001110
O 117 1001111
P 120 1010000
Q 121 1010001
R 122 1010010
S 123 1010011
T 124 1010100
U 125 1010101
V 126 1010110
W 127 1010111
X 130 1011000
Y 131 1011001
Z 132 1011010
Printable Characters
Char Octal Binary
a 141 1100001
b 142 1100010
c 143 1100011
d 144 1100100
e 145 1100101
f 146 1100110
g 147 1100111
h 150 1101000
i 151 1101001
j 152 1101010
k 153 1101011
l 154 1101100
m 155 1101101
n 156 1101110
o 157 1101111
p 160 1110000
q 161 1110001
r 162 1110010
s 163 1110011
t 164 1110100
u 165 1110101
v 166 1110110
w 167 1110111
x 170 1111000
y 171 1111001
z 172 1111010
Printable Characters
Char Octal Binary
SP 040 0100000
! 041 0100001
" 042 0100010
# 043 0100011
$ 044 0100100
% 045 0100101
& 046 0100110
' 047 0100111
( 050 0101000
) 051 0101001
* 052 0101010
+ 053 0101011
, 054 0101100
- 055 0101101
. 056 0101110
/ 057 0101111
0 060 0110000
1 061 0110001
2 062 0110010
3 063 0110011
4 064 0110100
5 065 0110101
6 066 0110110
7 067 0110111
8 070 0111000
9 071 0111001
: 072 0111010
; 073 0111011
< 074 0111100
= 075 0111101
> 076 0111110
? 077 0111111
@ 100 1000000
Control Characters
Char Octal Binary
NUL 000 0000000
SOH 001 0000001
STX 002 0000010
ETX 003 0000011
EOT 004 0000100
ENQ 005 0000101
ACK 006 0000110
BEL 007 0000111
BS 010 0001000
HT 011 0001001
LF 012 0001010
VT 013 0001011
FF 014 0001100
CR 015 0001101
SO 016 0001110
SI 017 0001111
DLE 020 0010000
DC1 021 0010001
DC2 022 0010010
DC3 023 0010011
DC4 024 0010100
NAK 025 0010101
SYN 026 0010110
ETB 027 0010111
CAN 030 0011000
EM 031 0011001
SUB 032 0011010
ESC 033 0011011
FS 034 0011100
GS 035 0011101
RS 036 0011110
US 037 0011111
DEL 177 1111111

Special Graphics Characters

Octal Code Graphic with US or UK set Graphic with “Special Graphics” Set
137 _ Blank
140 ` Diamond;
141 a Checkerboard (error indicator)
142 b horizontal tab
143 c form feed
144 d carriage return
145 e line feed
146 f Degree symbol
147 g Plus/minus
150 h new line
151 i vertical tab
152 j Lower-right corner
153 k Upper-right corner
154 l Upper-left corner
155 m Lower-left corner
156 n Crossing lines
157 o Horizontal line - Scan 1
160 p Horizontal line - Scan 3
161 q Horizontal line - Scan 5
162 r Horizontal line - Scan 7
163 s Horizontal line - Scan 9
164 t Left “T”
165 u Right “T”
166 v Bottom “T”
167 w Top “T”
170 x Vertical Bar
171 y Less than or equal to
172 z Greater than or equal to
173 { Pi
174 | Not equal to
175 } UK pound sign
176 ~ Centered dot
Special Characters and Line Drawing Set
Special Characters and Line Drawing Character Set B7 B6 B5 B4 B3 B2 B1 BITS 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 ROW 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 0 0 0 1 0 0 1 2 0 1 0 3 0 1 1 4 1 0 0 5 1 0 1 6 1 1 0 7 1 1 1 COLUMN (XON) (XOFF) ESC 33271B OCTALDECIMALHEX ASCII CHARACTER KEY NUL 000 111 222 333 444 ENQ 555 666 BEL 777 BS 1088 HT 1199 LF 1210A VT 1311B FF 1412C CR 1513D SO 1614E SI 1715F 201610 DC1 211711 221812 DC3 231913 242014 252115 262216 272317 CAN 302418 312519 SUB 32261A ESC 33271B 34281C 35291D 36301E 37311F SP 403220 ! 413321 " 423422 # 433523 $ 443624 % 453725 & 463826 ' 473927 ( 504028 ) 514129 * 52422A + 53432B , 54442C - 55452D . 56462E / 57472F 0 604830 1 614931 2 625032 3 635133 4 645234 5 655335 6 665436 7 675537 8 705638 9 715739 : 72583A ; 73593B < 74603C = 75613D > 76623E ? 77633F @ 1006440 A 1016541 B 1026642 C 1036743 D 1046844 E 1056945 F 1067046 G 1077147 H 1107248 I 1117349 J 112744A K 113754B L 114764C M 115774D N 116784E O 117794F P 1208050 Q 1218151 R 1228252 S 1238353 T 1248454 U 1258555 V 1268656 W 1278757 X 1308858 Y 1318959 Z 132905A [ 133915B \ 134925C ] 135935D ^ 136945E 137955F 1409660 1419761 1429862 1439963 14410064 14510165 14610266 14710367 15010468 15110569 1521066A 1531076B 1541086C 1551096D 1561106E 1571116F 16011270 16111371 16211472 16311573 16411674 16511775 16611876 16711977 17012078 17112179 1721227A 1731237B 1741247C 1751257D 1761267E DEL 1771277F (BLANK) SCAN 1 SCAN 3 SCAN 5 SCAN 7 SCAN 9
US/UK Character Set
US/UK Character Set B7 B6 B5 B4 B3 B2 B1 BITS 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 ROW 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0 0 0 0 1 0 0 1 2 0 1 0 3 0 1 1 4 1 0 0 5 1 0 1 6 1 1 0 7 1 1 1 COLUMN (XON) (XOFF) ESC 33271B OCTALDECIMALHEX ASCII CHARACTER KEY NUL 000 111 222 333 444 ENQ 555 666 BEL 777 BS 1088 HT 1199 LF 1210A VT 1311B FF 1412C CR 1513D SO 1614E SI 1715F 201610 DC1 211711 221812 DC3 231913 242014 252115 262216 272317 CAN 302418 312519 SUB 32261A ESC 33271B 34281C 35291D 36301E 37311F SP 403220 ! 413321 " 423422 433523 $ 443624 % 453725 & 463826 ' 473927 ( 504028 ) 514129 * 52422A + 53432B , 54442C - 55452D . 56462E / 57472F 0 604830 1 614931 2 625032 3 635133 4 645234 5 655335 6 665436 7 675537 8 705638 9 715739 : 72583A ; 73593B < 74603C = 75613D > 76623E ? 77633F @ 1006440 A 1016541 B 1026642 C 1036743 D 1046844 E 1056945 F 1067046 G 1077147 H 1107248 I 1117349 J 112744A K 113754B L 114764C M 115774D N 116784E O 117794F P 1208050 Q 1218151 R 1228252 S 1238353 T 1248454 U 1258555 V 1268656 W 1278757 X 1308858 Y 1318959 Z 132905A [ 133915B \ 134925C ] 135935D ^ 136945E _ 137955F ` 1409660 a 1419761 b 1429862 c 1439963 d 14410064 e 14510165 f 14610266 g 14710367 h 15010468 i 15110569 j 1521066A k 1531076B l 1541086C m 1551096D n 1561106E o 1571116F p 16011270 q 16111371 r 16211472 s 16311573 t 16411674 u 16511775 v 16611876 w 16711977 x 17012078 y 17112179 z 1721227A { 1731237B | 1741247C } 1751257D ~ 1761267E DEL 1771277F * # £ *NOTE:  DEPENDS ON THE CHARACTER SET SELECTED; U.S.=#  U.K.=£
8-Bit ASCII Code
ASCII Table ROW 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 COLUMN b8 b7 b6 b5 b4 b3 b2 b1 BITS 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 (XON) (XOFF) C0 CODES GL CODES (ASCII GRAPHICS) NUL 000 SOH 111 STX 222 ETX 333 EOT 444 ENQ 555 ACK 666 BEL 777 BS 1088 HT 1199 LF 1210A VT 1311B FF 1412C CR 1513D SO 1614E SI 1715F DLE 201610 DC1 211711 DC2 221812 DC3 231913 DC4 242014 NAK 252115 SYN 262216 ETB 272317 CAN 302418 EM 312519 SUB 32261A ESC 33271B FS 34281C GS 35291D RS 36301E US 37311F SP 403220 ! 413321 " 423422 # 433523 $ 443624 % 453725 & 463826 ' 473927 ( 504028 ) 514129 * 52422A + 53432B , 54442C - 55452D . 56462E / 57472F 0 604830 1 614931 2 625032 3 635133 4 645234 5 655335 6 665436 7 675537 8 705638 9 715739 : 72583A ; 73593B < 74603C = 75613D > 76623E ? 77633F @ 1006440 A 1016541 B 1026642 C 1036743 D 1046844 E 1056945 F 1067046 G 1077147 H 1107248 I 1117349 J 112744A K 113754B L 114764C M 115774D N 116784E O 117794F P 1208050 Q 1218151 R 1228252 S 1238353 T 1248454 U 1258555 V 1268656 W 1278757 X 1308858 Y 1318959 Z 132905A [ 133915B \ 134925C ] 135935D ^ 136945E _ 137955F ` 1409660 a 1419761 b 1429862 c 1439963 d 14410064 e 14510165 f 14610266 g 14710367 h 15010468 i 15110569 j 1521066A k 1531076B l 1541086C m 1551096D n 1561106E o 1571116F p 16011270 q 16111371 r 16211472 s 16311573 t 16411674 u 16511775 v 16611876 w 16711977 x 17012078 y 17112179 z 1721227A { 1731237B | 1741247C } 1751257D ~ 1761267E DEL 1771277F 0 0 0 0 0 1 0 0 0 1 2 0 0 1 0 3 0 0 1 1 4 0 1 0 0 5 0 1 0 1 6 0 1 1 0 7 0 1 1 1 ESC 33271B OCTALDECIMALHEX CHARACTER KEY
DEC Supplemental Graphic Set ROW 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 COLUMN b8 b7 b6 b5 b4 b3 b2 b1 BITS 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 C1 CODES GR CODES (DEC SUPPLEMENTAL GRAPHICS) 000 111 222 333 IND 444 NEL 555 SSA 666 ESA 777 HTS 1088 HTJ 1199 VTS 1210A PLD 1311B PLU 1412C RI 1513D SS2 1614E SS3 1715F DCS 201610 PU1 211711 PU2 221812 STS 231913 CCH 242014 MW 252115 SPA 262216 EPA 272317 302418 312519 32261A CSI 33271B ST 34281C OSC 35291D PM 36301E APC 37311F 403220 ¡ 413321 ¢ 423422 £ 433523 443624 ¥ 453725 463826 § 473927 ¤ 504028 © 514129 ª 52422A « 53432B 54442C 55452D 56462E 57472F ° 604830 ± 614931 ² 625032 ³ 635133 645234 µ 655335 665436 · 675537 705638 ¹ 715739 º 72583A » 73593B ¼ 74603C ½ 75613D 76623E ¿ 77633F À 1006440 Á 1016541  1026642 à 1036743 Ä 1046844 Å 1056945 Æ 1067046 Ç 1077147 È 1107248 É 1117349 Ê 112744A Ë 113754B Ì 114764C Í 115774D Î 116784E Ï 117794F 1208050 Ñ 1218151 Ò 1228252 Ó 1238353 Ô 1248454 Õ 1258555 Ö 1268656 Œ 1278757 Ø 1308858 Ù 1318959 Ú 132905A Û 133915B Ü 134925C Ÿ 135935D 136945E ß 137955F à 1409660 á 1419761 â 1429862 ã 1439963 ä 14410064 å 14510165 æ 14610266 ç 14710367 è 15010468 é 15110569 ê 1521066A ë 1531076B ì 1541086C í 1551096D î 1561106E ï 1571116F 16011270 ñ 16111371 ò 16211472 ó 16311573 ô 16411674 õ 16511775 ö 16611876 œ 16711977 ø 17012078 ù 17112179 ú 1721227A û 1731237B ü 1741247C ÿ 1751257D 1761267E 1771277F 8 1 0 0 0 9 1 0 0 1 10 1 0 1 0 11 1 0 1 1 12 1 1 0 0 13 1 1 0 1 14 1 1 1 0 15 1 1 1 1
Special Characters and Line Drawing Character Set ROW 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 COLUMN B7 B6 B5 B4 B3 B2 B1 BITS 0 0 0 0 0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 1 0 1 0 1 1 0 0 1 1 1 1 0 0 0 1 0 0 1 1 0 1 0 1 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 1 1 1 1 (XON) (XOFF) C0 CODES GL CODES (DEC SPECIAL GRAPHICS) NUL 000 SOH 111 STX 222 ETX 333 EOT 444 ENQ 555 ACK 666 BEL 777 BS 1088 HT 1199 LF 1210A VT 1311B FF 1412C CR 1513D SO 1614E SI 1715F DLE 201610 DC1 211711 DC2 221812 DC3 231913 DC4 242014 NAK 252115 SYN 262216 ETB 272317 CAN 302418 EM 312519 SUB 32261A ESC 33271B FS 34281C GS 35291D RS 36301E US 37311F SP 403220 ! 413321 " 423422 # 433523 $ 443624 % 453725 & 463826 ' 473927 ( 504028 ) 514129 * 52422A + 53432B , 54442C - 55452D . 56462E / 57472F 0 604830 1 614931 2 625032 3 635133 4 645234 5 655335 6 665436 7 675537 8 705638 9 715739 : 72583A ; 73593B < 74603C = 75613D > 76623E ? 77633F @ 1006440 A 1016541 B 1026642 C 1036743 D 1046844 E 1056945 F 1067046 G 1077147 H 1107248 I 1117349 J 112744A K 113754B L 114764C M 115774D N 116784E O 117794F P 1208050 Q 1218151 R 1228252 S 1238353 T 1248454 U 1258555 V 1268656 W 1278757 X 1308858 Y 1318959 Z 132905A [ 133915B \ 134925C ] 135935D ^ 136945E 137955F 1409660 1419761 1429862 1439963 14410064 14510165 14610266 14710367 15010468 15110569 1521066A 1531076B 1541086C 1551096D 1561106E 1571116F 16011270 16111371 16211472 16311573 16411674 16511775 16611876 16711977 17012078 17112179 1721227A 1731237B 1741247C 1751257D 1761267E DEL 1771277F (BLANK) SCAN 1 SCAN 3 SCAN 5 SCAN 7 SCAN 9 0 0 0 0 1 0 0 1 2 0 1 0 3 0 1 1 4 1 0 0 5 1 0 1 6 1 1 0 7 1 1 1 ESC 33271B OCTALDECIMALHEX CHARACTER KEY