Skip to tool

HTML Entity Encoder

Common entities
CharacterEntityDescription
&&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
About this tool

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

Privacy and details

Your files never leave your device.

Fast browser processing with no account required.

Optimized for desktop and mobile with accessible controls.

How to use
  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.