# ASCII Character Codes

This list is helpful with the Asc and Chr functions. Taken from ASCII Character Set

Control Characters (mostly non-printing; most useful of these are highlighted in yellow.)

Char... | Dec | Hex | Description
--- | --- | --- | ---
NUL | 0 | 00 | Null character
SOH | 1 | 01 | Start of heading, = console interrupt
STX | 2 | 02 | Start of text, maintenance mode on HP console
ETX | 3 | 03 | End of text
EOT | 4 | 04 | End of transmission, not the same as ETB
ENQ | 5 | 05 | Enquiry, goes with ACK; old HP flow control
ACK | 6 | 06 | Acknowledge, clears ENQ logon hand
BEL | 7 | 07 | Bell, rings the bell... (Plays Windows' default beep)
BS | 8 | 08 | Backspace, works on HP terminals/computers
HT | 9 | 09 | Horizontal tab, move to next tab stop
LF | 10 | 0a | Line Feed
VT | 11 | 0b | Vertical tab
FF | 12 | 0c | Form Feed, page eject
CR | 13 | 0d | Carriage Return
SO | 14 | 0e | Shift Out, alternate character set
SI | 15 | 0f | Shift In, resume default character set
DLE | 16 | 10 | Data link escape
DC1 | 17 | 11 | XON, with XOFF to pause listings; ":okay to send".
DC2 | 18 | 12 | Device control 2, block-mode flow control
DC3 | 19 | 13 | XOFF, with XON is TERM=18 flow control
DC4 | 20 | 14 | Device control 4
NAK | 21 | 15 | Negative acknowledge
SYN | 22 | 16 | Synchronous idle
ETB | 23 | 17 | End transmission block, not the same as EOT
CAN | 24 | 18 | Cancel line, MPE echoes !!!
EM | 25 | 19 | End of medium, Control-Y interrupt
SUB | 26 | 1a | Substitute
ESC | 27 | 1b | Escape, next character is not echoed
FS | 28 | 1c | File separator
GS | 29 | 1d | Group separator
RS | 30 | 1e | Record separator, block-mode terminator
US | 31 | 1f | Unit separator

Printing Characters (standard characters)

Char | Dec | Hex | Description
--- | --- | --- | ---
| 32 | 20 | Space
! | 33 | 21 | Exclamation mark
" | 34 | 22 | Quotation mark (&quot; in HTML)
# | 35 | 23 | Cross hatch (number sign)
$ | 36 | 24 | Dollar sign
% | 37 | 25 | Percent sign
& | 38 | 26 | Ampersand
` | 39 | 27 | Closing single quote (apostrophe)
( | 40 | 28 | Opening parentheses
) | 41 | 29 | Closing parentheses
* | 42 | 2a | Asterisk (star, multiply)
+ | 43 | 2b | Plus
, | 44 | 2c | Comma
- | 45 | 2d | Hyphen, dash, minus
. | 46 | 2e | Period
/ | 47 | 2f | Slant (forward slash, divide)
0 | 48 | 30 | Zero
1 | 49 | 31 | One
2 | 50 | 32 | Two
3 | 51 | 33 | Three
4 | 52 | 34 | Four
5 | 53 | 35 | Five
6 | 54 | 36 | Six
7 | 55 | 37 | Seven
8 | 56 | 38 | Eight
9 | 57 | 39 | Nine
: | 58 | 3a | Colon
; | 59 | 3b | Semicolon
< | 60 | 3c | Less than sign
= | 61 | 3d | Equals sign
> | 62 | 3e | Greater than sign
? | 63 | 3f | Question mark
@ | 64 | 40 | At-sign
A | 65 | 41 | Uppercase A
B | 66 | 42 | Uppercase B
C | 67 | 43 | Uppercase C
D | 68 | 44 | Uppercase D
E | 69 | 45 | Uppercase E
F | 70 | 46 | Uppercase F
G | 71 | 47 | Uppercase G
H | 72 | 48 | Uppercase H
I | 73 | 49 | Uppercase I
J | 74 | 4a | Uppercase J
K | 75 | 4b | Uppercase K
L | 76 | 4c | Uppercase L
M | 77 | 4d | Uppercase M
N | 78 | 4e | Uppercase N
O | 79 | 4f | Uppercase O
P | 80 | 50 | Uppercase P
Q | 81 | 51 | Uppercase Q
R | 82 | 52 | Uppercase R
S | 83 | 53 | Uppercase S
T | 84 | 54 | Uppercase T
U | 85 | 55 | Uppercase U
V | 86 | 56 | Uppercase V
W | 87 | 57 | Uppercase W
X | 88 | 58 | Uppercase X
Y | 89 | 59 | Uppercase Y
Z | 90 | 5a | Uppercase Z
[ | 91 | 5b | Opening square bracket
\ | 92 | 5c | Reverse slant (Backslash)
] | 93 | 5d | Closing square bracket
^ | 94 | 5e | Caret (Circumflex)
_ | 95 | 5f | Underscore
` | 96 | 60 | Opening single quote
a | 97 | 61 | Lowercase a
b | 98 | 62 | Lowercase b
c | 99 | 63 | Lowercase c
d | 100 | 64 | Lowercase d
e | 101 | 65 | Lowercase e
f | 102 | 66 | Lowercase f
g | 103 | 67 | Lowercase g
h | 104 | 68 | Lowercase h
i | 105 | 69 | Lowercase i
j | 106 | 6a | Lowercase j
k | 107 | 6b | Lowercase k
l | 108 | 6c | Lowercase l
m | 109 | 6d | Lowercase m
n | 110 | 6e | Lowercase n
o | 111 | 6f | Lowercase o
p | 112 | 70 | Lowercase p
q | 113 | 71 | Lowercase q
r | 114 | 72 | Lowercase r
s | 115 | 73 | Lowercase s
t | 116 | 74 | Lowercase t
u | 117 | 75 | Lowercase u
v | 118 | 76 | Lowercase v
w | 119 | 77 | Lowercase w
x | 120 | 78 | Lowercase x
y | 121 | 79 | Lowercase y
z | 122 | 7a | Lowercase z
{ | 123 | 7b | Opening curly brace
| | 124 | 7c | Vertical line
} | 125 | 7d | Closing curly brace
~ | 126 | 7e | Tilde (approximate)
| 127 | 7f | Delete (rubout), cross-hatch box

Extended Character Set (ANSI)

Char | Dec | Hex | Description
--- | --- | --- | ---
€ | 128 | 80 |
| 129 | 81 | Note: does not display in this compiled html help file
‚ | 130 | 82 |
ƒ | 131 | 83 |
„ | 132 | 84 |
… | 133 | 85 |
† | 134 | 86 |
‡ | 135 | 87 |
ˆ | 136 | 88 |
‰ | 137 | 89 |
Š | 138 | 8A |
‹ | 139 | 8B |
Œ | 140 | 8C |
| 141 | 8D | Note: does not display in this compiled html help file
Ž | 142 | 8E |
| 143 | 8F | Note: does not display in this compiled html help file
� | 144 | 90 | Note: does not display in this compiled html help file
‘ | 145 | 91 |
’ | 146 | 92 |
“ | 147 | 93 |
” | 148 | 94 |
• | 149 | 95 |
– | 150 | 96 |
— | 151 | 97 |
˜ | 152 | 98 |
™ | 153 | 99 |
š | 154 | 9A |
› | 155 | 9B |
œ | 156 | 9C |
| 157 | 9D | Note: does not display in this compiled html help file
ž | 158 | 9E |
Ÿ | 159 | 9F |
| 160 | A0 |
¡ | 161 | A1 |
¢ | 162 | A2 |
£ | 163 | A3 |
¤ | 164 | A4 |
¥ | 165 | A5 |
¦ | 166 | A6 |
§ | 167 | A7 |
¨ | 168 | A8 |
© | 169 | A9 |
ª | 170 | AA |
« | 171 | AB |
¬ | 172 | AC |
| 173 | AD | Note: may not display in this compiled html help file
® | 174 | AE |
¯ | 175 | AF |
° | 176 | B0 |
± | 177 | B1 |
² | 178 | B2 |
³ | 179 | B3 |
´ | 180 | B4 |
µ | 181 | B5 |
¶ | 182 | B6 |
· | 183 | B7 |
¸ | 184 | B8 |
¹ | 185 | B9 |
º | 186 | BA |
» | 187 | BB |
¼ | 188 | BC |
½ | 189 | BD |
¾ | 190 | BE |
¿ | 191 | BF |
À | 192 | C0 |
Á | 193 | C1 |
Â | 194 | C2 |
Ã | 195 | C3 |
Ä | 196 | C4 |
Å | 197 | C5 |
Æ | 198 | C6 |
Ç | 199 | C7 |
È | 200 | C8 |
É | 201 | C9 |
Ê | 202 | CA |
Ë | 203 | CB |
Ì | 204 | CC |
Í | 205 | CD |
Î | 206 | CE |
Ï | 207 | CF |
Ð | 208 | D0 |
Ñ | 209 | D1 |
Ò | 210 | D2 |
Ó | 211 | D3 |
Ô | 212 | D4 |
Õ | 213 | D5 |
Ö | 214 | D6 |
× | 215 | D7 |
Ø | 216 | D8 |
Ù | 217 | D9 |
Ú | 218 | DA |
Û | 219 | DB |
Ü | 220 | DC |
Ý | 221 | DD |
Þ | 222 | DE |
ß | 223 | DF |
à | 224 | E0 |
á | 225 | E1 |
â | 226 | E2 |
ã | 227 | E3 |
ä | 228 | E4 |
å | 229 | E5 |
æ | 230 | E6 |
ç | 231 | E7 |
è | 232 | E8 |
é | 233 | E9 |
ê | 234 | EA |
ë | 235 | EB |
ì | 236 | EC |
í | 237 | ED |
î | 238 | EE |
ï | 239 | EF |
ð | 240 | F0 |
ñ | 241 | F1 |
ò | 242 | F2 |
ó | 243 | F3 |
ô | 244 | F4 |
õ | 245 | F5 |
ö | 246 | F6 |
÷ | 247 | F7 |
ø | 248 | F8 |
ù | 249 | F9 |
ú | 250 | FA |
û | 251 | FB |
ü | 252 | FC |
ý | 253 | FD |
þ | 254 | FE |
ÿ | 255 | FF |