HTML Entity Encoder/Decoder
Convert HTML special characters to entities and decode entities back to text
HTML/Text Input
0 charactersEntity 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, < represents <, and © 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 © for ©, € for €
- Decimal Entities: Numeric codes like © for ©
- Hexadecimal Entities: Hex codes like © for ©
How to Use:
- Select "Encode" to convert HTML/text to entities, or "Decode" to reverse
- Choose entity type: Named (readable), Decimal, or Hexadecimal
- Check "Encode All" to encode all characters, not just special ones
- Enter your content in the input box
- 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 ©, decimal ©, hexadecimal ©), 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