To hide email from spam bots, encode a public address as numeric HTML character references inside a normal mailto anchor, then verify the published page; this can deter basic plaintext scrapers but will not stop bots that decode HTML. The Email Address Obfuscator does that conversion in your browser: it normalizes the address, turns every code point in the visible label and the complete mailto target into a decimal character reference, and provides a copy-ready anchor. A browser still displays the address and can open the visitor's configured email application when the link is clicked, but the generated source contains no literal address characters. That distinction can help against a basic scraper searching source text for an ordinary address pattern. However, the technique is obfuscation rather than security: modern crawlers can decode entities, inspect the DOM, or follow mailto links, while visitors can inspect or copy the rendered link. Use it only for a public contact address when lightweight source obscurity is acceptable; if meaningful abuse resistance matters, use a server-side contact form with validation, rate limiting, and appropriate spam controls.

What the obfuscated anchor changes
HTML supports character references that represent characters indirectly in source code. For example, the decimal numeric reference for lowercase a is written as a. Browsers decode these references while rendering the page, as described in the WHATWG HTML character references. The obfuscator applies that mechanism to every Unicode code point in both the visible email address and the href value, including the complete mailto prefix and address.
The result is ordinary HTML rather than JavaScript that assembles an address after the page loads. It does not depend on script execution, and it avoids adding JavaScript-related conflicts or failure points. The trade-off is that decoding is straightforward for any crawler or tool that understands HTML. The method changes how the address appears in source; it does not make the address inaccessible to visitors or capable bots.
| Approach | Source representation | Visitor result | Practical role |
|---|---|---|---|
| Plain address or mailto link | The address appears literally | Readable and clickable | Baseline publication with no source obscurity |
| Entity-only mailto anchor | The generated anchor contains numeric references instead of literal address characters | The browser renders the address and handles the click | May deter basic plaintext matchers, but it is not security |
| Protected contact form | Visitors receive a form rather than a published mailto address | The visitor submits a message | Supports meaningful abuse controls when paired with server-side validation, rate limiting, and spam filtering |
That table separates source obscurity from access control. Entity encoding can make an address less convenient for a simple scraper to find, but a contact form changes how people contact you and creates a better place to enforce controls on submissions.
Generate and publish the entity-only anchor
Use the obfuscator as a controlled publishing workflow rather than pasting a transformed address into an unfamiliar editor. The conversion itself runs locally in the browser, and the tool does not send mail or query the mailbox.
- Enter the public email address and generate the anchor. Use an address that you are willing to publish publicly. The tool trims and validates the address, normalizes the domain, converts each relevant code point to a decimal numeric reference, and produces one complete anchor containing the encoded visible label and encoded mailto target.
- Copy the complete HTML anchor. Copy the entire generated element rather than only the visible-looking address or a fragment of the href. Do not manually decode or rewrite individual references, because the complete output is what the tool has validated and formatted.
- Paste it into an HTML source template. Use a code view, source editor, template file, or another context that preserves raw HTML. Do not paste the generated markup into a rich-text editor that may render the references immediately and turn them back into ordinary characters.
- Publish the page and open the delivered version. Inspect the actual public page source rather than assuming the copied snippet survived the publishing system. Then test the mailto link and confirm that it points to the intended address.
- Use a protected contact form when stronger resistance is required. If the address must remain difficult for automated abuse, do not rely on the encoded anchor as the only defense. Use a server-side form with validation, rate limiting, and appropriate spam controls instead.
Keep the generated anchor inside a controlled template whenever possible. That makes the source easier to review, reduces the chance that a visual editor will rewrite it, and gives you a clear place to confirm the result after every deployment.
Verify the delivered page and mailto link
The copied snippet is not the final proof. A CMS, template engine, cache, or publishing workflow can transform the HTML after you paste it. Check three separate layers: what visitors see, what the delivered source contains, and where the link sends them when clicked.
| Check | Expected result | Warning sign |
|---|---|---|
| Rendered label | The full address is readable | Entity text appears instead of the address |
| Delivered source | Numeric references remain in the visible text and href, with no literal address characters in the generated anchor | The CMS decoded the references or changed their escaping |
| Mailto interaction | The configured email application receives the intended recipient | The link is incomplete or points to a different address |
If the CMS converts a character reference back into a literal character before publishing, the source-level obfuscation is gone. If the CMS escapes the ampersand again, the page may display entity text rather than the address. Both failures are easier to find by inspecting the delivered source and comparing it with the generated snippet. After correcting a template or CMS setting, republish and repeat the checks rather than relying on the earlier copy.
When you test the link, click it once and confirm the recipient in the email application that opens. A mailto link can expose the address when someone clicks it, copies the link, or inspects the rendered DOM. It may also launch the visitor's configured mail application, so the final interaction should be checked on the type of device and browser your audience uses.
Match protection to the level of risk
Entity encoding is appropriate when the goal is to remove an easy literal match from a public page while keeping a conventional clickable email link. It is not appropriate for a secret address, credential, private alias, or any other information that must remain undisclosed. The rendered link exposes the address to an attentive visitor, and modern bots can go beyond basic plaintext matching.
For meaningful abuse resistance, a server-side contact form gives you a submission endpoint where you can apply validation, rate limiting, and appropriate spam controls. The address need not be presented as a mailto link on that page, and the form does not depend on a browser decoding an obfuscated string.
Other practical layers include a dedicated public role address, a disposable address for a specific purpose, filtering rules, and mailbox-provider controls. These measures do not turn email obfuscation into a guarantee, but they can complement a broader anti-abuse setup without pretending that a crawler cannot decode HTML.
Input rules that determine whether generation succeeds
The validator is intentionally narrower than the full email-address standard. It supports a practical unquoted form for ordinary public website addresses rather than every mailbox syntax used by specialized systems. That deliberate restriction reduces the chance of accepting an address shape that cannot be represented reliably in the intended HTML workflow.
- The address is trimmed, must contain exactly one @, and requires a nonempty local part.
- The domain must contain multiple labels. Single-label hosts and IPv4 literals are rejected.
- Whitespace and control characters are not accepted. Leading, trailing, and consecutive dots in the local part are rejected.
- The local part keeps its original case and supported punctuation. Plus-addressing is covered by the tool's output tests.
- The domain is lowercased and passed through the browser URL host parser. An internationalized domain is serialized to its ASCII-compatible form so the output can be reproduced across browsers.
- Quoted local parts, comments, domain literals, unusual legacy forms, and other mailbox syntax outside the practical subset are not accepted.
Validation confirms the shape of the address; it does not establish that the mailbox exists or can receive messages. The tool neither sends a message nor queries a server, so publish and test the real link separately. If an unusual address is rejected, switch to an accepted public contact address or use a protected contact form rather than trying to force unsupported syntax into the anchor.
If you're weighing options, Meta Tag Generator: Basic HTML Head Metadata covers this in detail.
If you're weighing options, What Does 2 MB Mean in an HTML Page Weight Analyzer? covers this in detail.