HTML Entity Encoder / Decoder

Convert special characters to HTML entities and back. Prevent XSS and fix encoding issues.

Common HTML Entities Reference

CharacterEntityDescription
&&Ampersand
<&lt;Less than
>&gt;Greater than
"&quot;Double quote
'&#39;Single quote
/&#x2F;Forward slash
(space)&nbsp;Non-breaking space
©&copy;Copyright
®&reg;Registered
&trade;Trademark

About HTML Entities

HTML entities are used to display reserved characters in HTML that would otherwise be interpreted as HTML code. For example, < displays a less-than sign instead of starting an HTML tag. Encoding user input is a key defense against XSS (Cross-Site Scripting) attacks. All processing happens locally in your browser.