ASCII Code Table
Quick reference for 7-bit ASCII (0–127) with common number bases and character meaning.
Legend
- Dec / Hex / Oct / Bin: decimal, hexadecimal, octal, binary representations
- Char: printable glyph (or placeholder for control chars)
- Caret: common terminal notation for control chars (e.g.,
^M for CR)
Control Characters (0–31) + DEL (127)
| Dec |
Hex |
Oct |
Bin |
Caret |
Name |
Description |
| 0 |
0x00 |
000 |
00000000 |
^@ |
NUL |
Null character |
| 1 |
0x01 |
001 |
00000001 |
^A |
SOH |
Start of heading |
| 2 |
0x02 |
002 |
00000010 |
^B |
STX |
Start of text |
| 3 |
0x03 |
003 |
00000011 |
^C |
ETX |
End of text |
| 4 |
0x04 |
004 |
00000100 |
^D |
EOT |
End of transmission |
| 5 |
0x05 |
005 |
00000101 |
^E |
ENQ |
Enquiry |
| 6 |
0x06 |
006 |
00000110 |
^F |
ACK |
Acknowledge |
| 7 |
0x07 |
007 |
00000111 |
^G |
BEL |
Bell / alert |
| 8 |
0x08 |
010 |
00001000 |
^H |
BS |
Backspace |
| 9 |
0x09 |
011 |
00001001 |
^I |
HT |
Horizontal tab |
| 10 |
0x0A |
012 |
00001010 |
^J |
LF |
Line feed (newline) |
| 11 |
0x0B |
013 |
00001011 |
^K |
VT |
Vertical tab |
| 12 |
0x0C |
014 |
00001100 |
^L |
FF |
Form feed |
| 13 |
0x0D |
015 |
00001101 |
^M |
CR |
Carriage return |
| 14 |
0x0E |
016 |
00001110 |
^N |
SO |
Shift out |
| 15 |
0x0F |
017 |
00001111 |
^O |
SI |
Shift in |
| 16 |
0x10 |
020 |
00010000 |
^P |
DLE |
Data link escape |
| 17 |
0x11 |
021 |
00010001 |
^Q |
DC1 |
Device control 1 (XON) |
| 18 |
0x12 |
022 |
00010010 |
^R |
DC2 |
Device control 2 |
| 19 |
0x13 |
023 |
00010011 |
^S |
DC3 |
Device control 3 (XOFF) |
| 20 |
0x14 |
024 |
00010100 |
^T |
DC4 |
Device control 4 |
| 21 |
0x15 |
025 |
00010101 |
^U |
NAK |
Negative acknowledge |
| 22 |
0x16 |
026 |
00010110 |
^V |
SYN |
Synchronous idle |
| 23 |
0x17 |
027 |
00010111 |
^W |
ETB |
End of transmission block |
| 24 |
0x18 |
030 |
00011000 |
^X |
CAN |
Cancel |
| 25 |
0x19 |
031 |
00011001 |
^Y |
EM |
End of medium |
| 26 |
0x1A |
032 |
00011010 |
^Z |
SUB |
Substitute |
| 27 |
0x1B |
033 |
00011011 |
^[ |
ESC |
Escape |
| 28 |
0x1C |
034 |
00011100 |
^\ |
FS |
File separator |
| 29 |
0x1D |
035 |
00011101 |
^] |
GS |
Group separator |
| 30 |
0x1E |
036 |
00011110 |
^^ |
RS |
Record separator |
| 31 |
0x1F |
037 |
00011111 |
^_ |
US |
Unit separator |
| 127 |
0x7F |
177 |
01111111 |
^? |
DEL |
Delete |
Printable Characters (32–126)
| Dec |
Hex |
Oct |
Bin |
Char |
Name / Notes |
| 32 |
0x20 |
040 |
00100000 |
␠ |
SPACE |
| 33 |
0x21 |
041 |
00100001 |
! |
EXCLAMATION MARK |
| 34 |
0x22 |
042 |
00100010 |
" |
QUOTATION MARK |
| 35 |
0x23 |
043 |
00100011 |
# |
NUMBER SIGN |
| 36 |
0x24 |
044 |
00100100 |
$ |
DOLLAR SIGN |
| 37 |
0x25 |
045 |
00100101 |
% |
PERCENT SIGN |
| 38 |
0x26 |
046 |
00100110 |
& |
AMPERSAND |
| 39 |
0x27 |
047 |
00100111 |
' |
APOSTROPHE |
| 40 |
0x28 |
050 |
00101000 |
( |
LEFT PARENTHESIS |
| 41 |
0x29 |
051 |
00101001 |
) |
RIGHT PARENTHESIS |
| 42 |
0x2A |
052 |
00101010 |
* |
ASTERISK |
| 43 |
0x2B |
053 |
00101011 |
+ |
PLUS SIGN |
| 44 |
0x2C |
054 |
00101100 |
, |
COMMA |
| 45 |
0x2D |
055 |
00101101 |
- |
HYPHEN-MINUS |
| 46 |
0x2E |
056 |
00101110 |
. |
FULL STOP |
| 47 |
0x2F |
057 |
00101111 |
/ |
SOLIDUS (slash) |
| 48 |
0x30 |
060 |
00110000 |
0 |
DIGIT |
| 49 |
0x31 |
061 |
00110001 |
1 |
DIGIT |
| 50 |
0x32 |
062 |
00110010 |
2 |
DIGIT |
| 51 |
0x33 |
063 |
00110011 |
3 |
DIGIT |
| 52 |
0x34 |
064 |
00110100 |
4 |
DIGIT |
| 53 |
0x35 |
065 |
00110101 |
5 |
DIGIT |
| 54 |
0x36 |
066 |
00110110 |
6 |
DIGIT |
| 55 |
0x37 |
067 |
00110111 |
7 |
DIGIT |
| 56 |
0x38 |
070 |
00111000 |
8 |
DIGIT |
| 57 |
0x39 |
071 |
00111001 |
9 |
DIGIT |
| 58 |
0x3A |
072 |
00111010 |
: |
COLON |
| 59 |
0x3B |
073 |
00111011 |
; |
SEMICOLON |
| 60 |
0x3C |
074 |
00111100 |
< |
LESS-THAN SIGN |
| 61 |
0x3D |
075 |
00111101 |
= |
EQUALS SIGN |
| 62 |
0x3E |
076 |
00111110 |
> |
GREATER-THAN SIGN |
| 63 |
0x3F |
077 |
00111111 |
? |
QUESTION MARK |
| 64 |
0x40 |
100 |
01000000 |
@ |
COMMERCIAL AT |
| 65 |
0x41 |
101 |
01000001 |
A |
UPPERCASE LETTER |
| 66 |
0x42 |
102 |
01000010 |
B |
UPPERCASE LETTER |
| 67 |
0x43 |
103 |
01000011 |
C |
UPPERCASE LETTER |
| 68 |
0x44 |
104 |
01000100 |
D |
UPPERCASE LETTER |
| 69 |
0x45 |
105 |
01000101 |
E |
UPPERCASE LETTER |
| 70 |
0x46 |
106 |
01000110 |
F |
UPPERCASE LETTER |
| 71 |
0x47 |
107 |
01000111 |
G |
UPPERCASE LETTER |
| 72 |
0x48 |
110 |
01001000 |
H |
UPPERCASE LETTER |
| 73 |
0x49 |
111 |
01001001 |
I |
UPPERCASE LETTER |
| 74 |
0x4A |
112 |
01001010 |
J |
UPPERCASE LETTER |
| 75 |
0x4B |
113 |
01001011 |
K |
UPPERCASE LETTER |
| 76 |
0x4C |
114 |
01001100 |
L |
UPPERCASE LETTER |
| 77 |
0x4D |
115 |
01001101 |
M |
UPPERCASE LETTER |
| 78 |
0x4E |
116 |
01001110 |
N |
UPPERCASE LETTER |
| 79 |
0x4F |
117 |
01001111 |
O |
UPPERCASE LETTER |
| 80 |
0x50 |
120 |
01010000 |
P |
UPPERCASE LETTER |
| 81 |
0x51 |
121 |
01010001 |
Q |
UPPERCASE LETTER |
| 82 |
0x52 |
122 |
01010010 |
R |
UPPERCASE LETTER |
| 83 |
0x53 |
123 |
01010011 |
S |
UPPERCASE LETTER |
| 84 |
0x54 |
124 |
01010100 |
T |
UPPERCASE LETTER |
| 85 |
0x55 |
125 |
01010101 |
U |
UPPERCASE LETTER |
| 86 |
0x56 |
126 |
01010110 |
V |
UPPERCASE LETTER |
| 87 |
0x57 |
127 |
01010111 |
W |
UPPERCASE LETTER |
| 88 |
0x58 |
130 |
01011000 |
X |
UPPERCASE LETTER |
| 89 |
0x59 |
131 |
01011001 |
Y |
UPPERCASE LETTER |
| 90 |
0x5A |
132 |
01011010 |
Z |
UPPERCASE LETTER |
| 91 |
0x5B |
133 |
01011011 |
[ |
LEFT SQUARE BRACKET |
| 92 |
0x5C |
134 |
01011100 |
\ |
REVERSE SOLIDUS (backslash) |
| 93 |
0x5D |
135 |
01011101 |
] |
RIGHT SQUARE BRACKET |
| 94 |
0x5E |
136 |
01011110 |
^ |
CIRCUMFLEX ACCENT |
| 95 |
0x5F |
137 |
01011111 |
_ |
LOW LINE (underscore) |
| 96 |
0x60 |
140 |
01100000 |
` |
GRAVE ACCENT |
| 97 |
0x61 |
141 |
01100001 |
a |
lowercase letter |
| 98 |
0x62 |
142 |
01100010 |
b |
lowercase letter |
| 99 |
0x63 |
143 |
01100011 |
c |
lowercase letter |
| 100 |
0x64 |
144 |
01100100 |
d |
lowercase letter |
| 101 |
0x65 |
145 |
01100101 |
e |
lowercase letter |
| 102 |
0x66 |
146 |
01100110 |
f |
lowercase letter |
| 103 |
0x67 |
147 |
01100111 |
g |
lowercase letter |
| 104 |
0x68 |
150 |
01101000 |
h |
lowercase letter |
| 105 |
0x69 |
151 |
01101001 |
i |
lowercase letter |
| 106 |
0x6A |
152 |
01101010 |
j |
lowercase letter |
| 107 |
0x6B |
153 |
01101011 |
k |
lowercase letter |
| 108 |
0x6C |
154 |
01101100 |
l |
lowercase letter |
| 109 |
0x6D |
155 |
01101101 |
m |
lowercase letter |
| 110 |
0x6E |
156 |
01101110 |
n |
lowercase letter |
| 111 |
0x6F |
157 |
01101111 |
o |
lowercase letter |
| 112 |
0x70 |
160 |
01110000 |
p |
lowercase letter |
| 113 |
0x71 |
161 |
01110001 |
q |
lowercase letter |
| 114 |
0x72 |
162 |
01110010 |
r |
lowercase letter |
| 115 |
0x73 |
163 |
01110011 |
s |
lowercase letter |
| 116 |
0x74 |
164 |
01110100 |
t |
lowercase letter |
| 117 |
0x75 |
165 |
01110101 |
u |
lowercase letter |
| 118 |
0x76 |
166 |
01110110 |
v |
lowercase letter |
| 119 |
0x77 |
167 |
01110111 |
w |
lowercase letter |
| 120 |
0x78 |
170 |
01111000 |
x |
lowercase letter |
| 121 |
0x79 |
171 |
01111001 |
y |
lowercase letter |
| 122 |
0x7A |
172 |
01111010 |
z |
lowercase letter |
| 123 |
0x7B |
173 |
01111011 |
{ |
LEFT CURLY BRACKET |
| 124 |
0x7C |
174 |
01111100 |
\| |
VERTICAL LINE (pipe) |
| 125 |
0x7D |
175 |
01111101 |
} |
RIGHT CURLY BRACKET |
| 126 |
0x7E |
176 |
01111110 |
~ |
TILDE |
Common Quick Picks
| Item |
Dec |
Hex |
Notes |
NUL |
0 |
0x00 |
Often string terminator in C |
TAB |
9 |
0x09 |
\t |
LF |
10 |
0x0A |
\n (Unix newline) |
CR |
13 |
0x0D |
\r |
ESC |
27 |
0x1B |
Escape key / ANSI escape sequences |
SPACE |
32 |
0x20 |
Space character |
DEL |
127 |
0x7F |
Delete / rubout |