Skip to main content

HTML Entity Encoder & Decoder — Convert Special Chars

Convert special characters to HTML entities and vice versa with our HTML Entity Encoder. The tool supports three entity formats: named entities like  , decimal numeric entities like  , and hexadecimal entities like  . Choose whether to convert only special characters or all characters to named entities. Auto mode converts instantly as you type. Perfect for web developers who need to safely embed special characters in HTML code.

Features

  • Named Entities: Convert to standard HTML entities like  , <, >
  • Numeric Entities: Decimal ( ) or hexadecimal ( ) format
  • Bidirectional: Encode text to entities or decode entities to text
  • Auto-Convert: Real-time conversion as you type
  • Character Reference: Quick link to browse all available HTML entities
  • Download Support: Save results as text file

Common Use Cases

HTML Development

  • Display Code in HTML (<, >, &)
  • Special Characters in Attributes
  • Copyright & Trademark Symbols
  • Non-Breaking Spaces

Data Processing

  • XML/RSS Feed Content
  • Email Template Generation
  • Database Content Escaping
  • Internationalization (i18n)

Important Entities

Character Named Entity Decimal Hex Description
<&lt;&#60;&#x3C;Less than
>&gt;&#62;&#x3E;Greater than
&&amp;&#38;&#x26;Ampersand
"&quot;&#34;&#x22;Quote
 &nbsp;&#160;&#xA0;Non-breaking space
©&copy;&#169;&#xA9;Copyright
®&reg;&#174;&#xAE;Registered

View the complete list in our Character Reference

Useful Resources

Wikipedia: HTML Character Entities Beginner-friendly introduction to HTML character entities
HTML Standard: Named Character References Official WHATWG HTML specification for named entities
MDN: HTML Entities Comprehensive guide to HTML character entities
W3C: Using Character Escapes Best practices for using character escapes in markup and CSS