HTML Encoder and Decoder

HTML stands for Hyper Text Markup Language, which is used for showing websites content into the users web browser. CSS and Javascript are used with HTML for designing content. When you want to show HTML code inside a HTML page then you need encoding. HTML encode actually change < and > character into "&lt;" and "&gt;". Also when we want to submit HTML content via GET or POST method then we also need HTML encoding.

What is HTML Encoder?

Browsers render HTML tags which start with < character and >. Some time we need to showing those characters inside html document. Then we require HTML encoding. Every HTML notation has a special textual representation like '<' encode as &lt; and '>' as &gt; HTML encoder encode thoser characters into "&lt;/ and '&gt;". HTML decoder do just oposit things. Restore original HTML tags from encoded text.

What is an HTML Decoder?

Our HTML encoder-decoder is an online tool you can use that free of cost. Also HTML encoder online tools will allow you to download or copy your encoded HTML text. From the same webtool you can perform HTML decoder operations. HTML Decoder restores original HTML text from encoded HTML text. HTML encoder/decoder is a very necessary tool for web developers. HTML encoder can be written using popular programming languages such as java, c#, javascript, python, PHP, nodejs etc. NodeJs package registry NPM has also an HTML encoder decoder package name html-encoder-decoder.

HTML entity encoding performs by transforming less than and greater than characters into their corresponding browser supported encoded text. HTML encode URL requires for requesting web servers. We do not obfuscate HTML. Our tools also can perform text to html encoder operations. It is a free online HTML encoder. If you have encoded HTML text then you can just copy your text and paste it into our tools it will decode that text and restore the original HTML text. Our online decoder is also a free webtool. You can decode HTML entities also. Our tool is also capable of HTML entities decode.

HTML Encoding

Our webtool converts HTML tags to their corresponding HTML entities. characters have specific meanings and all converted entity codes are equivalent to their original value. An HTML entity is a special code which begins with an ampersand "&" and ends with a semicolon ";". Entities are used for displaying reserved HTML characters, and nonprintable characters like line breaking, spaces, tabs, etc. HTML tags are surrounded with less than and greater than characters which are recognized as part of the HTML language by web browsers. So lessthen < cannot be written directly in the HTML content. Because browsers will recognize it as an opening HTML tag. That's why the entity code of < character in HTML will be encoded as "<" also for > will be written as ">".

HTML Decoding

HTML decoding is the reverse process of HTML encoding. Decoding restores the encoded HTML tags and special characters into their original HTML code and characters. Text area surrounded with "& code ;" into original browser supported HTML form. From our online decoder webtool you can also download or copy your decoded HTML text.

HTML Reserved Characters

Reserved HTML characters that our encoder/decoder tools can handle are given below in a table.

Character Entity name Description
" &quot; quotation mark
' &apos; apostrophe 
& &amp; ampersand
< &lt; less-than
> &gt; greater-than
  &nbsp; non-breaking space
¡ &iexcl; inverted exclamation mark
¢ &cent; cent
£ &pound; pound
¤ &curren; currency
¥ &yen; yen
¦ &brvbar; broken vertical bar
§ &sect; section
¨ &uml; spacing diaeresis
© &copy; copyright
ª &ordf; feminine ordinal indicator
« &laquo; angle quotation mark (left)
¬ &not; negation
­ &shy; soft hyphen
® &reg; registered trademark
¯ &macr; spacing macron
° &deg; degree
± &plusmn; plus-or-minus 
² &sup2; superscript 2
³ &sup3; superscript 3
´ &acute; spacing acute
µ &micro; micro
&para; paragraph
· &middot; middle dot
¸ &cedil; spacing cedilla
¹ &sup1; superscript 1
º &ordm; masculine ordinal indicator
» &raquo; angle quotation mark (right)
¼ &frac14; fraction 1/4
½ &frac12; fraction 1/2
¾ &frac34; fraction 3/4
¿ &iquest; inverted question mark
× &times; multiplication
÷ &divide; division
À &Agrave; capital a, grave accent
Á &Aacute; capital a, acute accent
 &Acirc; capital a, circumflex accent
à &Atilde; capital a, tilde
Ä &Auml; capital a, umlaut mark
Å &Aring; capital a, ring
Æ &AElig; capital ae
Ç &Ccedil; capital c, cedilla
È &Egrave; capital e, grave accent
É &Eacute; capital e, acute accent
Ê &Ecirc; capital e, circumflex accent
Ë &Euml; capital e, umlaut mark
Ì &Igrave; capital i, grave accent
Í &Iacute; capital i, acute accent
Î &Icirc; capital i, circumflex accent
Ï &Iuml; capital i, umlaut mark
Ð &ETH; capital eth, Icelandic
Ñ &Ntilde; capital n, tilde
Ò &Ograve; capital o, grave accent
Ó &Oacute; capital o, acute accent
Ô &Ocirc; capital o, circumflex accent
Õ &Otilde; capital o, tilde
Ö &Ouml; capital o, umlaut mark
Ø &Oslash; capital o, slash
Ù &Ugrave; capital u, grave accent
Ú &Uacute; capital u, acute accent
Û &Ucirc; capital u, circumflex accent
Ü &Uuml; capital u, umlaut mark
Ý &Yacute; capital y, acute accent
Þ &THORN; capital THORN, Icelandic
ß &szlig; small sharp s, German
à &agrave; small a, grave accent
á &aacute; small a, acute accent
â &acirc; small a, circumflex accent
ã &atilde; small a, tilde
ä &auml; small a, umlaut mark
å &aring; small a, ring
æ &aelig; small ae
ç &ccedil; small c, cedilla
è &egrave; small e, grave accent
é &eacute; small e, acute accent
ê &ecirc; small e, circumflex accent
ë &euml; small e, umlaut mark
ì &igrave; small i, grave accent
í &iacute; small i, acute accent
î &icirc; small i, circumflex accent
ï &iuml; small i, umlaut mark
ð &eth; small eth, Icelandic
ñ &ntilde; small n, tilde
ò &ograve; small o, grave accent
ó &oacute; small o, acute accent
ô &ocirc; small o, circumflex accent
õ &otilde; small o, tilde
ö &ouml; small o, umlaut mark
ø &oslash; small o, slash
ù &ugrave; small u, grave accent
ú &uacute; small u, acute accent
û &ucirc; small u, circumflex accent
ü &uuml; small u, umlaut mark
ý &yacute; small y, acute accent
þ &thorn; small thorn, Icelandic
ÿ &yuml; small y, umlaut mark

How do you decode a value in HTML?

Every encoded text has its corresponding character wich we have shown above table. Our online decoder tool uses that table for decoding value in HTML.

How do I decode a string in HTML?

Copy your encoded HTML string into our webtool input text box then click on the decode button it will show your original HTML text.

What is an HTML encoded string/code?

HTML has some reserved characters. So when you will try to put them into HTML code then that will break your existing page. Then you need to encode those characters for adding them to your HTML page. An encoded string is a special code of your character surrounded with ampersand "&" and semicolon ";".

What does HTML encoding do?

HTML encoding transforms HTML reserved characters into it's corresponding supported HTML entity code.

What is the difference between URL encoding and HTML encoding?

HTML encoder changes reserved characters into a special code so that it does not break existing HTML structure. URL encoder also replaces not supported characters contained in an URL.