HTML Entity Encoder / Decoder
Convert special characters to HTML entities and back. Prevent XSS and fix encoding issues.
Common HTML Entities Reference
| Character | Entity | Description |
|---|---|---|
| & | & | Ampersand |
| < | < | Less than |
| > | > | Greater than |
| " | " | Double quote |
| ' | ' | Single quote |
| / | / | Forward slash |
| (space) | | Non-breaking space |
| © | © | Copyright |
| ® | ® | Registered |
| ™ | ™ | Trademark |
About HTML Entities
HTML entities are used to display reserved characters in HTML that would otherwise be interpreted as HTML code. For example, < displays a less-than sign instead of starting an HTML tag. Encoding user input is a key defense against XSS (Cross-Site Scripting) attacks. All processing happens locally in your browser.