HTML ASCII Reference

ASCII was the first character set (encoding standard) used between computers on the Internet.

Both ISO-8859-1 (default in HTML 4.01) and UTF-8 (default in HTML5), are built on ASCII.

The ASCII Character Set

ASCII stands for the “American Standard Code for Information Interchange”.

It was designed in the early 60’s, as a standard character set for computers and electronic devices.

ASCII is a 7-bit character set containing 128 characters.

It contains the numbers from 0-9, the upper and lower case English letters from A to Z, and some special characters.

The character sets used in modern computers, in HTML, and on the Internet, are all based on ASCII.

The following tables list the 128 ASCII characters and their equivalent number.

ASCII Printable Characters

 0 – 31Control characters (see below)
!33exclamation mark
34quotation mark
#35number sign
$36dollar sign
%37percent sign
(40left parenthesis
)41right parenthesis
+43plus sign
048digit 0
149digit 1
250digit 2
351digit 3
452digit 4
553digit 5
654digit 6
755digit 7
856digit 8
957digit 9
?63question mark
@64at sign
A65uppercase A
B66uppercase B
C67uppercase C
D68uppercase D
E69uppercase E
F70uppercase F
G71uppercase G
H72uppercase H
I73uppercase I
J74uppercase J
K75uppercase K
L76uppercase L
M77uppercase M
N78uppercase N
O79uppercase O
P80uppercase P
Q81uppercase Q
R82uppercase R
S83uppercase S
T84uppercase T
U85uppercase U
V86uppercase V
W87uppercase W
X88uppercase X
Y89uppercase Y
Z90uppercase Z
[91left square bracket
]93right square bracket
`96grave accent
a97lowercase a
b98lowercase b
c99lowercase c
d100lowercase d
e101lowercase e
f102lowercase f
g103lowercase g
h104lowercase h
i105lowercase i
j106lowercase j
k107lowercase k
l108lowercase l
m109lowercase m
n110lowercase n
o111lowercase o
p112lowercase p
q113lowercase q
r114lowercase r
s115lowercase s
t116lowercase t
u117lowercase u
v118lowercase v
w119lowercase w
x120lowercase x
y121lowercase y
z122lowercase z
{123left curly brace
|124vertical bar
}125right curly brace

ASCII Device Control Characters

The ASCII control characters (range 00-31, plus 127) were designed to control hardware devices.

Control characters (except horizontal tab, line feed, and carriage return) have nothing to do inside an HTML document.

NUL00null character
SOH01start of header
STX02start of text
ETX03end of text
EOT04end of transmission
BEL07bell (ring)
HT09horizontal tab
LF10line feed
VT11vertical tab
FF12form feed
CR13carriage return
SO14shift out
SI15shift in
DLE16data link escape
DC117device control 1
DC218device control 2
DC319device control 3
DC420device control 4
NAK21negative acknowledge
ETB23end transmission block
EM25end of medium
FS28file separator
GS29group separator
RS30record separator
US31unit separator
DEL127delete (rubout)

One comment

  1. Great content. Many thanks.

Leave a Reply

Your email address will not be published.