This article has two parts, the first is the HTML Character Code Reference Table & the second part follows as Anti-spam Tips. The worldwide web is a mess because of scammers and spammers. All webmasters are required to know how to prevent the proliferation of scams and spam as a part of their job. In the interest of awareness, education and fairness, this document is offered as reference content for your website according to the conditions of republication. Republication methods and instructions on how to incorporate this article into your website are also available.
Name Codes | Number Codes | Character Description | Spam Prevention |
||
Code | Result | Code | Result | ||
� | unused & reserved (invalid code) | [BACK] [HOME] | |||
 | unused & reserved (invalid code) | ||||
 | unused & reserved (invalid code) | ||||
 | unused & reserved (invalid code) | ||||
 | unused & reserved (invalid code) | ||||
 | unused & reserved (invalid code) | ||||
 | unused & reserved (invalid code) | ||||
 | unused & reserved (invalid code) | ||||
 | unused & reserved (invalid code) | ||||
	 | horizontal tab | ||||
| linefeed (numerical code equivalent of <br> tag) | ||||
 | unused & reserved (invalid code) | ||||
 | unused & reserved (invalid code) | ||||
| unused & reserved (invalid code) | ||||
 | unused & reserved (invalid code) | ||||
 | unused & reserved (invalid code) | ||||
 | unused & reserved (invalid code) | ||||
 | unused & reserved (invalid code) | ||||
 | unused & reserved (invalid code) | ||||
 | unused & reserved (invalid code) | ||||
Name Codes | Number Codes | Character Description | Top of Doc Spam Prevention |
||
Code | Result | Code | Result | ||
 | unused & reserved (invalid code) | [BACK] [HOME] | |||
 | unused & reserved (invalid code) | ||||
 | unused & reserved (invalid code) | ||||
 | unused & reserved (invalid code) | ||||
 | unused & reserved (invalid code) | ||||
 | unused & reserved (invalid code) | ||||
 | unused & reserved (invalid code) | ||||
 | unused & reserved (invalid code) | ||||
 | unused & reserved (invalid code) | ||||
 | unused & reserved (invalid code) | ||||
 | unused & reserved (invalid code) | ||||
 | unused & reserved (invalid code) | ||||
  | space ( ) | ||||
