Email Encoder
Protect your emails from spammers by encoding your email address within your website.
FAQ
How does obfuscation protect my email?
Obfuscation raises the bar for most harvesting bots by not exposing the raw email in the page source. Instead of appearing in plain text within your site’s code, the address is encoded and only decoded in the visitor’s browser using JavaScript. To your visitors it looks completely normal, but automated bots will find it much harder to read.
What do I need to do?
After completing the form with your specific details, there are two parts to implement the code within your website:
- Insert the JavaScript where you keep other scripts or within the
<head>
of the page. - Either copy the HTML provided or add your own
<span>
elements, with the class name you’ve specified, which will be switched out for your email address.
If you want control over the text within the page, enter some text such as “email us” or use multiple underscores “_” to have the email address written out there.
Will screen readers be able to cope with email obfuscation?
Yes, provided the screen readers read the page’s content shortly after loading.
Will my website take a hit to its performance once I add this?
No. The changes to your website should be minimal. If an email address is displayed, there is a slight delay as the placeholder text is switched out — this is intentional to improve its effectiveness.
What is it with the underscores and the ­
?
If you want your email to show on the page, add placeholder text so the layout doesn’t jump when the script swaps it out. Use ­
to break up long strings of underscores.
Do you store the email addresses I enter?
No, absolutely not. The whole point of this tool is to help you share your email address safely so that people, not bots, can read it. We don’t collect, resell or use your email addresses in any way.
Is my email address completely safe from spam once I use the code?
It will be much safer, but anything that can be read by a person could, potentially, be read by a spam bot. However, this script is robust and will give you the best level of protection available. It’s definitely much safer than leaving your email address in plain text on your site.