Home › Free tools › Email Obfuscator

Email Address Obfuscator

Put your email address on your website without handing it to spam bots. Pick a protection method below and paste the code into your page.

Which method should I use?

Best protection: JavaScript. The address never appears in your page's code as one piece, so simple scraping bots can't read it. Visitors see and click a normal link. The only downside: it won't show if a visitor has JavaScript turned off, which is rare.

Works everywhere: HTML encoding. The address is written as character codes. Browsers show it normally, and many basic bots miss it, but smarter bots can decode it.

Plain text "name [at] domain [dot] com" fools some bots but annoys people, who have to retype it. A contact form is the only way to hide your address completely.

How to use the Email Obfuscator

  1. Type the email address you want to show on your website.
  2. Optionally type the link text (for example "Email us").
  3. Copy the code for the protection method you prefer.
  4. Paste it into your website's HTML where the email link should appear.

How bots find email addresses

Spam bots crawl websites looking for text that looks like an address, especially mailto links. Once harvested, an address is sold and reused on spam lists for years.

Obfuscation works because most bots only read the raw page code; they don't run JavaScript or decode character codes.

Using it with website builders

WordPress: add a Custom HTML block and paste the code. Wix and Squarespace: use an embed or code block.

If your builder strips scripts, use the HTML-encoded version instead, which works everywhere.

Related free tools

Frequently asked questions

Why hide my email address on my website?

Bots scan websites for email addresses and add them to spam lists. Obfuscation stops simple bots from reading the address while people still see and click it normally.

Which method is best?

The JavaScript method: the full address never appears in your page's code. HTML encoding works without JavaScript but stops fewer bots.

Does obfuscation stop all spam?

No. It stops most automated harvesting. A contact form is the only way to keep your address completely hidden.

Is it accessible for screen readers?

Yes. Both the JavaScript and HTML methods produce a normal clickable link that screen readers read correctly.

Will people still be able to click the email?

Yes. Both code methods create a normal clickable email link for visitors.

Should I still list my email if I have a contact form?

Many visitors prefer email, so showing a protected address alongside a form is a good balance.