HTML Entity Encoder
Mode:
Encoding:
Live conversion - results update as you type
Plain Text
0 charactersEncoded
Encoded result will appear here...Common HTML Entities
| Character | Named | Numeric | Hex | Description |
|---|---|---|---|---|
| & | & | & | & | Ampersand |
| < | < | < | < | Less than |
| > | > | > | > | Greater than |
| " | " | " | " | Double quote |
| ' | ' | ' | ' | Single quote |
| Â | |   |   | Non-breaking space |
Special Characters
Click any character to copy its entity code
About HTML Entities
HTML entities are used to display reserved characters in HTML (like < and >) or characters not available on a keyboard. They start with an ampersand (&) and end with a semicolon (;). Using entities prevents XSS attacks and ensures proper rendering of special characters.
Security Note
Always encode user input when displaying it in HTML to prevent Cross-Site Scripting (XSS) attacks. At minimum, encode: < > & " and ' characters.