Complete ASCII Table

Look up every printable ASCII character (32-127) with its decimal, hexadecimal, octal and HTML entity values. Click to copy.

ASCII Table

DigitLetterSymbol
CharDecHexOctHTML entityDescription
·3220040 Space
!3321041!!
"3422042"Double quote
#3523043#Hash
$3624044$Dollar sign
%3725045%Percent
&3826046&Ampersand
'3927047'Apostrophe
(4028050(Left paren.
)4129051)Right paren.
*422A052*Asterisk
+432B053+Plus
,442C054,Comma
-452D055-Hyphen
.462E056.Period
/472F057/Slash
0483006000
1493106111
2503206222
3513306333
4523406444
5533506555
6543606666
7553706777
8563807088
9573907199
:583A072:Colon
;593B073&#59;Semicolon
<603C074&lt;Less than
=613D075&#61;Equals
>623E076&gt;Greater than
?633F077&#63;Question mark
@6440100&#64;At sign
A6541101&#65;A
B6642102&#66;B
C6743103&#67;C
D6844104&#68;D
E6945105&#69;E
F7046106&#70;F
G7147107&#71;G
H7248110&#72;H
I7349111&#73;I
J744A112&#74;J
K754B113&#75;K
L764C114&#76;L
M774D115&#77;M
N784E116&#78;N
O794F117&#79;O
P8050120&#80;P
Q8151121&#81;Q
R8252122&#82;R
S8353123&#83;S
T8454124&#84;T
U8555125&#85;U
V8656126&#86;V
W8757127&#87;W
X8858130&#88;X
Y8959131&#89;Y
Z905A132&#90;Z
[915B133&#91;Left bracket
\925C134&#92;Backslash
]935D135&#93;Right bracket
^945E136&#94;Caret
_955F137&#95;Underscore
`9660140&#96;Grave accent
a9761141&#97;a
b9862142&#98;b
c9963143&#99;c
d10064144&#100;d
e10165145&#101;e
f10266146&#102;f
g10367147&#103;g
h10468150&#104;h
i10569151&#105;i
j1066A152&#106;j
k1076B153&#107;k
l1086C154&#108;l
m1096D155&#109;m
n1106E156&#110;n
o1116F157&#111;o
p11270160&#112;p
q11371161&#113;q
r11472162&#114;r
s11573163&#115;s
t11674164&#116;t
u11775165&#117;u
v11876166&#118;v
w11977167&#119;w
x12078170&#120;x
y12179171&#121;y
z1227A172&#122;z
{1237B173&#123;Left brace
|1247C174&#124;Vertical bar
}1257D175&#125;Right brace
~1267E176&#126;Tilde
␡1277F177&#127;DEL (control)

96 of 96 characters. Click a row to copy the character.

ASCII: the 1963 standard that still runs the internet

Originally designed for telegraph communication, ASCII defined how computers represent text in binary. More than 60 years later it remains the backbone of every modern encoding system. UTF-8, the standard of the web, is backward compatible with ASCII: any ASCII text is automatically valid UTF-8.

For developers, knowing the ASCII table speeds up debugging of encoding problems, helps in understanding communication protocols, makes regular expressions easier to work with and is essential for low-level string manipulation. This table lists the 96 printable characters with every useful representation.

Why understanding ASCII still matters

Protocols such as HTTP, SMTP, FTP and JSON are built on ASCII. HTTP headers must be plain ASCII, so values outside the 32-126 range need to be encoded. URLs only accept ASCII characters directly; everything else needs percent-encoding. Understanding this safe subset is fundamental when working with APIs and integrations.

In regular expressions, many patterns use ASCII ranges directly: [A-Z] matches codes 65-90, [a-z] matches 97-122, [0-9] matches 48-57. Knowing the decimal values of characters helps you build and read more complex expressions.

ASCII art and creativity within 95 characters

With only the 95 printable ASCII characters, digital artists created a form of visual expression that still lives on in terminal interfaces, code comments and hacker culture. Programs like figlet and banner turn text into ASCII art using characters of different "visual weights".

In code, ASCII art comments are used to mark important sections, create logos in configuration files and draw decorative borders in text files. Knowing the available characters makes it easier to create consistent patterns.

Frequently asked questions

What is ASCII?

ASCII (American Standard Code for Information Interchange) is a character encoding standard created in 1963. It uses 7 bits to represent 128 characters: uppercase and lowercase letters, digits, punctuation and control characters. It is the foundation of all modern encodings such as UTF-8.

Why does ASCII use only 128 characters?

The original ASCII standard uses 7 bits, which allow 2^7 = 128 combinations. The first 32 (0-31) are control characters (non-printable), 32 is space, and the remaining 95 (33-126) are printable characters. Code 127 is DEL. This limit reflects the computing resources of the time it was created.

What is the difference between ASCII and UTF-8?

ASCII is a subset of UTF-8. The first 128 UTF-8 characters are identical to ASCII, so any valid ASCII file is also valid UTF-8. The difference is that UTF-8 can represent more than a million Unicode characters using 1 to 4 bytes per character, covering every alphabet and emoji in the world.

What are ASCII control characters (0-31)?

The first 32 ASCII characters (0-31) are non-printable control characters, originally used to control telecommunication equipment. Some are still relevant: 9 is Tab (\t), 10 is Line Feed (\n, newline), 13 is Carriage Return (\r), 27 is Escape (\e).

How does ASCII help debug encoding problems?

Many encoding problems appear when a file saved as Latin-1 (ISO-8859-1) is read as UTF-8. Characters with a code above 127 (such as é, ñ, ü) have different representations in the two encodings. Knowing that ASCII only goes up to 127 helps you quickly tell which characters are 'safe' and which can cause problems across different systems.