! | ! | ! | ! | exclamation mark (!) | |
" | " | " | " | double quotation mark (") | |
# | # | # | # | number or pound sign (#) | |
$ | $ | $ | $ | dollar sign ($) | |
% | % | % | % | percent sign (%) | |
& | & | & | & | ampersand (&) or "and-sign" | |
' | ' | ' | ' | apostrophe (') | |
Name Codes | Number Codes | Character Description | Top of Doc Spam Prevention |
||
Code | Result | Code | Result | ||
( | ( | ( | ( | left parenthesis [(] | [BACK] [HOME] |
) | ) | ) | ) | right parenthesis [)] | |
* | * | * | * | asterisk (*) | |
+ | + | + | + | plus sign (+) | |
, | , | , | , | comma (,) | |
- | - | - | - | dash, hyphen or subtraction sign (-) | |
. | . | . | . | period (.) | |
⁄ | ⁄ | / | / | slash (/) | |
0 | 0 | 0 | 0 | number zero (0) | |
1 | 1 | 1 | 1 | number one (1) | |
2 | 2 | 2 | 2 | number two (2) | |
3 | 3 | 3 | 3 | number three (3) | |
4 | 4 | 4 | 4 | number four (4) | |
5 | 5 | 5 | 5 | number five (5) | |
6 | 6 | 6 | 6 | number six (6) | |
7 | 7 | 7 | 7 | number seven (7) | |
8 | 8 | 8 | 8 | number eight (8) | |
9 | 9 | 9 | 9 | number nine (9) | |
: | : | : | : | colon (:) | |
; | ; | ; | ; | semicolon (;) | |
Name Codes | Number Codes | Character Description | Top of Doc Spam Prevention |
||
Code | Result | Code | Result | ||
< | < | < | < | less-than sign (<) | [BACK] [HOME] |
= | = | = | = | equals sign (=) | |
> | > | > | > | greater-than sign (>) | |
? | ? | ? | ? | question mark (?) | |
@ | @ | @ | @ | "at" sign (@) | |
A | A | A | A | uppercase letter A | |
B | B | B | B | uppercase letter B | |
C | C | C | C | uppercase letter C | |
D | D | D | D | uppercase letter D | |
E | E | E | E | uppercase letter E | |
F | F | F | F | uppercase letter F | |
G | G | G | G | uppercase letter G | |
H | H | H | H | uppercase letter H | |
I | I | I | I | uppercase letter I | |
J | J | J | J | uppercase letter J | |
K | K | K | K | uppercase letter K | |
L | L | L | L | uppercase letter L | |
M | M | M | M | uppercase letter M | |
N | N | N | N | uppercase letter N | |
O | O | O | O | uppercase letter O | |
Name Codes | Number Codes | Character Description | Top of Doc Spam Prevention |
||
Code | Result | Code | Result | ||
P | P | P | P | uppercase letter P | [BACK] [HOME] |
Q | Q | Q | Q | uppercase letter Q | |
R | R | R | R | uppercase letter R | |
S | S | S | S | uppercase letter S | |
T | T | T | T | uppercase letter T | |
U | U | U | U | uppercas letter U | |
V | V | V | V | uppercase letter V | |
W | W | W | W | uppercase letter W | |
X | X | X | X | uppercase letter X | |
Y | Y | Y | Y | uppercase letter Y | |
Z | Z | Z | Z | uppercase letter Z | |
[ | [ | [ | [ | left square bracket ([) | |
\ | \ | \ | \ | backslash (\) | |
] | ] | ] | ] | right square bracket (]) | |
^ | ^ | ^ | ^ | caret (^) | |
_ | _ | _ | _ | underscore (underline) | |
` | ` | grave accent | |||
a | a | a | a | lowercase letter a | |
b | b | b | b | lowercase letter b | |
c | c | c | c | lowercase letter c | |
Name Codes | Number Codes | Character Description | Top of Doc Spam Prevention |
||
Code | Result | Code | Result | ||
d | d | d | d | lowercase letter d | [BACK] [HOME] |
e | e | e | e | lowercase letter e | |
f | f | f | f | lowercase letter f | |
g | g | g | g | lowercase letter g | |
h | h | h | h | lowercase letter h | |
i | i | i | i | lowercase letter i | |
j | j | j | j | lowercase letter j | |
k | k | k | k | lowercase letter k | |
l | l | l | l | lowercase letter l | |
m | m | m | m | lowercase letter m | |
n | n | n | n | lowercase letter n | |
o | o | o | o | lowercase letter o | |
p | p | p | p | lowercase letter p | |
q | q | q | q | lowercase letter q | |
r | r | r | r | lowercase letter r | |
s | s | s | s | lowercase letter s | |
t | t | t | t | lowercase letter t | |
u | u | u | u | lowercase letter u | |
v | v | v | v | lowercase letter v | |
w | w | w | w | lowercase letter w | |
Name Codes | Number Codes | Character Description | Top of Doc Spam Prevention |
||
Code | Result | Code | Result | ||
x | x | x | x | lowercase letter x | [BACK] [HOME] |
y | y | y | y | lowercase letter y | |
z | z | z | z | lowercase letter z | |
{ | { | { | { | left curly brace ({) | |
| | | | | | | | vertical bar character (|) | |
} | } | } | } | right curly brace (}) | |
~ | ~ | ~ | ~ | tilde (~) | (Also see tilde2) |
 | | unused | |||
€ | € | € | | Euro currency symbol () | |
 | | unused | |||
‚ | ‚ | ‚ | | single low 9 quote | |
ƒ | | footnote character | |||
„ | „ | „ | | double low-9 quote | |
… | ellipses | ||||
† | † | † | | dagger character | |
‡ | ‡ | ‡ | | double dagger | |
ˆ | | circumflex | |||
‰ | ‰ | ‰ | | per mill sign | |
Š | | tilde accented capital S | |||
‹ | ‹ | ‹ | | single left-pointing angle quote bracket | |
Name Codes | Number Codes | Character Description | Top of Doc Spam Prevention |
||
Code | Result | Code | Result | ||
Œ | | capital CE symbol | [BACK] [HOME] | ||
 | | unused | |||
 | | unused | |||
Ž | | tilde accented capital Z | |||
 | | unused | |||
 | | unused | |||
‘ | ‘ | ‘ | | left single quote mark | |
’ | ’ | ’ | | right single quote mark | |
“ | “ | “ | | left double quotes | |
” | ” | ” | | right double quotes | |
• | • | • | | bullet | |
– | – | – | | en dash | |
— | — | — | | em dash | |
˜ | ˜ | ˜ | | tilde (for accents & footnotes) | (Also see tilde) |
™ | ™ | ™ | | Trademark symbol | |
š | | tilde accented lowercase s | |||
› | › | › | | single right-pointing angle quote bracket | |
œ | | lowercase ce symbol | |||
 | | unused | |||
ž | | tilde accented lowercase z | |||
Ÿ | | umlaut accented capital Y | |||
Name Codes | Number Codes | Character Description | Top of Doc Spam Prevention |
||
Code | Result | Code | Result | ||
|   | nonbreaking space | [BACK] [HOME] | ||
¡ | ¡ | ¡ | ¡ | inverted exclamation | |
¢ | ¢ | ¢ | ¢ | cent sign | |
£ | £ | £ | £ | british sterling pound symbol | |
¤ | ¤ | ¤ | ¤ | general currency symbol | |
¥ | ¥ | ¥ | ¥ | yen symbol | |
¦ | ¦ | ¦ | ¦ | broken vertical bar or vertical dashed line | |
§ | § | § | § | section symbol | |
¨ | ¨ | ¨ | ¨ | umlaut | |
© | © | © | © | Copyright symbol | |
ª | ª | ª | ª | feminine ordinal | |
« | « | « | « | left angle quotes or double left arrow heads | |
¬ | ¬ | ¬ | ¬ | not sign | |
­ | | ­ | | soft hyphen | |
® | ® | ® | ® | Registered Trademark symbol | |
¯ | ¯ | ¯ | ¯ | macron accent | |
° | ° | ° | ° | degree sign | |
± | ± | ± | ± | plus or minus (aka: give or take) | |
² | ² | ² | ² | superscript two | |
³ | ³ | ³ | ³ | superscript three | |
Name Codes | Number Codes | Character Description | Top of Doc Spam Prevention |
||
Code | Result | Code | Result | ||
´ | ´ | ´ | ´ | acute accent | [BACK] [HOME] |
µ | µ | µ | µ | micro symbol | |
¶ | ¶ | ¶ | ¶ | paragraph symbol | |
· | · | · | · | middle dot or mid-space dot | |
¸ | ¸ | ¸ | ¸ | cedilla | |
¹ | ¹ | ¹ | ¹ | superscript one | |
º | º | º | º | masculine ordinal | |
» | » | » | » | right angled quotes or double right arrow heads | |
¼ | ¼ | ¼ | ¼ | one-fourth | |
½ | ½ | ½ | ½ | one-half | |
¾ | ¾ | ¾ | ¾ | three-fourths | |
¿ | ¿ | ¿ | ¿ | inverted question mark | |
À | À | À | À | grave accented capital A | |
Á | Á | Á | Á | acute accented capital A | |
 |  |  |  | circumflex accented capital A | |
à | à | à | à | tilde accented capital A | |
Ä | Ä | Ä | Ä | umlaut accented capital A | |
Å | Å | Å | Å | ring accented capital A | |
Æ | Æ | Æ | Æ | capital AE symbol | |
Ç | Ç | Ç | Ç | credila accented capital C | |
Name Codes | Number Codes | Character Description | Top of Doc Spam Prevention |
||
Code | Result | Code | Result | ||
È | È | È | È | grave accented capital E | [BACK] [HOME] |
É | É | É | É | acute accented capital E | |
Ê | Ê | Ê | Ê | circumflex accented capital E | |
Ë | Ë | Ë | Ë | umlaut accented capital E | |
Ì | Ì | Ì | Ì | grave accented capital I | |
Í | Í | Í | Í | acute accented capital I | |
Î | Î | Î | Î | circumflex accented capital I | |
Ï | Ï | Ï | Ï | umlaut accented capital I | |
Ð | Ð | Ð | Ð | capital ETH (Islandic) | |
Ñ | Ñ | Ñ | Ñ | tilde accented capital N | |
Ò | Ò | Ò | Ò | grave accented capital O | |
Ó | Ó | Ó | Ó | acute accented capital O | |
Ô | Ô | Ô | Ô | circumflex accented capital O | |
Õ | Õ | Õ | Õ | tilde accented capital O | |
Ö | Ö | Ö | Ö | umlaut accented capital O | |
× | × | × | × | multiplication sign | |
Ø | Ø | Ø | Ø | slashed capital O or null (nil) character | |
Ù | Ù | Ù | Ù | grave accented capital U | |
Ú | Ú | Ú | Ú | acute accented capital U | |
Û | Û | Û | Û | circumflex accented capital U | |
Name Codes | Number Codes | Character Description | Top of Doc Spam Prevention |
||
Code | Result | Code | Result | ||
Ü | Ü | Ü | Ü | umlaut accented capital U | [BACK] [HOME] |
Ý | Ý | Ý | Ý | acute accented capital Y | |
Þ | Þ | Þ | Þ | capital THORN (Islandic) | |
ß | ß | ß | ß | sharps (Duetsch) | |
à | à | à | à | grave accented lowercase a | |
á | á | á | á | acute accented lowercase a | |
â | â | â | â | circumflex accented lowercase a | |
ã | ã | ã | ã | tilde accented lowercase a | |
ä | ä | ä | ä | umlaut accented lowercase a | |
å | å | å | å | ring accented lowercase a | |
æ | æ | æ | æ | lowercase ae symbol | |
ç | ç | ç | ç | credilla accented lowercase c | |
è | è | è | è | grave accented lowercase e | |
é | é | é | é | acute accented lowercase e | |
ê | ê | ê | ê | circumflex accented lowercase e | |
ë | ë | ë | ë | umlaut accented lowercase e | |
ì | ì | ì | ì | grave accented lowercase i | |
í | í | í | í | acute accented lowercase i | |
î | î | î | î | circumflex accented lowercase i | |
ï | ï | ï | ï | umlaut accented lowercase i | |
Name Codes | Number Codes | Character Description | Top of Doc Spam Prevention |
||
Code | Result | Code | Result | ||
ð | ð | ð | ð | lowercase eth (Islandic) | [BACK] [HOME] |
ñ | ñ | ñ | ñ | tilde accented lowercase n | |
ò | ò | ò | ò | grave accented lowercase o | |
ó | ó | ó | ó | acute accented lowercase o | |
ô | ô | ô | ô | circumflex accented lowercase o | |
õ | õ | õ | õ | tilde accented lowercase o | |
ö | ö | ö | ö | umlaut accented lowercase o | |
÷ | ÷ | ÷ | ÷ | division sign | |
ø | ø | ø | ø | slashed lowercase O | |
ù | ù | ù | ù | grave accented lowercase u | |
ú | ú | ú | ú | acute accented lowercase u | |
û | û | û | û | circumflex accented lowercase u | |
ü | ü | ü | ü | umlaut accented lowercase u | |
ý | ý | ý | ý | acute accented lowercase y | |
þ | þ | þ | þ | lowercase thorn (Islandic) | |
ÿ | ÿ | ÿ | ÿ | umlaut accented lowercase y | |
Name Codes | Number Codes | Character Description | Top of Doc Spam Prevention |
||
Code | Result | Code | Result | ||
♠ | ♠ | card deck: spades suit mark | [BACK] [HOME] | ||
♣ | ♣ | card deck: clubs suit mark | |||
♥ | ♥ | card deck: hearts suit mark | |||
♦ | ♦ | card deck: diamonds suit mark | |||
‾ | ‾ | overline (overscore) | |||
← | ← | left arrow | |||
↑ | ↑ | up appow | |||
→ | → | right arrow | |||
↓ | ↓ | down arrow |
Top of Doc
[BACK] [HOME]
There are many important reasons for the above chart. Most specifically, it can be used as a reference for webmasters, web designers and site developers, as well as any one else who uses the HTML language for documents, help files and such. But the best reason that this chart is an especially handy reference resource for anyone who has a web page is: AS A DEFENSE AGAINST SPAM!
As webmasters/designers/developers we have to know enough to keep ourselves and our company/client out of trouble. We are responsible for protecting or brands, websites and business operations. And quite honestly, spam had killed my business several times back in the day, until I took proper actions to combat these scammers (over 50% of all email is spam and half of that are scams).
Unused numerical character codes are commented out within the table above in order to allow HTML code validation, but as new character codes will emerge (as standards evolve and browsers support them) they will be added. Place holders for them ensure an easy update.
There are many spiders crawling the web. Most are great, they index your web site and it might result in a listing in a search engine. But there are also a few evil spiders crawling the web which do nothing but collect valid email addresses for companies who's sole intention is to spam you. This practice has corrupted and ruined the original intention of the AUTHOR Meta Tag.
There are a number of ways of defeating these evil bots. One way is to never put an actual mailto: link on your web site which would reveal your email address. You can use a gif or jpeg image to communicate your email address, but that makes it difficult for the visitor because he or she has to copy your address down into his/her email client. There are better solutions.
A better way is to use a JavaScript script to break up the name and reassemble it in the browser. This option does require the visitor to have JavaScript enabled on his/her machine.
Another option is to use character codes for the letters instead of the letters themselves. All modern browsers which I am aware of are capable of viewing the number codes for each alphabetical and numerical character without any problem whatsoever. If you hear of one that does not support these codes, I would suggest upgrading to a version that does.
Still another option is to use some combination of all of the above methods. I prefer this method. Most spiders aren't JavaScript capable.
Nevertheless, even if you only use the numerical codes for each character, you have defeated most of the evil email collecting spam bots out there. At least, until they improve them. Which is why I opt to jumble the email addresses on my web site within JavaScript while using the HTML character codes provided above.
In order to use these codes, you will have to make sure that the web page you are using them on communicates with the browser so that the codes are interpretted correctly. Some content management systems disallow the use of javascript, while others interpret the codes into characters which defeats the purpose. So a tiny bit of page preparation is necessary.
If you are having too much difficulty with your blog or host, you could do something like grab an .info extension of your domain and park it at TNTParking.com for "free" (just be sure to add an ad to the bottom of the page that they will share with you, using it only 1/3 of the time), then use that domain to setup your contact page. You will have to use a "Content Template" to hold the Javascript and then call your %contact_info% from within the web page(s) for the domain.
It won't be much work with full featured hosts (such as Domain Hostmaster). Simply make sure your web page uses the correct character set code designation for your language and geographic area. Most English language web pages use one of the following lines inserted after the opening <HEAD> tag (either above or just below the <TITLE>Title of Your Page</TITLE> tag):
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
OR
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Note that the first Meta Tag specifies Western/Latin encoding and is correct for most of North America. The second Meta Tag specifies Unified TypeFace encoding system which is also correct for most of North America and even includes most European Nations. This is currently becoming the most common, now.
If your country uses different encoding, you should use that one.
If you would like to use the JavaScript method as well, take a look at the example code which I have created to securely display my email address, the code displays below. Using this method, you can get ideas for implementing this on your own web site as a measure of defense against spam. The following example is all ready for you to copy, paste into your page, and edit according to your needs.
<!-- BEGIN JavaScript Email Scramble: -->
<script language="Javascript">
<!--//Simple script for scrambling email names to hide them from spam spiders/bots by Doug Peters from Symbiotic Design.
//Enter the correct information required below:
emailuser = "User Name as Character Codes"
servernamehalf2 = "Encoded Second Half of Server Name"
servernamehalf1 = "Encoded First Half of Domain Name"
domainextension = ".com" //(Currently: .com)
document.write("<a href='mailto:" + emailuser + "@" + servernamehalf1 + servernamehalf2 + domainextension + "' ");
//Change the font-family, font-color and font-size below:
document.write("style='font-family:Arial,Helvetica,sans-serif;font-size:larger;color:red;'>");
document.write("<font color='ff0000'>");
document.write(emailuser + "@" + servernamehalf1 + servernamehalf2 + domainextension);
document.write("</a>");
//-->
</script>
<!-- /END JavaScript Email Scramble -->
You can also check out the source code I used to display my email address, below. Simply view the source code for this page in your browser and take a look at the code which resides between the <!-- BEGIN JavaScript Email Scramble: --> and <!-- /END JavaScript Email Scramble --> tags to see how I implemented the script for my email address.
You are also welcome to use my email address to write me if you would like to update me on new codes, send me a query, comment, caveat or criticism. Just, don't spam me, bro! ;)
The alphanumeric and common numerical codes usually relevant for email characters are highlighted in the Number Code column for easier identification. For easier retrieval, you may jump to the lowercase letters, uppercase letters, or numerical digits, sections. You also may want quick reference to the at-sign, as well as the dash, underscore, period and tilde characters.
Top of Doc
[BACK] [HOME]
Doug Peters is a professional designer and brand expert. Doug is the Creative Director of Symbiotic Design as well as a multi-talented Entrepreneur. Doug Peters designs logos, brands, online portfolios, advertising & marketing campaigns, manages intellectual properties and runs a number of websites for himself as well as for clients. This document was originally written by Doug Peters in 2001 and referenced several sources, but none of them were accurate or easily understandable. Hence, this document was established to avoid the incredible confusion that the others created. The code for this page has since been updated to utilize the HTML5 & CSS3 standards. This document was last updated and Copyright Doug Peters on Thursday, October 29, 2020 5:57 AM
Doug Peters Domain Hostmaster WDADG Symbiotic Design Font-Journal Standard Logo HTML Character Code
phpinfo() File Meta Tag & SEO Robots File Faviconvert Hyperlink Directory Glossary Index Resell Domains & Hosting
Top of Doc
[BACK] [HOME]