7 min read
2026-03-03
HTML encoding replaces special characters with HTML entities — text representations that the browser renders as the original characters.
| Character | Entity | Numeric Code |
|---|---|---|
| < | < | < |
| > | > | > |
| & | & | & |
| " | " | " |
| ' | ' | ' |
**Security**: protection against XSS attacks when outputting user data
**Correctness**: < and > characters are not interpreted as tags
**Special characters**: displaying characters not available on the keyboard
Paste text with HTML code into the input field
Select the mode: encode or decode
Get safe text with entities
Copy the result for use in your code
Named entities (like &) are more readable. Numeric entities (&) support any Unicode characters, even those without named equivalents.
See also: URL Encoding, Base64 Encoding, Unicode Lookup