Encode HTML
Encoded output below
Paste your text above to encode or decode HTML entities.Waiting
0Input Chars
0Output Chars
0Chars Escaped
0Lines
HTML Entity Reference
CharacterNameNamed EntityHex CodeCopy
&Ampersand&&
<Less Than&lt;&#x3C;
>Greater Than&gt;&#x3E;
"Double Quote&quot;&#x22;
'Single Quote&apos;&#x27;
Non-Breaking Space&nbsp;&#xA0;
©Copyright&copy;&#xA9;
®Registered&reg;&#xAE;
Trademark&trade;&#x2122;
Euro Sign&euro;&#x20AC;
£Pound Sign&pound;&#xA3;
¥Yen Sign&yen;&#xA5;
°Degree Sign&deg;&#xB0;
±Plus Minus&plusmn;&#xB1;
×Multiplication&times;&#xD7;
÷Division&divide;&#xF7;

When to use HTML encoding

Always encode user-generated content before inserting into HTML
Use &amp; instead of bare & inside href attributes
Encode code snippets to prevent browsers from rendering them
Use &nbsp; to add non-breaking spaces in HTML layouts
Decode to read raw text hidden inside encoded HTML emails
Encoding prevents XSS attacks in web applications