HTML Entity Encoder
Encode and decode HTML entities, and turn an email address into a spam-resistant mailto: link.
HTML Entity Encoder FAQ
How do I encode HTML entities?
Keep Encode selected and paste your text. With Special characters, & < > " and ' become & < > " and ', which is what you need to show code or user text safely inside HTML.
How do I decode HTML entities like & or '?
Click Decode and paste the text. Named entities such as and ♥, and numeric ones such as ₹ or ₹, turn back into the characters they stand for.
What is the difference between named, decimal and hex entities?
They mean the same character. Named entities like © are easier to read; decimal (©) and hex (©) entities exist for every character, including ₹ and emoji, which have no common name.
How do I hide my email address from spam bots?
Choose Email link, enter your address and copy the HTML. Every character, including "mailto:", is written as an entity, so browsers show a normal link but simple bots that scan page code do not see the address. Determined harvesters can still decode it; a contact form hides it completely.
Do I need to encode characters like é or ₹ on a UTF-8 page?
Usually not: a page saved and served as UTF-8 can contain them directly. Encoding them helps in emails, old systems and places where the encoding is unknown.
Is my text uploaded?
No. Encoding and decoding happen in your browser and nothing is sent to a server or saved.