PUBLIC.INTERNET

Email Encoder

This tool converts each character of an email address into an HTML character reference such as a (decimal) or a (hex). Browsers decode these when they render the page, so visitors see a normal address, but the raw source no longer contains it as a plain string. You get a copy-ready string and a clickable mailto: preview of the plain address. The output is only the encoded address, not a full link.

How to encode an address

  1. Type an address in Enter Your Email Address. It must look like name@domain.tld.
  2. Choose an Encoding Type: HTML Decimal Entities, HTML Hex Entities, or Mixed, which picks decimal or hex at random for each character.
  3. Click Encode Email. The entity string appears under HTML Code, and the preview link shows how a visitor sees the address.
  4. Click Copy HTML Code and paste the string into your HTML. For a clickable link, wrap it yourself, for example <a href="mailto:...">...</a>, using the same string in both places.

What entity encoding protects against, and what it does not

Many simple scrapers use a regular expression for name@domain on the raw HTML. Entity-encoded text does not match that pattern, so those scrapers skip it. A plain address in the markup is the easiest thing to harvest, which is why even a weak transform filters out some automated collection. A browser, or any scraper that parses HTML and reads text content, decodes the entities and sees the address as normal.

That makes this a speed bump, not a lock. Any bot that runs an HTML parser can read the address, and the decimal and hex forms are both standard, so Mixed adds randomness but no real strength. For addresses you cannot afford to expose, use a contact form or a server-side redirect.

Entities work in both link text and the href attribute, because browsers decode them in both. They do not work inside <script> blocks or JSON, where the characters are not parsed as HTML. The tool encodes every character, the @ and the dot included, so no fragment of the address survives as plain text in your markup.