HTML Encode/Decoder

Convert special characters to HTML entities and vice versa

About HTML Encoding

HTML encoding converts special characters to their corresponding HTML entities. This is useful when you need to:

  • Display HTML code on a webpage without it being rendered
  • Prevent XSS (Cross-Site Scripting) attacks
  • Ensure special characters display correctly in all browsers

Common encoded characters include:

  • < becomes &lt;
  • > becomes &gt;
  • & becomes &amp;
  • " becomes &quot;