ASCII Table
All 128 ASCII codes, with what the control characters do. Click an entry to copy it.
By BoltQuickTools team · Updated November 8, 2026
ASCII defines 128 characters using 7 bits. Codes 0-31 and 127 are control characters, and codes 32-126 are the 95 printable characters, counting the space. UTF-8 keeps these 128 codes identical, so pure ASCII text is already valid UTF-8.
Click any entry to copy it. Control characters and the space copy their real character, not the label. The table labels code 9 TAB; the formal ASCII name is HT (horizontal tab).
Control Characters (0-31, 127)
0 / 0x00
NUL
1 / 0x01
SOH
2 / 0x02
STX
3 / 0x03
ETX
4 / 0x04
EOT
5 / 0x05
ENQ
6 / 0x06
ACK
7 / 0x07
BEL
8 / 0x08
BS
9 / 0x09
TAB
10 / 0x0A
LF
11 / 0x0B
VT
12 / 0x0C
FF
13 / 0x0D
CR
14 / 0x0E
SO
15 / 0x0F
SI
16 / 0x10
DLE
17 / 0x11
DC1
18 / 0x12
DC2
19 / 0x13
DC3
20 / 0x14
DC4
21 / 0x15
NAK
22 / 0x16
SYN
23 / 0x17
ETB
24 / 0x18
CAN
25 / 0x19
EM
26 / 0x1A
SUB
27 / 0x1B
ESC
28 / 0x1C
FS
29 / 0x1D
GS
30 / 0x1E
RS
31 / 0x1F
US
127 / 0x7F
DEL
Printable Characters (32-126)
32 / 0x20
(space)
33 / 0x21
!
34 / 0x22
"
35 / 0x23
#
36 / 0x24
$
37 / 0x25
%
38 / 0x26
&
39 / 0x27
'
40 / 0x28
(
41 / 0x29
)
42 / 0x2A
*
43 / 0x2B
+
44 / 0x2C
,
45 / 0x2D
-
46 / 0x2E
.
47 / 0x2F
/
48 / 0x30
0
49 / 0x31
1
50 / 0x32
2
51 / 0x33
3
52 / 0x34
4
53 / 0x35
5
54 / 0x36
6
55 / 0x37
7
56 / 0x38
8
57 / 0x39
9
58 / 0x3A
:
59 / 0x3B
;
60 / 0x3C
<
61 / 0x3D
=
62 / 0x3E
>
63 / 0x3F
?
64 / 0x40
@
65 / 0x41
A
66 / 0x42
B
67 / 0x43
C
68 / 0x44
D
69 / 0x45
E
70 / 0x46
F
71 / 0x47
G
72 / 0x48
H
73 / 0x49
I
74 / 0x4A
J
75 / 0x4B
K
76 / 0x4C
L
77 / 0x4D
M
78 / 0x4E
N
79 / 0x4F
O
80 / 0x50
P
81 / 0x51
Q
82 / 0x52
R
83 / 0x53
S
84 / 0x54
T
85 / 0x55
U
86 / 0x56
V
87 / 0x57
W
88 / 0x58
X
89 / 0x59
Y
90 / 0x5A
Z
91 / 0x5B
[
92 / 0x5C
\
93 / 0x5D
]
94 / 0x5E
^
95 / 0x5F
_
96 / 0x60
`
97 / 0x61
a
98 / 0x62
b
99 / 0x63
c
100 / 0x64
d
101 / 0x65
e
102 / 0x66
f
103 / 0x67
g
104 / 0x68
h
105 / 0x69
i
106 / 0x6A
j
107 / 0x6B
k
108 / 0x6C
l
109 / 0x6D
m
110 / 0x6E
n
111 / 0x6F
o
112 / 0x70
p
113 / 0x71
q
114 / 0x72
r
115 / 0x73
s
116 / 0x74
t
117 / 0x75
u
118 / 0x76
v
119 / 0x77
w
120 / 0x78
x
121 / 0x79
y
122 / 0x7A
z
123 / 0x7B
{
124 / 0x7C
|
125 / 0x7D
}
126 / 0x7E
~
Control characters you will meet
| Code | Name | Escape | Where it shows up |
|---|---|---|---|
| 0 / 0x00 | NUL | \0 | String terminator in C. A stray one often means UTF-16 text is being read as bytes. |
| 3 / 0x03 | ETX | Sent by Ctrl+C in a terminal, which interrupts the running program. | |
| 4 / 0x04 | EOT | Sent by Ctrl+D, which signals end of input on Unix terminals. | |
| 7 / 0x07 | BEL | \a | Terminal bell. |
| 8 / 0x08 | BS | \b | Backspace. |
| 9 / 0x09 | HT | \t | Tab. Column separator in TSV files. |
| 10 / 0x0A | LF | \n | Line ending on Unix, Linux and macOS. |
| 13 / 0x0D | CR | \r | Windows line endings are CR then LF. HTTP/1.1 headers also end in CRLF. |
| 26 / 0x1A | SUB | Ctrl+Z. Marked end of file in DOS and some old Windows text files. | |
| 27 / 0x1B | ESC | \x1b | Starts terminal color and cursor sequences, such as ESC[31m for red. |
| 127 / 0x7F | DEL | Delete. Sits at the top of the range because it is all seven bits set, the pattern for punching out a mistake on paper tape. |
Bit patterns worth knowing
- Digit to number: subtract 48 (0x30).
'7'is 55, and 55 - 48 = 7. - Case: upper and lower case differ only in bit 0x20.
'A'(65) + 32 ='a'(97). Use this only after confirming the byte is a letter; for general text use a Unicode-aware function. - Letter position:
c & 0x1Fgives 1 for A or a, up to 26 for Z or z. - Ctrl keys: holding Ctrl clears the upper bits of a letter key, so Ctrl+M sends 13 (CR) and Ctrl+[ sends 27 (ESC).
- Is it ASCII? A byte is ASCII if its high bit is 0. In UTF-8, every byte of a multi-byte character has the high bit set, so ASCII bytes are never part of one.
- Above 127: there is no single "extended ASCII". Windows-1252, ISO 8859-1 and others assign codes 128-255 differently, which is the usual cause of garbled characters. Prefer UTF-8.
Related
Last updated