HTML Entity Encoder

Encode & Decode HTML Entities

Convert special characters to HTML entities for safe display in web pages.

What are HTML Entities?

HTML entities are special codes that represent characters that have special meaning in HTML, like < > &. Encoding prevents XSS attacks and ensures characters display correctly.

<&lt;Less than
>&gt;Greater than
&&amp;Ampersand
"&quot;Quote
'&#39;Apostrophe
©&copy;Copyright

Encode to Entities

Convert characters like < > & to safe HTML entities

Decode Entities

Convert HTML entities back to readable characters

Security: Why Encoding Matters

Dangerous (Without Encoding)
<script>alert('Hacked!')</script>
Safe (With Encoding)
&lt;script&gt;alert('Hacked!')&lt;/script&gt;