ASCII Table with Decimal, Hex, Binary and Octal

Complete ASCII character table (0-255) with decimal, hexadecimal, octal, and binary values. Search by value or name, filter by type, click any row for full detail including HTML entity and C escape.

What Is ASCII?

ASCII, short for American Standard Code for Information Interchange, is a 7-bit character encoding that maps numbers to letters, digits, punctuation, and control signals. Standard ASCII uses values 0-127: control characters at 0-31 and 127, and printable characters at 32-126.

ASCII table formats: DEC, HEX, BIN and OCT

The same ASCII code can be written in several bases. DEC is the decimal value, HEX is hexadecimal for byte-oriented debugging, BIN shows the exact bit pattern, and OCT is octal notation used in some older tools and escape formats.

Printable ASCII characters

Printable ASCII runs from decimal 32 to 126. This range includes space, digits 0-9, uppercase A-Z, lowercase a-z, punctuation, and symbols that normally appear in source code, serial logs, and text protocols.

ASCII control characters

Control characters do not normally display as glyphs. Values such as NUL, TAB, LF, CR, ESC, and DEL are used for string termination, whitespace, line endings, terminal control, and protocol framing.

Common ASCII code examples

These common ASCII codes cover the values developers look up most often when reading hex dumps, UART logs, binary payloads, and text protocol frames.

Character DEC HEX BIN Description
NUL00000000000Null character
LF100A00001010Line feed
CR130D00001101Carriage return
Space322000100000Space character
0483000110000Digit zero
A654101000001Uppercase A
a976101100001Lowercase a
DEL1277F01111111Delete

Full ASCII Table 0-127

This reference table lists the standard 7-bit ASCII codes from 0 to 127 with decimal, hexadecimal, binary and octal values.

Character DEC HEX BIN OCT Description
NUL00000000000000Null character
SOH10100000001001Start of heading
STX20200000010002Start of text
ETX30300000011003End of text
EOT40400000100004End of transmission
ENQ50500000101005Enquiry
ACK60600000110006Acknowledge
BEL70700000111007Bell
BS80800001000010Backspace
HT90900001001011Horizontal tab
LF100A00001010012Line feed
VT110B00001011013Vertical tab
FF120C00001100014Form feed
CR130D00001101015Carriage return
SO140E00001110016Shift out
SI150F00001111017Shift in
DLE161000010000020Data link escape
DC1171100010001021Device control 1
DC2181200010010022Device control 2
DC3191300010011023Device control 3
DC4201400010100024Device control 4
NAK211500010101025Negative acknowledge
SYN221600010110026Synchronous idle
ETB231700010111027End of transmission block
CAN241800011000030Cancel
EM251900011001031End of medium
SUB261A00011010032Substitute
ESC271B00011011033Escape
FS281C00011100034File separator
GS291D00011101035Group separator
RS301E00011110036Record separator
US311F00011111037Unit separator
Space322000100000040Space character
!332100100001041Printable symbol
"342200100010042Printable symbol
#352300100011043Printable symbol
$362400100100044Printable symbol
%372500100101045Printable symbol
&382600100110046Printable symbol
'392700100111047Printable symbol
(402800101000050Printable symbol
)412900101001051Printable symbol
*422A00101010052Printable symbol
+432B00101011053Printable symbol
,442C00101100054Printable symbol
-452D00101101055Printable symbol
.462E00101110056Printable symbol
/472F00101111057Printable symbol
0483000110000060Digit 0
1493100110001061Digit 1
2503200110010062Digit 2
3513300110011063Digit 3
4523400110100064Digit 4
5533500110101065Digit 5
6543600110110066Digit 6
7553700110111067Digit 7
8563800111000070Digit 8
9573900111001071Digit 9
:583A00111010072Printable symbol
;593B00111011073Printable symbol
<603C00111100074Printable symbol
=613D00111101075Printable symbol
>623E00111110076Printable symbol
?633F00111111077Printable symbol
@644001000000100Printable symbol
A654101000001101Uppercase A
B664201000010102Uppercase B
C674301000011103Uppercase C
D684401000100104Uppercase D
E694501000101105Uppercase E
F704601000110106Uppercase F
G714701000111107Uppercase G
H724801001000110Uppercase H
I734901001001111Uppercase I
J744A01001010112Uppercase J
K754B01001011113Uppercase K
L764C01001100114Uppercase L
M774D01001101115Uppercase M
N784E01001110116Uppercase N
O794F01001111117Uppercase O
P805001010000120Uppercase P
Q815101010001121Uppercase Q
R825201010010122Uppercase R
S835301010011123Uppercase S
T845401010100124Uppercase T
U855501010101125Uppercase U
V865601010110126Uppercase V
W875701010111127Uppercase W
X885801011000130Uppercase X
Y895901011001131Uppercase Y
Z905A01011010132Uppercase Z
[915B01011011133Printable symbol
\925C01011100134Printable symbol
]935D01011101135Printable symbol
^945E01011110136Printable symbol
_955F01011111137Printable symbol
`966001100000140Printable symbol
a976101100001141Lowercase a
b986201100010142Lowercase b
c996301100011143Lowercase c
d1006401100100144Lowercase d
e1016501100101145Lowercase e
f1026601100110146Lowercase f
g1036701100111147Lowercase g
h1046801101000150Lowercase h
i1056901101001151Lowercase i
j1066A01101010152Lowercase j
k1076B01101011153Lowercase k
l1086C01101100154Lowercase l
m1096D01101101155Lowercase m
n1106E01101110156Lowercase n
o1116F01101111157Lowercase o
p1127001110000160Lowercase p
q1137101110001161Lowercase q
r1147201110010162Lowercase r
s1157301110011163Lowercase s
t1167401110100164Lowercase t
u1177501110101165Lowercase u
v1187601110110166Lowercase v
w1197701110111167Lowercase w
x1207801111000170Lowercase x
y1217901111001171Lowercase y
z1227A01111010172Lowercase z
{1237B01111011173Printable symbol
|1247C01111100174Printable symbol
}1257D01111101175Printable symbol
~1267E01111110176Printable symbol
DEL1277F01111111177Delete

ASCII vs UTF-8

UTF-8 is a Unicode encoding, but its first 128 code points are identical to ASCII. That makes ASCII bytes valid UTF-8 bytes for common English letters, digits, punctuation, and control characters.

FAQ

What is an ASCII table?

An ASCII table is a reference chart that maps each ASCII character or control code to numeric values such as decimal, hexadecimal, binary, and octal.

What are DEC, HEX, BIN and OCT in an ASCII table?

They are different number bases for the same ASCII code: decimal, hexadecimal, binary, and octal.

What is the ASCII code for A?

Uppercase A is decimal 65, hexadecimal 41, binary 01000001, and octal 101.

What is the difference between ASCII and UTF-8?

ASCII defines the first 128 character codes. UTF-8 is a Unicode encoding that keeps those first 128 codes identical and adds multibyte encodings for many more characters.

Related Tools