HTML Entity Encode / Decode

Convert between HTML special characters and entity encodings (named, decimal, hexadecimal).

Settings

Common HTML Entities

CharNamed EntityDecimalHexDescription
<&lt;&#60;&#x3C;Less-than sign
>&gt;&#62;&#x3E;Greater-than sign
&&amp;&#38;&#x26;Ampersand
"&quot;&#34;&#x22;Double quotation mark
'&apos;&#39;&#x27;Single quotation mark
&nbsp;&#160;&#xA0;Non-breaking space
©&copy;&#169;&#xA9;Copyright sign
®&reg;&#174;&#xAE;Registered trademark sign
&trade;&#8482;&#x2122;Trademark sign
¥&yen;&#165;&#xA5;Yen sign
&euro;&#8364;&#x20AC;Euro sign
&rarr;&#8594;&#x2192;Rightwards arrow

Usage

What is an HTML Entity

HTML entities display reserved characters (like <, >, &) or characters that cannot be typed directly (like ©, ¥) in HTML.

Three Encoding Methods

Named entities use readable names (e.g. &lt;); decimal entities use &#60;; hexadecimal entities use &#x3C;.

Encode and Decode

Encoding converts special characters into entities to avoid HTML parsing errors; decoding restores entities to original characters.