It’s clear that spammers harvest web pages for e-mail addresses. But the current crop of spam harvesters doesn’t appear to correctly parse addresses in all cases. You can thus easily foil the spambots by encoding part or all of your address before you put it on your web page.

There are two different types of encoding. The first type is used if you just include an e-mail address in HTML, and not a clickable link. This encoding changes each character in the e-mail address to its numeric HTML entity. It is still valid HTML, but viewing source shows the address is obfuscated.

The second method is used in the creation of a mailto: link. In this form, the address is URL-encoded so that the HTML source doesn’t show an obvious address.

To use the ofuscator, enter a string you wish to convert (such as an e-mail address) and it will be converted as you type. This is done entirely through JavaScript in your web browser, and isn’t submitted to this server; you can view the source of this web page to verify this.

Once you’ve built your obfuscated strings, you can build your link this way:

<a href="mailto:(url-encoded address)">(html-encoded address)</a>