HTML ASCII Reference
The ASCII character-set is used to send information between computers on the Internet.
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 hardware devices like teleprinters and tapedrives.

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

It contains the numbers from 0-9, the uppercase and lowercase English letters from A to Z, and some special characters.

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

Examples are:
Since these are ASCII commands, there must be a number for each character found on the keyboard. These are: The other numbers are covered below.

The following table lists the 128 ASCII characters and their equivalent HTML entity codes.
ASCII Printable Characters
Reserved URL characters that cannot be included in your url but must be encoded.
For example %20 is used for a space between words. % = signal for encoding, 20 = hex number indicating an ASCII space.
Here are the reserved ASCII characters which must be encoded in your url.

CharacterDecimalHex
tab
space
"
(
)
,
.
;
:
<
>
@
[
\
]
^
`
{
|
}
ñ
09
16
18
40
41
44
46
59
58
60
62
64
101
102
103
104
106
113
114
115
116
09
20
22
28
29
2C
2E
3B
3A
3C
3E
40
5B
5C
5D
5E
60
7B
7C
7D
7E

In addition:
? = %3F; because '?' begins a query string.
& = %26; because '&' start the separation of a name/value pair.
/ = %2F; because '/' starts a new directory path.
= = %3D because '=' binds a name/value pair.

Printable Latin-1 Character codes
Place &#; around the numbers.
Examples:
&#166; to get ¦
&#241; to get ñ
These are accompanied by letter codes such as:
&nbsp; to get a non-breaking space.
While it is very difficult to guess the number codes, the letter codes are fairly logical and often guessable. Try:
&Ntilde; and &#209; to get Ñ and Ñ.
&ntilde; and &#241; to get ñ and ñ.
A question mark on a black diamond, indicates that the browser does not recognize the code.

0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 !
34 "
35 #
36 $
37 %
38 &
39 '
40 (
41 )
42 *
43 +
44 ,
45 -
46 .
47 /
48 0
49 1
50 2
51 3
52 4
53 5
54 6
55 7
56 8
57 9
58 :
59 ;
60 <
61 =
62 >
63 ?
64 @
65 A
66 B
67 C
68 D
69 E
70 F
71 G
72 H
73 I
74 J
75 K
76 L
77 M
78 N
79 O
80 P
81 Q
82 R
83 S
84 T
85U
86 V
87 W
88 X
89 Y
90 Z
91 [
92 \
93 ]
94 ^
95 _
96 '
97 a
98 b
99 c
100 d
101 e
102 f
103 g
104 h
105 i
106 j
107 k
108 l
109 m
110 n
111 o
112 p
113 q
114 r
115 s
116 t
117 u
118 v
119 w
120 x
121 y
122 z
123 {
124 |
125 }
126 ~
127 (space)
128 €
129 
130 ‚
131ƒ
132 „
133 …
134 †
135 ‡
136 ˆ
137 ‰
138 Š
139 ‹
140 Œ
141 
142 Ž
143 
144 
145 ‘
146 ’
147 “
148 ”
149 •
150 –
151 —
152 ˜
153 ™
154 š
155 ›
156 œ
157 
158 ž
159 Ÿ
160/nbsp  
161/iexcl ¡
162/cent ¢
163/pound £
164/curren ¤
165/yen ¥
166/brvbar ¦
167/sect §
168/uml ¨
169/copy ©
170/ordf ª
171/laquo «
172/not ¬
173/shy ­
174/reg ®
175/macr ¯
176/deg °
177/plusmn ±
178/sup2 ²
179/sup3 ³
180/acute ´
181/micro µ
182/para ¶
183/middot ·
184/ccedil ¸
185/sup1 ¹
186/ordm º
187/raquo »
188/frac14 ¼
189/frac12 ½
190/frac34 ¾
191/iquest ¿
192/Agrave À
193/aacute Á
194/Acirc Â
195/Atilde Ã
196/Auml Ä
197/Aring Å
198/AElig Æ
199/Ccedil Ç
200/Egrave È
201/Eacute É
202/Ecirc Ê
203/Euml Ë
204/Igrave Ì
205/Iacute Í
206/Icirc Î
207/Iuml Ï
208/ETH Ð
209/Ntilde Ñ
210/Ograve Ò
211/Oacute Ó
212/Ocirc Ô
213/Otilde Õ
214/Ouml Ö
215/times ×
216/Oslash Ø
217/Ugrave Ù
218/Uacute Ú
219/Ucirc Û
220/Uuml Ü
221/Yacute Ý
222/THORN Þ
223/szlig ß
224/agrave à
225/aacute á
226/acirc â
227/atilde ã
228/auml ä
229/aring å
230/aelig æ
231/ccedil ç
232/egrave è
233/eacute é
234/ecirc ê
235/euml ë
236/igrave ì
237/iacute í
238/icirc î
239/iuml ï
240/eth ð
241/ntilde ñ
242/ograve ò
243/oacute ó
244/ocirc ô
245/otilde õ
246/ouml ö
247/divide ÷
248/oslash ø
249/ugrave ù
250/uacute ú
251/ucirc û
252/uuml ü
253/yacute ý
254/thorn þ
255/yuml ÿ

For reasons unknown to me, the column of maths symbols forces triple line-breaks for each <br />.
To overcome this formating problem in the left column, I have removed the line breaks, and grouped the symbols.

ASCII CharacterHTML Entity CodeDescription
Maths
←
→
↑
↓
↔
⇐ ⇒ ⇑ ⇓ ⇔

∀ ∂ ∃ ∅

∇ ∈ ∉ ∋


∏
∑
−
∗ √ ∝ ∞

∠ ∩ ∪ ∫
∴ ∼ ≅ ≈



≠ ≡ ≤ ≥


⊂ ⊃ ⊄ ⊆ ⊇


⊕ ⊗ ∧ ∨
⊥ ⋅
⌈ ... ⌉ ... ⌊ ... ⌋
⟨ ...  ⟩ ...  ◊
♠
♣
♥
♦
 
&larr; / &#8592;
&rarr; / &#8594;
&uarr; / &#8593;
&darr; / &#8595;
&harr; / &#8596;

&lArr; / &#8656;
&rArr; / &#8658;
&uArr; / &#8657;
&dArr; / &#8659;
&hArr; / &#8660;

&forall; / &#8704;
&part; / &#8706;
&exist; / &#8707;
&empty; / &#8709;

&nabla; / &#8711;
&isin; / &#8712;
&notin; / &#8713;
&ni; / &#8715;

&prod; / &#8719;
&sum; / &#8721;
&minus; / &#8722;


&lowast; / &#8727;
&radic; / &#8730;
&prop; / &#8733;
&infin; / &#8734;

&ang; / &#8736;
&cap; / &#8745;
&cup; / &#8746;
&int; / &#8747;

&there4; / &#8756;
&sim; / &#8764;
&cong; / &#8773;
&asymp; / &#8776;

&ne; / &#8800;
&equiv; / &#8801;
&le; / &#8804;
&ge; / &#8805;

&sub; / &#8834;
&sup; / &#8835;
&nsub; / &#8836;
&sube; / &#8838;
&supe; / &#8839;

&oplus; / &#8853;
&otimes; / &#8855;
&and; / &#8743;
&or; / &#8870;

&perp; / &#8879;
&sdot; / &#8901;

&lceil; / &#8968;
&rceil; / &#8969;
&lfloor; / &#8970;
&rfloor; / &#8971;

&lang; / &#9001;
&rang; / &#9002;
&loz; / &#9674;

&spades; / &#9824;
&clubs; / &#9827;
&hearts; / &#9829;
&diams; / &#9830;
 
left arrow
right arrow
up arrow
down arrow
left-right arrow

left double-arrow/implies
right double-arrow/implies
up double-arrow
down double-arrow
&left-right double-arrow

for all
partial differential
there exists
empty

nabla (backward difference)
element of
not an element of
contains as member

n-ary product (product sign)
n-ary summation
minus


asterisk operator
square root (radical)
proportional to
infinity

angle
intersection (cap)
union (cup)
integral

therefore
similar to/varies with
congruent/approx equal
asymptotic to

not equal to
equivalent/identical
less than or equal to
greater than or equal

subset of
superset of
not a subset of
subset or equal to
superset or equal to

direct sum/circled plus
vector product/circled times
(logical) AND/wedge
(logical) OR/vee

perpendicular to/up tack
dot operator

left ceiling/apl upstile
right ceiling
left floor/apl downstile
right floor

left-pointing angle
right-pointing angle
lozenge

spades
clubs/shamrock
hearts/valentine
diamond
 
!
"
#
$
%
&
'
(
)
*
+
,
-
.
/
0
1
2
3
4
5
6
7
8
9
:
;
<
=
>
?
@
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
[
\
]
^
_
`
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
{
|
}
~
&#32;
&#33;
&#34;
&#35;
&#36;
&#37;
&#38;
&#39;
&#40;
&#41;
&#42;
&#43;
&#44;
&#45;
&#46;
&#47;
&#48;
&#49;
&#50;
&#51;
&#52;
&#53;
&#54;
&#55;
&#56;
&#57;
&#58;
&#59;
&#60;
&#61;
&#62;
&#63;
&#64;
&#65;
&#66;
&#67;
&#68;
&#69;
&#70;
&#71;
&#72;
&#73;
&#74;
&#75;
&#76;
&#77;
&#78;
&#79;
&#80;
&#81;
&#82;
&#83;
&#84;
&#85;
&#86;
&#87;
&#88;
&#89;
&#90;
&#91;
&#92;
&#93;
&#94;
&#95;
&#96;
&#97;
&#98;
&#99;
&#100;
&#101;
&#102;
&#103;
&#104;
&#105;
&#106;
&#107;
&#108;
&#109;
&#110;
&#111;
&#112;
&#113;
&#114;
&#115;
&#116;
&#117;
&#118;
&#119;
&#120;
&#121;
&#122;
&#123;
&#124;
&#125;
&#126;
space
exclamation mark
quotation mark
number sign
dollar sign
percent sign
ampersand
apostrophe
left parenthesis
right parenthesis
asterisk
plus sign
comma
hyphen
period
slash
digit 0
digit 1
digit 2
digit 3
digit 4
digit 5
digit 6
digit 7
digit 8
digit 9
colon
semicolon
less-than
equals-to
greater-than
question mark
at sign
uppercase A
uppercase B
uppercase C
uppercase D
uppercase E
uppercase F
uppercase G
uppercase H
uppercase I
uppercase J
uppercase K
uppercase L
uppercase M
uppercase N
uppercase O
uppercase P
uppercase Q
uppercase R
uppercase S
uppercase T
uppercase U
uppercase V
uppercase W
uppercase X
uppercase Y
uppercase Z
left square bracket
backslash
right square bracket
caret
underscore
grave accent
lowercase a
lowercase b
lowercase c
lowercase d
lowercase e
lowercase f
lowercase g
lowercase h
lowercase i
lowercase j
lowercase k
lowercase l
lowercase m
lowercase n
lowercase o
lowercase p
lowercase q
lowercase r
lowercase s
lowercase t
lowercase u
lowercase v
lowercase w
lowercase x
lowercase y
lowercase z
left curly brace
vertical bar
right curly brace
tilde
ASCII Device Control Characters
The ASCII device control characters were originally designed to control hardware devices.
Control characters have nothing to do inside an HTML document.

