HTML Entity Encoder / Decoder
Encode special characters like <, >, &, and " into their HTML entity equivalents, or decode entity strings back to plain text. Essential for safely rendering user input, writing template strings, and debugging HTML payloads.
Plain text โ HTML entities
Result will appear here.
Common HTML Entities
| Character | Entity Name | Numeric | Description |
|---|---|---|---|
| & | & | & | Ampersand |
| < | < | < | Less than |
| > | > | > | Greater than |
| " | " | " | Double quote |
| ' | ' | ' | Single quote |
| |   | Non-breaking space | |
| ยฉ | © | © | Copyright |
| ยฎ | ® | ® | Registered trademark |
| โข | ™ | ™ | Trademark |
| โฌ | € | € | Euro sign |
| ยฃ | £ | £ | Pound sign |
| โ | — | — | Em dash |
Features
- Encodes all special HTML characters (&, <, >, ", ')
- Decodes numeric (<), hex (<), and named (<) entities
- Real-time preview as you type
- Handles both basic and extended HTML entities
- Useful for XSS prevention and email template debugging