HTML Entity Encoder

Encode and decode HTML entities with a reference table.

Input
Output
Quick Reference
CharacterEntityDescription
&&Ampersand
<&lt;Less than
>&gt;Greater than
"&quot;Double quote
'&#39;Single quote
 &nbsp;Non-breaking space
©&copy;Copyright
®&reg;Registered
™&trade;Trademark
–&ndash;En dash
—&mdash;Em dash
‘&lsquo;Left single quote
’&rsquo;Right single quote
“&ldquo;Left double quote
”&rdquo;Right double quote
…&hellip;Ellipsis
×&times;Multiplication
÷&divide;Division
About HTML Entity Encoder/Decoder

HTML entities are special sequences used to represent reserved characters and symbols in HTML. Characters like <, >, and & have special meaning in HTML and must be encoded to display correctly.

Named entities use human-readable names like &amp; and &lt;. Numeric entities use decimal (&#38;) or hexadecimal (&#x26;) code points to represent any Unicode character.

This tool encodes all special and non-ASCII characters to their HTML entity equivalents, and decodes named, decimal, and hexadecimal entities back to characters. All processing happens locally in your browser.