HTML Entity Encoder/Decoder

Convert HTML special characters to entities and decode entities back to text

HTML/Text Input

0 characters

Entity Encoded Output

Usage Instructions

What are HTML Entities?

HTML entities are special character codes used to display reserved characters in HTML. They start with & and end with ;. For example, &lt; represents <, and &copy; represents ©. They prevent browser interpretation of special characters and enable display of symbols not on the keyboard.

Entity Types:

  • Named Entities: Human-readable names like &copy; for ©, &euro; for €
  • Decimal Entities: Numeric codes like &#169; for ©
  • Hexadecimal Entities: Hex codes like &#xA9; for ©

How to Use:

  1. Select "Encode" to convert HTML/text to entities, or "Decode" to reverse
  2. Choose entity type: Named (readable), Decimal, or Hexadecimal
  3. Check "Encode All" to encode all characters, not just special ones
  4. Enter your content in the input box
  5. The result appears automatically with statistics

Common Use Cases:

  • Displaying HTML code as text on web pages
  • Preventing XSS attacks by escaping user input
  • Including special characters (©, ™, ®) in HTML
  • Encoding XML/HTML attributes with quotes
  • Safely displaying user-generated content

About HTML Entity Encoder/Decoder

Comprehensive HTML entity encoder and decoder supporting named, decimal, and hexadecimal entity formats. Perfect for escaping HTML content, preventing XSS attacks, and displaying special characters safely. Features include multiple encoding formats (named entities like &copy;, decimal &#169;, hexadecimal &#xA9;), encode all characters option, swap functionality, and detailed statistics. Automatically handles all common HTML entities including copyright, trademark, currency symbols, and international characters. Essential for web development, content management, and secure HTML rendering.

Explore More Encoding

Discover all tools in the encoding category

Browse Category