HTML Entity Encoder / Decoder

Encode and decode HTML entities like & < > ". Safe for embedding in HTML.

Output:

 

What are HTML Entities?

HTML entities are special characters represented by codes that start with & and end with ;. They prevent HTML from interpreting characters as code (e.g. < for <, &amp; for &).

What is it used for?

  • Display in HTML: Show <, >, & and quotes in text
  • XSS prevention: Escape user input before rendering in HTML
  • Copy-paste from HTML: Decode entities when extracting content
  • Email templates: Safely embed special characters

Common entities

&amp; (&), &lt; (<), &gt; (>), &quot; ("), &#39; ('). Numeric entities like &#169; for ยฉ are also supported.