HTML Entity Encoder / Decoder

New

Encode and decode HTML entities with a searchable reference table of 100+ named entities.

Free Forever
No Signup Required
No Files Stored

HTML Entity Reference

CharNamedNumericDescription
&&&Ampersand
<&lt;&#60;Less-than sign
>&gt;&#62;Greater-than sign
"&quot;&#34;Quotation mark
'&apos;&#39;Apostrophe
&nbsp;&#160;Non-breaking space
©&copy;&#169;Copyright sign
®&reg;&#174;Registered sign
&trade;&#8482;Trade mark sign
&euro;&#8364;Euro sign
£&pound;&#163;Pound sign
¥&yen;&#165;Yen sign
¢&cent;&#162;Cent sign
§&sect;&#167;Section sign
&para;&#182;Pilcrow (paragraph)
&bull;&#8226;Bullet
&hellip;&#8230;Horizontal ellipsis
&ndash;&#8211;En dash
&mdash;&#8212;Em dash
&larr;&#8592;Leftwards arrow
&rarr;&#8594;Rightwards arrow
&uarr;&#8593;Upwards arrow
&darr;&#8595;Downwards arrow
&harr;&#8596;Left right arrow
&spades;&#9824;Black spade suit
&clubs;&#9827;Black club suit
&hearts;&#9829;Black heart suit
&diams;&#9830;Black diamond suit
½&frac12;&#189;Vulgar fraction one half
¼&frac14;&#188;Vulgar fraction one quarter
¾&frac34;&#190;Vulgar fraction three quarters
±&plusmn;&#177;Plus-minus sign
×&times;&#215;Multiplication sign
÷&divide;&#247;Division sign
°&deg;&#176;Degree sign
µ&micro;&#181;Micro sign
α&alpha;&#945;Greek small letter alpha
β&beta;&#946;Greek small letter beta
γ&gamma;&#947;Greek small letter gamma
δ&delta;&#948;Greek small letter delta
ε&epsilon;&#949;Greek small letter epsilon
π&pi;&#960;Greek small letter pi
σ&sigma;&#963;Greek small letter sigma
Ω&Omega;&#937;Greek capital letter omega
&infin;&#8734;Infinity
&radic;&#8730;Square root
&sum;&#8721;N-ary summation
&int;&#8747;Integral
&asymp;&#8776;Almost equal to
&ne;&#8800;Not equal to
&le;&#8804;Less-than or equal to
&ge;&#8805;Greater-than or equal to
¡&iexcl;&#161;Inverted exclamation mark
¿&iquest;&#191;Inverted question mark
À&Agrave;&#192;Latin capital letter A with grave
Á&Aacute;&#193;Latin capital letter A with acute
Â&Acirc;&#194;Latin capital letter A with circumflex
Ã&Atilde;&#195;Latin capital letter A with tilde
Ä&Auml;&#196;Latin capital letter A with diaeresis
Å&Aring;&#197;Latin capital letter A with ring above
Æ&AElig;&#198;Latin capital letter AE
Ç&Ccedil;&#199;Latin capital letter C with cedilla
È&Egrave;&#200;Latin capital letter E with grave
É&Eacute;&#201;Latin capital letter E with acute
Ê&Ecirc;&#202;Latin capital letter E with circumflex
Ë&Euml;&#203;Latin capital letter E with diaeresis
Ì&Igrave;&#204;Latin capital letter I with grave
Í&Iacute;&#205;Latin capital letter I with acute
Î&Icirc;&#206;Latin capital letter I with circumflex
Ï&Iuml;&#207;Latin capital letter I with diaeresis
Ñ&Ntilde;&#209;Latin capital letter N with tilde
Ò&Ograve;&#210;Latin capital letter O with grave
Ó&Oacute;&#211;Latin capital letter O with acute
Ô&Ocirc;&#212;Latin capital letter O with circumflex
Ö&Ouml;&#214;Latin capital letter O with diaeresis
Ø&Oslash;&#216;Latin capital letter O with stroke
Ù&Ugrave;&#217;Latin capital letter U with grave
Ú&Uacute;&#218;Latin capital letter U with acute
Û&Ucirc;&#219;Latin capital letter U with circumflex
Ü&Uuml;&#220;Latin capital letter U with diaeresis
ß&szlig;&#223;Latin small letter sharp s
à&agrave;&#224;Latin small letter a with grave
á&aacute;&#225;Latin small letter a with acute
â&acirc;&#226;Latin small letter a with circumflex
ã&atilde;&#227;Latin small letter a with tilde
ä&auml;&#228;Latin small letter a with diaeresis
å&aring;&#229;Latin small letter a with ring above
æ&aelig;&#230;Latin small letter ae
ç&ccedil;&#231;Latin small letter c with cedilla
è&egrave;&#232;Latin small letter e with grave
é&eacute;&#233;Latin small letter e with acute
ê&ecirc;&#234;Latin small letter e with circumflex
ë&euml;&#235;Latin small letter e with diaeresis
ì&igrave;&#236;Latin small letter i with grave
í&iacute;&#237;Latin small letter i with acute
î&icirc;&#238;Latin small letter i with circumflex
ï&iuml;&#239;Latin small letter i with diaeresis
ñ&ntilde;&#241;Latin small letter n with tilde
ò&ograve;&#242;Latin small letter o with grave
ó&oacute;&#243;Latin small letter o with acute
ô&ocirc;&#244;Latin small letter o with circumflex
ö&ouml;&#246;Latin small letter o with diaeresis
ø&oslash;&#248;Latin small letter o with stroke
ù&ugrave;&#249;Latin small letter u with grave
ú&uacute;&#250;Latin small letter u with acute
û&ucirc;&#251;Latin small letter u with circumflex
ü&uuml;&#252;Latin small letter u with diaeresis
×&times;&#215;Multiplication sign
¬&not;&#172;Not sign
¦&brvbar;&#166;Broken bar
¯&macr;&#175;Macron
´&acute;&#180;Acute accent
¸&cedil;&#184;Cedilla
&lsaquo;&#8249;Single left-pointing angle quotation
&rsaquo;&#8250;Single right-pointing angle quotation
«&laquo;&#171;Left-pointing double angle quotation
»&raquo;&#187;Right-pointing double angle quotation
"&ldquo;&#8220;Left double quotation mark
"&rdquo;&#8221;Right double quotation mark
'&lsquo;&#8216;Left single quotation mark
'&rsquo;&#8217;Right single quotation mark