ASCII CharacterHTML Entity CodeDescription
NUL
SOH
STX
ETX
EOT
ENQ
ACK
BEL
BS
HT
LF
VT
FF
CR
SO
SI
DLE
DC1
DC2
DC3
DC4
NAK
SYN
ETB
CAN
EM
SUB
ESC
FS
GS
RS
US
DEL
&#00;
&#01;
&#02;
&#03;
&#04;
&#05;
&#06;
&#07;
&#08;
&#09;
&#10;
&#11;
&#12;
&#13;
&#14;
&#15;
&#16;
&#17;
&#18;
&#19;
&#20;
&#21;
&#22;
&#23;
&#24;
&#25;
&#26;
&#27;
&#28;
&#29;
&#30;
&#31;
&#127;
null character
start of header
start of text
end of text
end of transmission
enquiry
acknowledge
bell (ring)
backspace
horizontal tab
line feed
vertical tab
form feed
carriage return
shift out
shift in
data link escape
device control 1
device control 2
device control 3
device control 4
negative acknowledge
synchronize
end transmission block
cancel
end of medium
substitute
escape
file separator
group separator
record separator
unit separator
delete (rubout)
ASCII Colors
Color namesRGB valuesDescription
Black#000000
Silver#C0C0C0
Gray#808080
White#FFFFFF
Maroon#800000
Red#FF0000
Purple#800080
Fuchsia#FF00FF
Green#008000
Lime#00FF00
Olive#808000
Yellow#FFFF00
Orange#FF8000
Navy#000080
Blue#0000FF
Teal#008080
Aqua#00FFFF

Some other colors which I use are:
Color namesRGB values
Brownish red#AA0502
Reddish brown#880201
Milk chocolate#993311
Dark chocolate#400000

The html code for one row of cells is:
<tr><td style="color:#FFFFFF;background-color:#AA0502">Brownish red</td><td>#AA0502</td></tr>