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 |
|---|---|---|---|---|
| < | < | < | < | Less than |
| > | > | > | > | Greater than |
| & | & | & | & | Ampersand |
| " | " | " | " | Quote |
| |   |   | Non-breaking space | |
| © | © | © | © | Copyright |
| ® | ® | ® | ® | 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