handmade.network » Wiki » ASCII Characters

Control Codes

There are 32 control codes in ASCII, but many of them are not used any more. Notable codes have been marked with an asterisk.

NULL                0x00   0 *
Start of heading    0x01   1
Start of text       0x02   2
End of text         0x03   3
End of transmission 0x04   4
Enquiry             0x05   5
Acknowledge         0x06   6
Alert/bell          0x07   7
Backspace           0x08   8
Tab                 0x09   9 *
Newline             0x0A  10 *
Vertical tab        0x0B  11
New page            0x0C  12
Carriage return     0x0D  13 *
Shift out           0x0E  14
Shift in            0x0F  15
Data link escape    0x10  16
Device ctrl 1       0x11  17
Device ctrl 2       0x12  18
Device ctrl 3       0x13  19
Device ctrl 4       0x14  20
Negative ack        0x15  21
Synchronous idle    0x16  22
End of block        0x17  23
Cancel              0x18  24
End of medium       0x19  25
Substitute          0x1A  26
Escape              0x1B  27 *
File separator      0x1C  28
Group separator     0x1D  29
Record seperator    0x1E  30
Unit separator      0x1F  31

Actual Characters

Space  0x20   32         P      0x50   80
!      0x21   33         Q      0x51   81
"      0x22   34         R      0x52   82
#      0x23   35         S      0x53   83
$      0x24   36         T      0x54   84
%      0x25   37         U      0x55   85
&      0x26   38         V      0x56   86
'      0x27   39         W      0x57   87
(      0x28   40         X      0x58   88
)      0x29   41         Y      0x59   89
*      0x2A   42         Z      0x5A   90
+      0x2B   43         [      0x5B   91
,      0x2C   44         \      0x5C   92
-      0x2D   45         ]      0x5D   93
.      0x2E   46         ^      0x5E   94
/      0x2F   47         _      0x5F   95
0      0x30   48         `      0x60   96
1      0x31   49         a      0x61   97
2      0x32   50         b      0x62   98
3      0x33   51         c      0x63   99
4      0x34   52         d      0x64  100
5      0x35   53         e      0x65  101
6      0x36   54         f      0x66  102
7      0x37   55         g      0x67  103
8      0x38   56         h      0x68  104
9      0x39   57         i      0x69  105
:      0x3A   58         j      0x6A  106
;      0x3B   59         k      0x6B  107
<      0x3C   60         l      0x6C  108
=      0x3D   61         m      0x6D  109
>      0x3E   62         n      0x6E  110
?      0x3F   63         o      0x6F  111
@      0x40   64         p      0x70  112
A      0x41   65         q      0x71  113
B      0x42   66         r      0x72  114
C      0x43   67         s      0x73  115
D      0x44   68         t      0x74  116
E      0x45   69         u      0x75  117
F      0x46   70         v      0x76  118
G      0x47   71         w      0x77  119
H      0x48   72         x      0x78  120
I      0x49   73         y      0x79  121
J      0x4A   74         z      0x7A  122
K      0x4B   75         {      0x7B  123
L      0x4C   76         |      0x7C  124
M      0x4D   77         }      0x7D  125
N      0x4E   78         ~      0x7E  126
O      0x4F   79         DEL    0x7F  127