HTML Entity Converter

Encode text to HTML entities and decode them back. Protect your code from XSS and display special characters correctly.

Input

0 characters
What are HTML Entities?

HTML entities are codes used to represent characters that have special meaning in HTML or that aren't easily typed on a keyboard. They help prevent XSS attacks and ensure special characters display correctly.

Output

0 characters
Common Entities
Examples
Character Entity Name Decimal Hexadecimal
< &lt; &#60; &#x3C;
> &gt; &#62; &#x3E;
& &amp; &#38; &#x26;
" &quot; &#34; &#x22;
© &copy; &#169; &#xA9;
® &reg; &#174; &#xAE;
&euro; &#8364; &#x20AC;
&trade; &#8482; &#x2122;
Original:
<script>alert('test')</script>
Encoded:
&lt;script&gt;alert(&#x27;test&#x27;)&lt;/script&gt;
Original:
"Hello & World" © 2023
Encoded:
&quot;Hello &amp; World&quot; &copy; 2023
Original:
Price: €25.99
Encoded:
Price: &euro;25.99