HTML Entity Encoder / Decoder

Encode and decode HTML entities online. Convert special characters to named, decimal, or hex entities. Free, client-side, no data uploaded.

Common HTML Entities Reference
<&lt;
>&gt;
&&amp;
"&quot;
'&#39;
 &nbsp;
©&copy;
®&reg;
&trade;
&euro;
£&pound;
¥&yen;
°&deg;
&mdash;
&ndash;
&hellip;
&larr;
&rarr;
×&times;
÷&divide;

HTML entity encoding explained

HTML entities replace characters that are reserved in HTML or not available on standard keyboards. The five mandatory encodings are: &lt; for <, &gt; for >, &amp; for &, &quot; for double quotes inside attributes, and &#39; for single quotes. Using raw < or & in HTML content can break the parser or create security vulnerabilities (XSS).

Encoding modes

  • Named entities use human-readable names like &copy; and &trade;. Not all characters have named entities.
  • Decimal entities use the Unicode code point number, like &#169; for the copyright sign. Works for any character.
  • Hex entities use the hexadecimal code point, like &#xA9;. Preferred in XML and newer HTML specs.

Frequently Asked Questions

Is my data sent to a server? No. All encoding and decoding happens entirely in your browser. Nothing is uploaded.

Which encoding mode should I use? Named entities are the most readable for common characters. Use decimal or hex when you need to encode characters that do not have named entities, or when working with XML/XHTML.