HTML Encoder

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

Input Text

Encoded Output

<div class=&quot;container&quot;>Hello & welcome!</div>

HTML Entity Reference

& → &
< to &lt;
> to &gt;
" → "
' → '
space →  

Security: HTML encoding prevents XSS (Cross-Site Scripting) attacks by converting potentially dangerous characters into their safe entity equivalents.