HTML Entity Encoder/Decoder
Input
Output
Output will appear here...
Common HTML Entities
Character | Entity | Description |
---|---|---|
& | & | Ampersand |
< | < | Less than |
> | > | Greater than |
" | " | Double quote |
' | ' | Single quote/apostrophe |
¢ | ¢ | Cent |
£ | £ | Pound |
¥ | ¥ | Yen |
€ | € | Euro |
© | © | Copyright |
® | ® | Registered trademark |
™ | ™ | Trademark |
| Non-breaking space | |
§ | § | Section |
± | ± | Plus-minus |
About HTML Entities
HTML entities are special codes used to represent reserved characters in HTML. They are essential for displaying characters that would otherwise be interpreted as HTML code, such as < and > tags.
HTML entities can be represented in two ways:
- Named entities: Like
<
for < or©
for © - Numeric entities: Like
<
for < (decimal) or<
(hexadecimal)
When to use HTML entities:
- To display reserved characters like <, >, &, and quotes in HTML
- To ensure proper rendering of special characters across different browsers and character encodings
- To represent characters not available on your keyboard
- To prevent XSS (Cross-Site Scripting) attacks by encoding user input
This tool helps you encode plain text to HTML entities and decode HTML entities back to plain text, making it easier to work with HTML content safely.