Skip to main content
DevTools24

HTML Entity Encoder/Decoder

Encode special characters to HTML entities or decode entity codes back to their original characters.

&&
<&lt;
>&gt;
"&quot;
'&#39;
&nbsp;
©&copy;
®&reg;
&trade;
&euro;
£&pound;
¥&yen;

HTML Entities - Technical Details

HTML entities are used to represent special characters that have meaning in HTML. For example, less-than becomes &lt; and ampersand becomes &amp;. This prevents browsers from interpreting these as HTML markup.

Command-line Alternative

// Common HTML entities
&lt;   →  <
&gt;   →  >
&amp;  →  &
&quot; →  "
&#39;  →  '