HTML Entity Encoder / Decoder
Convert special characters to HTML entities or decode entities back to readable text. Supports both named (&) and numeric (&) entities.
About HTML Entities
HTML entities are used to display reserved characters in HTML that would otherwise be interpreted as code. For example, the less-than sign (<) starts an HTML tag, so to display it as text you must write < instead. Entities can be written in named form (like &) or numeric form (like & or &).
Properly encoding HTML entities is essential for preventing XSS (cross-site scripting) vulnerabilities, ensuring your HTML renders correctly, and displaying code snippets on web pages.
Common HTML Entities Reference
| Character | Description | Named Entity | Numeric Entity |
|---|---|---|---|
& | Ampersand | & | & |
< | Less than | < | < |
> | Greater than | > | > |
" | Double quote | " | " |
' | Single quote / Apostrophe | ' | ' |
| Non-breaking space | |   |
© | Copyright | © | © |
® | Registered | ® | ® |
™ | Trademark | ™ | ™ |
€ | Euro sign | € | € |
£ | Pound sign | £ | £ |
¥ | Yen sign | ¥ | ¥ |
¢ | Cent sign | ¢ | ¢ |
— | Em dash | — | — |
– | En dash | – | – |
• | Bullet | • | • |
… | Horizontal ellipsis | … | … |
« | Left angle quote | « | « |
» | Right angle quote | » | » |
‘ | Left single quote | ‘ | ‘ |
’ | Right single quote | ’ | ’ |
“ | Left double quote | “ | “ |
” | Right double quote | ” | ” |
× | Multiplication sign | × | × |
÷ | Division sign | ÷ | ÷ |
± | Plus-minus sign | ± | ± |
≠ | Not equal to | ≠ | ≠ |
≤ | Less than or equal | ≤ | ≤ |
≥ | Greater than or equal | ≥ | ≦ |
° | Degree sign | ° | ° |