Embed this tool

Add this tool to your website or blog with a single iframe snippet.

<iframe src="https://dukotools.com/tools/html-entity-encoder?embed=1" width="100%" height="600" frameborder="0" allow="clipboard-write" loading="lazy" title="html-entity-encoder tool"></iframe>

About HTML Entity Encoder / Decoder

HTML Entity Encoder and Decoder handles the conversion between readable characters and their HTML entity representations in real time. The Encode tab takes any plain text and converts characters to HTML entities — essential for safely displaying user input in HTML and preventing XSS injection. The Decode tab reverses the process converting entity references back to their character equivalents. The searchable HTML entity reference table below the tool is a comprehensive resource covering 100 named entities with character, named entity form, numeric entity form, and description. Searchable by character, entity name, or description, it doubles as a quick reference during development.

Key Features

  • Real-Time Encoding

    Encodes text to HTML entities instantly with no button press required.

  • Real-Time Decoding

    Decodes HTML entities back to characters instantly.

  • Selective Encoding Modes

    Encode only the five critical HTML special chars or all non-ASCII characters.

  • Searchable Entity Reference

    Table of 100+ named HTML entities searchable by character, name, or description.

  • Numeric Entity Support

    Shows both named and numeric entity forms for every character.

How to Use

  1. 1

    Select Encode or Decode tab

    Choose Encode to convert text to HTML entities or Decode to reverse the process.

  2. 2

    Paste or type input

    Enter text in the input textarea. The output updates in real time.

  3. 3

    Choose encoding mode

    Toggle between encoding all non-ASCII characters or only the five critical HTML special characters.

  4. 4

    Copy the output

    Click Copy to grab the encoded or decoded result.

  5. 5

    Search the reference table

    Use the search box below to look up any HTML entity by character, name, or description.

Real-World Use Cases

Safe User Input Display

A developer encodes user-submitted comments before rendering them as HTML to prevent XSS injection attacks.

Email Template Development

An email developer encodes special characters in HTML email templates to ensure they render correctly across email clients.

CMS Content Sanitisation

A CMS developer uses the encoder to process user-submitted rich text before storing it in a database.

Frequently Asked Questions

Related Free Tools