Reference library

ASCII table: DEC, HEX, and BIN

All 128 ASCII characters: control codes, space, symbols, digits, and Latin letters represented in DEC, HEX, and BIN.

128 characters
Total 128 codes from 0 to 127
Control 33 0–31, 127
Printable 95 32–126
DEC · HEX · BIN

All ASCII characters

Search by symbol, name, abbreviation, or code. Select DEC, HEX, or BIN in a row to copy the value.

ASCII control and printable characters with decimal, hexadecimal, and binary codes
Character Name DEC HEX BIN 8 bit
NUL
Null Control
SOH
Start of Heading Control
STX
Start of Text Control
ETX
End of Text Control
EOT
End of Transmission Control
ENQ
Enquiry Control
ACK
Acknowledge Control
BEL
Bell Control
BS
Backspace Control
HT
Horizontal Tab Control
LF
Line Feed Control
VT
Vertical Tab Control
FF
Form Feed Control
CR
Carriage Return Control
SO
Shift Out Control
SI
Shift In Control
DLE
Data Link Escape Control
DC1
Device Control 1 Control
DC2
Device Control 2 Control
DC3
Device Control 3 Control
DC4
Device Control 4 Control
NAK
Negative Acknowledge Control
SYN
Synchronous Idle Control
ETB
End of Transmission Block Control
CAN
Cancel Control
EM
End of Medium Control
SUB
Substitute Control
ESC
Escape Control
FS
File Separator Control
GS
Group Separator Control
RS
Record Separator Control
US
Unit Separator Control
SP
Space Printable
!
Exclamation mark Printable
"
Quotation mark Printable
#
Number sign Printable
$
Dollar sign Printable
%
Percent sign Printable
&
Ampersand Printable
'
Apostrophe Printable
(
Left parenthesis Printable
)
Right parenthesis Printable
*
Asterisk Printable
+
Plus sign Printable
,
Comma Printable
-
Hyphen-minus Printable
.
Full stop Printable
/
Solidus Printable
0
Digit 0 Printable
1
Digit 1 Printable
2
Digit 2 Printable
3
Digit 3 Printable
4
Digit 4 Printable
5
Digit 5 Printable
6
Digit 6 Printable
7
Digit 7 Printable
8
Digit 8 Printable
9
Digit 9 Printable
:
Colon Printable
;
Semicolon Printable
<
Less-than sign Printable
=
Equals sign Printable
>
Greater-than sign Printable
?
Question mark Printable
@
Commercial at Printable
A
Latin capital letter A Printable
B
Latin capital letter B Printable
C
Latin capital letter C Printable
D
Latin capital letter D Printable
E
Latin capital letter E Printable
F
Latin capital letter F Printable
G
Latin capital letter G Printable
H
Latin capital letter H Printable
I
Latin capital letter I Printable
J
Latin capital letter J Printable
K
Latin capital letter K Printable
L
Latin capital letter L Printable
M
Latin capital letter M Printable
N
Latin capital letter N Printable
O
Latin capital letter O Printable
P
Latin capital letter P Printable
Q
Latin capital letter Q Printable
R
Latin capital letter R Printable
S
Latin capital letter S Printable
T
Latin capital letter T Printable
U
Latin capital letter U Printable
V
Latin capital letter V Printable
W
Latin capital letter W Printable
X
Latin capital letter X Printable
Y
Latin capital letter Y Printable
Z
Latin capital letter Z Printable
[
Left square bracket Printable
\
Reverse solidus Printable
]
Right square bracket Printable
^
Circumflex accent Printable
_
Low line Printable
`
Grave accent Printable
a
Latin small letter a Printable
b
Latin small letter b Printable
c
Latin small letter c Printable
d
Latin small letter d Printable
e
Latin small letter e Printable
f
Latin small letter f Printable
g
Latin small letter g Printable
h
Latin small letter h Printable
i
Latin small letter i Printable
j
Latin small letter j Printable
k
Latin small letter k Printable
l
Latin small letter l Printable
m
Latin small letter m Printable
n
Latin small letter n Printable
o
Latin small letter o Printable
p
Latin small letter p Printable
q
Latin small letter q Printable
r
Latin small letter r Printable
s
Latin small letter s Printable
t
Latin small letter t Printable
u
Latin small letter u Printable
v
Latin small letter v Printable
w
Latin small letter w Printable
x
Latin small letter x Printable
y
Latin small letter y Printable
z
Latin small letter z Printable
{
Left curly bracket Printable
|
Vertical line Printable
}
Right curly bracket Printable
~
Tilde Printable
DEL
Delete Control
How to read the table

ASCII ranges and code forms

0–31, 127

Control characters

Non-printing commands inherited from terminals and data transmission: tab, line feed, carriage return, escape, delete, and others.

32–126

Printable characters

Space, punctuation, digits 0–9, uppercase A–Z, lowercase a–z, and basic symbols.

DEC · HEX · BIN

The same value in three bases

For example, A is 65 in decimal, 41 in hexadecimal, and 01000001 in an eight-bit binary byte.

Important: ASCII itself is a 7-bit standard. The leading zero in BIN shows how the value is normally stored in an 8-bit byte.

Related tools

Continue working with text

Copy a symbol, convert markup, clean a fragment, or keep the result in the notebook.

FAQ

Questions about ASCII

How many characters are in ASCII?

Standard ASCII contains 128 values from 0 to 127: 33 control characters, including DEL, and 95 printable characters, including the space.

Why does the BIN column contain eight bits?

ASCII needs only seven bits. The table pads each value with a leading zero to show the common one-byte representation.

What is the difference between ASCII and Unicode?

ASCII is a 128-character set. Unicode covers writing systems and symbols worldwide, while its first 128 code points match ASCII.

Are codes 128–255 part of ASCII?

No. Those values belong to various 8-bit code pages often called extended ASCII, and their characters depend on the selected encoding.