HTML Entity Encoder

Encode special characters like <, >, &, and " into HTML entities, or decode HTML entities back to readable text. All processing runs in your browser.

Your files never leave your device

Common entities
CharacterEntityDescription
&&amp;Ampersand
<&lt;Less than
>&gt;Greater than
"&quot;Double quote
'&#39;Apostrophe
&nbsp;Non-breaking space
©&copy;Copyright
®&reg;Registered
&trade;Trademark
&mdash;Em dash

How to HTML Entity Encoder

  1. Paste your text into the input area.
  2. Click "Encode" to convert special characters to HTML entities (&lt;, &gt;, &amp;, &quot;).
  3. Click "Decode" to convert HTML entities back to their original characters.
  4. Copy the output with the Copy button.

Why Use This Tool?

HTML encoding is essential for safely displaying user-generated content in web pages and preventing XSS vulnerabilities. This tool handles the conversion instantly without any risk of data leaving your device.

Frequently Asked Questions