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)

Control characters you will meet

CodeNameEscapeWhere it shows up
0 / 0x00NUL\0String terminator in C. A stray one often means UTF-16 text is being read as bytes.
3 / 0x03ETXSent by Ctrl+C in a terminal, which interrupts the running program.
4 / 0x04EOTSent by Ctrl+D, which signals end of input on Unix terminals.
7 / 0x07BEL\aTerminal bell.
8 / 0x08BS\bBackspace.
9 / 0x09HT\tTab. Column separator in TSV files.
10 / 0x0ALF\nLine ending on Unix, Linux and macOS.
13 / 0x0DCR\rWindows line endings are CR then LF. HTTP/1.1 headers also end in CRLF.
26 / 0x1ASUBCtrl+Z. Marked end of file in DOS and some old Windows text files.
27 / 0x1BESC\x1bStarts terminal color and cursor sequences, such as ESC[31m for red.
127 / 0x7FDELDelete. 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

Related

Last updated