HTML Entity Encoder/Decoder

HTML entity encoder and decoder

Input
Output

Common HTML Entities

CharacterNamed EntityNumeric EntityDescription
<&lt;&#60;Less than
>&gt;&#62;Greater than
&&amp;&#38;Ampersand
"&quot;&#34;Double quote
'&apos;&#39;Single quote
&nbsp;&#160;Non-breaking space
©&copy;&#169;Copyright
®&reg;&#174;Registered trademark
™&trade;&#8482;Trademark
€&euro;&#8364;Euro

HTML Entity Encoder/Decoder Guide

Key Features

  • Named Entities - Use &name; format
  • Numeric Entities - Use &#dec; format
  • Hex Entities - Use &#xhex; format

Use Cases

  • HTML content escaping (XSS prevention)
  • Display special characters in HTML
  • Email template encoding

常见问题

相关工具