🧰Formatty

HTML Entity Encoder

Mode:
Encoding:
Live conversion - results update as you type
Plain Text
0 characters
Encoded
Encoded result will appear here...

Common HTML Entities

CharacterNamedNumericHexDescription
&&&&Ampersand
<&lt;&#60;&#x3C;Less than
>&gt;&#62;&#x3E;Greater than
"&quot;&#34;&#x22;Double quote
'&apos;&#39;&#x27;Single quote
 &nbsp;&#160;&#xA0;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.