Skip to content

HTML Entity Converter

Encode and decode HTML entities instantly

Input

Output

Result will appear here

Examples

Common HTML Entities

CharacterEntityDecimalDescription
&&&Ampersand
<&lt;&#60;Less than
>&gt;&#62;Greater than
"&quot;&#34;Double quote
'&apos;&#39;Single quote
©&copy;&#169;Copyright
®&reg;&#174;Registered
™&trade;&#8482;Trademark
€&euro;&#8364;Euro sign
£&pound;&#163;Pound sign
°&deg;&#176;Degree sign
×&times;&#215;Multiplication
÷&divide;&#247;Division
±&plusmn;&#177;Plus/minus
…&hellip;&#8230;Ellipsis
–&ndash;&#8211;En dash
—&mdash;&#8212;Em dash
(nbsp)&nbsp;&#160;Non-breaking space
•&bull;&#8226;Bullet
→&rarr;&#8594;Right arrow

Frequently asked questions

What are the five essential HTML entities?

& (ampersand → &amp;), < (less-than → &lt;), > (greater-than → &gt;), " (double-quote → &quot;), and ' (single-quote → &#39;). These five characters have special meaning in HTML and must be escaped in attribute values and text content.

What is the difference between named, decimal, and hex entities?

Named entities use a human-readable keyword: &copy; for ©. Decimal entities use the Unicode code point in base-10: &#169;. Hex entities use base-16: &#xA9;. All three represent the same character — named is most readable; decimal/hex cover any Unicode character.

Does encoding prevent XSS attacks?

Encoding HTML entities is the primary defense for inserting untrusted text into HTML. Always encode user input before rendering it in a page. Note that context matters — use CSS escaping for style attributes and JavaScript escaping for script contexts.