Escape HTML • Unescape Entities • Named & Hex Codes

HTML Entity Encoder & Decoder

Encode special characters into safe HTML entities (<, >, &) to prevent XSS injection, or decode entities back into readable plain text.

Raw Input Text227 chars
Escaped HTML Output

Why Encode Special HTML Entities?

In HTML, certain characters like <, >, and & are reserved as markup syntax delimiters. If you render raw user-submitted text containing these characters directly into an HTML webpage, the browser will interpret them as tags, potentially breaking page layouts or opening severe Cross-Site Scripting (XSS) vulnerabilities.

CharacterDescriptionNamed EntityDecimal EntityHex Entity
&Ampersand&amp;&#38;&#x26;
<Less than&lt;&#60;&#x3C;
>Greater than&gt;&#62;&#x3E;
"Double quotation mark&quot;&#34;&#x22;
'Single quote / Apostrophe&#39;&#39;&#x27;

Frequently Asked Questions

Named entities use mnemonic names (like &copy; for © or &euro; for €), which are easy for humans to read. Decimal entities use ASCII/Unicode numeric codes (like &#169;). Both render identically across modern web browsers.

Yes! Switch the mode to HTML Decode and paste your text containing entities like &amp; or &#8217;. ClickBasic will immediately unescape them into readable plain text.