HTML Entity Encode / Decode
Convert between HTML special characters and entity encodings (named, decimal, hexadecimal).
Settings
Common HTML Entities
| Char | Named Entity | Decimal | Hex | Description |
|---|---|---|---|---|
| < | < | < | < | Less-than sign |
| > | > | > | > | Greater-than sign |
| & | & | & | & | Ampersand |
| " | " | " | " | Double quotation mark |
| ' | ' | ' | ' | Single quotation mark |
| |   |   | Non-breaking space | |
| © | © | © | © | Copyright sign |
| ® | ® | ® | ® | Registered trademark sign |
| ™ | ™ | ™ | ™ | Trademark sign |
| ¥ | ¥ | ¥ | ¥ | Yen sign |
| € | € | € | € | Euro sign |
| → | → | → | → | Rightwards arrow |
Usage
What is an HTML Entity
HTML entities display reserved characters (like <, >, &) or characters that cannot be typed directly (like ©, ¥) in HTML.
Three Encoding Methods
Named entities use readable names (e.g. <); decimal entities use <; hexadecimal entities use <.
Encode and Decode
Encoding converts special characters into entities to avoid HTML parsing errors; decoding restores entities to original characters.