HTML Entity Encoder/Decoder

Encode and decode HTML entities for safe web content

&Ampersand
&
<Less than
&lt;
>Greater than
&gt;
"Double quote
&quot;
'Single quote
&#39;
[ ]Non-breaking space
&nbsp;
©Copyright
&copy;
®Registered
&reg;
Trademark
&trade;
Euro
&euro;
£Pound
&pound;
Em dash
&mdash;

How to Use HTML Entity Encoder/Decoder

Encode HTML special characters to entities for safe embedding in web pages, or decode entities back to readable text.

  1. 1

    Choose Encode or Decode

    Select Encode to convert characters to entities, or Decode to convert entities back to characters.

  2. 2

    Paste your content

    Enter HTML content or entity-encoded text in the input area.

  3. 3

    Copy the result

    Click Copy to grab the encoded or decoded output.

Frequently Asked Questions

What are HTML entities?

HTML entities are special codes used to represent characters that have meaning in HTML, like < (&lt;), > (&gt;), and & (&amp;).

Why do I need to encode HTML?

Encoding prevents XSS attacks and ensures special characters display correctly in web pages instead of being interpreted as HTML tags.

Does it support named entities?

Yes, it supports both named entities (like &amp;) and numeric entities (like &#38;).

Is this tool free?

Yes, completely free with no signup required. All processing happens in your browser.

Related Tools