HTML Entity Encoder/Decoder Online | HTML Special Character Tool

Online HTML entity encoding and decoding tool. Convert special characters to HTML entities and vice versa. Support named, decimal, and hexadecimal entity formats.

HTML Encode/Decode

Instructions

  • Encode: Convert special characters to HTML entities (e.g. < becomes &lt;)
  • Decode: Convert HTML entities back to characters
  • Supports named entities, decimal, and hexadecimal formats

Common HTML Entities Reference

CharNamedDecimalHexDescription
<&lt;&#60;&#x3C;Less Than
>&gt;&#62;&#x3E;Greater Than
&&amp;&#38;&#x26;Ampersand
"&quot;&#34;&#x22;Double Quote
'&#39;&#39;&#x27;Single Quote
&nbsp;&#160;&#xA0;Non-breaking Space
©&copy;&#169;&#xA9;Copyright
®&reg;&#174;&#xAE;Registered Symbol
&trade;&#8482;&#x2122;Trademark
&euro;&#8364;&#x20AC;Euro Sign

HTML Entities Knowledge

What is HTML Entities?

HTML entities are pieces of text that begin with an ampersand (&) and end with a semicolon (;). They are used to display reserved characters (which would otherwise be interpreted as HTML code) and invisible characters.

Common Entities

< (&lt;), > (&gt;), & (&amp;), " (&quot;), ' (&#39;), Space (&nbsp;)

Key Features

  • Prevents XSS attacks by escaping user input
  • Displays characters not present in standard keyboard
  • Ensures correct rendering of reserved characters

Common Applications

  • Web development and debugging
  • Content management systems
  • Data sanitization
  • Email template creation
HTML Entity Encoder/Decoder Online | HTML Special Character Tool