HTML Entity Encoder & Decoder

Convert special characters to HTML entities and back. Supports named, numeric, and hex entity formats.

Input
Output

Common HTML Entities Reference

EntityCharNumericHexDescription
&&&&Ampersand
&lt;<&#60;&#x3C;Less than
&gt;>&#62;&#x3E;Greater than
&quot;"&#34;&#x22;Double quote
&apos;'&#39;&#x27;Apostrophe
&nbsp; &#160;&#xA0;Non-breaking space
&copy;©&#169;&#xA9;Copyright
&reg;®&#174;&#xAE;Registered
&trade;&#8482;&#x2122;Trademark
&euro;&#8364;&#x20AC;Euro sign
&pound;£&#163;&#xA3;Pound sign
&yen;¥&#165;&#xA5;Yen sign
&larr;&#8592;&#x2190;Left arrow
&uarr;&#8593;&#x2191;Up arrow
&rarr;&#8594;&#x2192;Right arrow
&darr;&#8595;&#x2193;Down arrow
&plus;+&#43;&#x2B;Plus sign
&minus;&#8722;&#x2212;Minus sign
&times;×&#215;&#xD7;Multiplication
&divide;÷&#247;&#xF7;Division
&ne;&#8800;&#x2260;Not equal
&le;&#8804;&#x2264;Less or equal
&ge;&#8805;&#x2265;Greater or equal
&infin;&#8734;&#x221E;Infinity
&deg;°&#176;&#xB0;Degree

About HTML Entity Encoding

HTML entities are used to display reserved characters in HTML. Characters like <, >, &, and " have special meaning in HTML and must be escaped to display correctly. This tool converts between raw characters and their entity representations.

Named entities use human-readable names (&amp;), numeric entities use decimal codes (&#38;), and hex entities use hexadecimal codes (&#x26;). All three forms are valid HTML.