HTML Entity Encoder and Decoder

Converts special characters like <, >, &, ", ' into HTML entities (&lt;, &gt;, &amp;, &quot;, &#39;).

Input
Result
How to use
  1. 1.

    Paste your text into the Input panel

  2. 2.

    Click Encode to convert special characters to HTML entities, or Decode to reverse it

  3. 3.

    Copy the result

Common uses
  • Safely embedding user-generated content in an HTML page

  • Encoding characters like <, >, and & for display in a browser

  • Decoding HTML entities from scraped or copied web content