Email Privacy

Email Privacy — a free online tool.

Why obfuscate an email address

A plain mailto: link in your page's static HTML is easy for automated scrapers to harvest and add to spam lists. This builds a small snippet that assembles the email address from character codes at runtime using JavaScript, so a scraper reading your raw page source never sees the address as plain text, while real visitors with JavaScript enabled still see a normal, clickable email link.

Why character-code assembly specifically, rather than other tricks

Simpler obfuscation tricks (like writing the address as "name AT domain DOT com") require a human to mentally translate it back, hurting usability, while reversing or lightly scrambling the string is trivial for even basic scrapers to reverse. Assembling from numeric character codes at runtime keeps the visible result a perfectly normal, clickable link for real visitors while giving simple static-HTML scrapers nothing readable to extract.

What this protects against, and what it doesn't

This is a deterrent against simple scrapers, not a strong security measure - a scraper that executes JavaScript can still extract the address. It mainly stops the high-volume, low-effort harvesting that scans raw page markup for "@" patterns, which is still the overwhelming majority of address-harvesting bots in practice.

The trade-off worth knowing before using this

Because the link only appears once the script actually runs, visitors with JavaScript disabled (a very small minority, but not zero) won't see the link at all - if reaching that audience matters for a particular page, a contact form avoids this trade-off entirely while still protecting the address.

Vanliga frågor

Does this stop all spam harvesting?

No - it stops basic scrapers that only read static HTML. A scraper that runs JavaScript can still see the assembled address. For stronger protection, consider a contact form instead of displaying an email address at all.

Will this break for visitors with JavaScript disabled?

Yes - the link only appears once the script runs, so visitors with JavaScript disabled will not see it. This is an inherent trade-off of any JavaScript-based obfuscation technique.

Why use character codes instead of just reversing the text?

Reversing or lightly scrambling a string is trivial for even basic scrapers to reverse. Character-code assembly keeps the link fully normal for real visitors while giving static-HTML scrapers nothing readable to extract.

Is a contact form better than an obfuscated email link?

For maximum protection, yes - a contact form never displays the address at all. This tool is a good middle ground when you specifically want visitors to see and copy a real email link.

Can I customize the link text shown to visitors?

Yes - the optional link text field lets you show something other than the raw email address itself, like "Contact me" or "Email support", while still linking to the real address underneath.

Mer i Technical SEO & Site Management