Encode special characters to HTML entities for safe display and storage
| Character | Entity Name | Numeric Code | Description |
|---|---|---|---|
| < | < | < | Less than sign |
| > | > | > | Greater than sign |
| & | & | & | Ampersand |
| " | " | " | Double quotation mark |
| ' | ' | ' | Single quotation mark |
| © | © | © | Copyright symbol |
| ® | ® | ® | Registered trademark |
| € | € | € | Euro currency symbol |
HTML encoding converts special characters to HTML entities to prevent them from being interpreted as HTML code. This is essential for security and proper display of content.
Common use cases:
Why encode HTML:
Important Security Note:
Always encode user-generated content before displaying it on your website to prevent XSS attacks. This tool helps you test and implement proper encoding.