HTML Entity Encoder & Decoder

Encode special characters to HTML entities or decode them back to readable text.

& & Ampersand
&lt; < Less than
&gt; > Greater than
&quot; " Double quote
&apos; ' Apostrophe
&nbsp; Non-breaking space
&copy; © Copyright
&reg; ® Registered
&trade; ™ Trademark
&euro; € Euro sign
&pound; £ Pound sign
&yen; ¥ Yen sign
&#39; ' Apostrophe (numeric)
&mdash; — Em dash
&ndash; – En dash
&hellip; … Ellipsis
&laquo; « Left guillemet
&raquo; » Right guillemet
Input — Raw Text
Size: 0 B Lines: 0
Output — Encoded
Encoded output will appear here...
Size: 0 B Entities: 0

How to Use

  1. Select Encode or Decode mode
  2. Paste or type your text in the Input panel
  3. Optionally toggle which characters to encode (quotes, apostrophes, non-ASCII)
  4. Click Encode (or Decode) to convert
  5. Click Copy to copy the result, or Swap to move output to input

Common HTML Entities

Character Entity Name Entity Number Description
& &amp; &#38; Ampersand
< &lt; &#60; Less than
> &gt; &#62; Greater than
" &quot; &#34; Double quote
' &apos; &#39; Apostrophe
&nbsp; &#160; Non-breaking space
© &copy; &#169; Copyright
® &reg; &#174; Registered
&trade; &#8482; Trademark
&euro; &#8364; Euro sign
£ &pound; &#163; Pound sign
¥ &yen; &#165; Yen sign