Encode special characters to HTML entities or decode them back. Supports named and numeric entities. 🔤 Free
| Char | Named | Numeric | Description |
|---|
HTML entities are special codes used to represent characters that have special meaning in HTML, or characters that aren't easily typed. For example, < represents < (less-than sign) and & represents & (ampersand). They prevent browsers from misinterpreting your content as HTML tags.
Named entities use descriptive names like & (ampersand) or © (copyright). Numeric entities use the character's Unicode code point, either decimal (&) or hex (&). Named entities are more readable; numeric entities work for any Unicode character even if no named entity exists.
You need entities when inserting user-generated content into HTML (to prevent XSS attacks), when displaying code snippets, when embedding special symbols like copyright © or trademark ™, and when your text contains characters like <, >, or & that browsers would interpret as HTML.