HTML Entity Encoder/Decoder
Encode special characters to HTML entities or decode them back.
Common HTML Entities
| Character | Entity | Description |
|---|---|---|
| & | & | Ampersand |
| < | < | Less than |
| > | > | Greater than |
| " | " | Double quote |
| ' | ' | Single quote |
| | Non-breaking space | |
| © | © | Copyright |
| ® | ® | Registered |
| ™ | ™ | Trademark |
| € | € | Euro |
| £ | £ | Pound |
| → | → | Right arrow |
| ← | ← | Left arrow |
| • | • | Bullet |
| … | … | Ellipsis |
| — | — | Em dash |
What are HTML Entities?
HTML entities are special codes used to represent characters that have special meaning in HTML or characters that cannot be easily typed on a keyboard. They start with an ampersand (&) and end with a semicolon (;).
Entity Types
- Named entities - Human-readable names like © for ©
- Decimal entities - Numeric codes like © for ©
- Hexadecimal entities - Hex codes like © for ©
Why Use HTML Entities?
- Prevent HTML parsing errors with characters like < and >
- Display characters not available on all keyboards
- Ensure consistent rendering across browsers
- Prevent XSS security vulnerabilities