HTML Entity Encode/Decode

Convert HTML to entity encoding, or convert entity encoding back to HTML text.

HTML Entity Encoding Explanation

HTML entity encoding is used to represent special characters in HTML to prevent XSS attacks and handle special symbols.

Common conversions:

  • < converts to &lt;
  • > converts to &gt;
  • & converts to &amp;
  • " converts to &quot;
  • ' converts to &#39;