Free Tool

HTML Entity Encoder & Decoder

Encode special characters as HTML entities (&, <, >, ") or decode HTML entities back to their original characters.

HTML Entity Encoder

HTML Entity Decoder

Common HTML Entities

&&
&lt;<
&gt;>
&quot;"
&#39;'
&nbsp;
&copy;©
&reg;®
&trade;
&mdash;
&euro;
&hellip;

What are HTML entities?

HTML entities are sequences like &amp;, &lt;, and &gt; used to represent characters that have special meaning in HTML. Without encoding, a < in text content would be interpreted as the start of a tag.

How to use

  1. To encode: paste plain text or HTML in the top input and click Encode →.
  2. To decode: paste entity-encoded HTML in the bottom input and click Decode →.
  3. Copy the output using the Copy button.

All encoding happens in your browser — nothing is sent to any server.

Frequently Asked Questions

Which entities are encoded?
All characters with HTML entity equivalents are encoded, including &, <, >, ", ', and all non-ASCII characters.
Is this tool free?
Yes, completely free with no sign-up required.