HTML Entity Encoder & Decoder
Convert text to numeric HTML entities - for email spam protection, privacy, and more
Entity Encoder
Convert text to HTML entities - each character becomes a numeric code like
A
(the letter A).
Entity Decoder
Convert HTML entities back to readable text - useful for checking or analyzing code.
What is an Entity Encoder?
An Entity Encoder converts each character of text into its numeric HTML entity
code. For example, the letter A becomes A - that's the ASCII code
for "A".
The browser displays the text normally, but the source code contains only a sequence of numbers. This makes it harder for simple bots and crawlers to recognize the actual content.
This is obfuscation, not real encryption! The text isn't "secret" - every browser automatically converts the codes back. The protection only works against simple scripts that scan source code for specific patterns.
Live Preview
This is how encoded text looks in the browser - identical to the original:
Original
info@example.com
Entity-Encoded
info@example.com
Both lines look identical - but in the source code, the second line is just numeric code:
info@example.com
What Can I Use This For?
1. Protect Email Addresses from Spam Bots
The most common use case: spam bots scan websites for the @ symbol or
mailto: links. If you convert your email address to entities, simple bots won't
find it anymore.
2. Obfuscate Phone Numbers
Phone numbers are also collected by bots. The same trick works just as well here.
3. Privacy Policies and Legal Pages
Required information like names and addresses must be on the website, but that doesn't mean they need to be readable by every crawler.
4. Safely Embed Unicode & Special Characters
Some characters cause problems in certain contexts. Entity encoding ensures they display correctly everywhere - regardless of the file's character encoding.
Real security requirements! If you need to truly protect sensitive data, you need server-side solutions, CAPTCHAs, or contact forms.