Appendix F. ASCII Table
The following is a list of ASCII codes, their official name, the console keys for those codes, and any special HTML or printf characters used to represent them.
Decimal | Octal | Hexadecimal | Name | Keyboard | HTML/ |
|---|---|---|---|---|---|
0 | 0 | 0 | NUL | Control-@ | - |
1 | 1 | 1 | SOH | Control-A | - |
2 | 2 | 2 | STX | Control-B | - |
3 | 3 | 3 | ETX | Control-C | - |
4 | 4 | 4 | EOT | Control-D | - |
5 | 5 | 5 | ENQ | Control-E | - |
6 | 6 | 6 | ACK | Control-F | - |
7 | 7 | 7 | BEL | Control-G | - |
8 | 10 | 8 | BS | Control-H |
|
9 | 11 | 9 | TAB | Control-I |
|
10 | 12 | A | LF | Control-J |
|
11 | 13 | B | VT | Control-K |
|
12 | 14 | C | FF | Control-L |
|
13 | 15 | D | CR | Control-K |
|
14 | 16 | E | SO | Control-L | - |
15 | 17 | F | SI | Control-M | - |
16 | 20 | 10 | DLE | Control-N | - |
17 | 21 | 11 | DC1 | Control-O | - |
18 | 22 | 12 | DC2 | Control-P | - |
19 | 23 | 13 | DC3 | Control-Q | - |
20 | 24 | 14 | DC4 | Control-R | - |
21 | 25 | 15 | NAK | Control-S | - |
22 | 26 | 16 | SYN | Control-T | - |
23 | 27 | 17 | ETB | Control-U | - |
24 | 30 | 18 | CAN | Control-V | - |
25 | 31 | 19 | EM | Control-W | - |
26 | 32 | 1A | SUB | Control-X | - |
27 | 33 | 1B | EASC | Control-Y | - |
28 | 34 | 1C | FS | Control-Z ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access